WSF
WsfSphericalLethality.hpp
Go to the documentation of this file.
1// ****************************************************************************
2// CUI
3//
4// The Advanced Framework for Simulation, Integration, and Modeling (AFSIM)
5//
6// Copyright 2003-2015 The Boeing Company. All rights reserved.
7//
8// The use, dissemination or disclosure of data in this file is subject to
9// limitation or restriction. See accompanying README and LICENSE for details.
10// ****************************************************************************
11
12#ifndef WSFSPHERICALLETHALITY_HPP
13#define WSFSPHERICALLETHALITY_HPP
14
15#include "wsf_mil_export.h"
16
18
24
26{
27public:
29 ~WsfSphericalLethality() override = default;
30 WsfWeaponEffects* Clone() const override;
31 bool PreInitialize() override;
32 bool ProcessInput(UtInput& aInput) override;
33 void SetMinRadius(double aRadius) { mMinRadius = aRadius; }
34
35protected:
36 // Copy constructor (for Clone())
38
39 // Prevent use of operator= by declaring, but not defining.
41
42 void ApplyEffectTo(double aSimTime, WsfPlatform* aOtherPlatformPtr) override;
43
44private:
45 // The SMALLEST radius at which the MINIMUM amount of damage
46 // is sustained is kept in the base class.
47 double mMinRadius;
48
49 // Indicates a minimum damage that must occur before damage begins accumulating
50 // to the target. After the threshold damage is achieved, the value is ignored.
51 double mThreshold;
52
53 // The smallest amount of damage that can be applied to the target.
54 double mMinDamage;
55
56 // The largest amount of damage ever applied to a target.
57 double mMaxDamage;
58
59 // Models a non-linear damage effect with miss distance:
60 // Default of mExponent = 1 ==> linear
61 double mExponent;
62};
63
64#endif
bool ProcessInput(UtInput &aInput) override
Definition WsfExplicitWeaponEffects.cpp:65
WsfExplicitWeaponEffects(WsfScenario &aScenario)
Definition WsfExplicitWeaponEffects.cpp:29
WsfWeaponEffects * Clone() const override
Definition WsfExplicitWeaponEffects.cpp:39
Platforms represent a entity within the simulation.
Definition WsfPlatform.hpp:115
Contains the data required to create a simulation, and acts as the entry point for input file process...
Definition WsfScenario.hpp:111
WsfSphericalLethality(WsfScenario &aScenario)
Definition WsfSphericalLethality.cpp:24
WsfSphericalLethality(const WsfSphericalLethality &aSrc)=default
~WsfSphericalLethality() override=default
WsfSphericalLethality & operator=(const WsfSphericalLethality &aRhs)=delete
void SetMinRadius(double aRadius)
Definition WsfSphericalLethality.hpp:33
virtual void ApplyEffectTo(double aSimTime, WsfPlatform *aOtherPlatformPtr)
Definition WsfWeaponEffects.cpp:549
virtual bool PreInitialize()
Definition WsfWeaponEffects.cpp:125
WsfWeaponEffects(WsfScenario &aScenario)
Definition WsfWeaponEffects.cpp:51
Copyrights Multiple, All Rights Reserved