|
WSF
|
Assists external interfaces with processing incoming detonations. More...
#include <WsfExtDetonation.hpp>
Classes | |
| struct | Result |
| Contains the result of a detonation. More... | |
Public Member Functions | |
| WsfExtDetonation (WsfExtInterface *aInterfacePtr) | |
| void | SetFiringEntity (WsfPlatform *aPlatformPtr) |
| Set firing platform pointer. | |
| void | SetTargetEntity (WsfPlatform *aPlatformPtr) |
| Set target platform pointer. | |
| void | SetWeaponEntity (WsfPlatform *aPlatformPtr) |
| Set the weapon platform pointer. | |
| void | SetWeaponEntityType (WsfStringId aWeaponTypeId) |
| Set the weapon platform type (used for implicit weapons). | |
| void | SetResult (unsigned int aResult) |
| Set the expected result given by the external interface. | |
| std::string | GetResultName () const |
| bool | DebugEnabled () |
| void | SetDetonateLocation (double aDetonateLocationWCS[3]) |
| Sets the detonation location. This is used to search for a target if the target entity is not set. | |
| void | SetRelativeDetonationLocation (double aDetonationLocationECS[3]) |
| void | Execute (double aSimTime, Result &aResult) |
| Execute the detonation, destroying the target if successful. | |
| std::string | GetDefaultWeaponEffectName () |
| WsfWeaponEffects * | GetDefaultWeaponEffect () |
| WsfSimulation * | GetSimulation () const |
Assists external interfaces with processing incoming detonations.
Detonation result codes from IEEE 1278 SISO-REF-010 (aka 'The DIS Enumerations Document').
| WsfExtDetonation::WsfExtDetonation | ( | WsfExtInterface * | aInterfacePtr | ) |
References cENTITY_IMPACT, and WsfMilExtInterface::Find().
| bool WsfExtDetonation::DebugEnabled | ( | ) |
Referenced by Execute().
| void WsfExtDetonation::Execute | ( | double | aSimTime, |
| Result & | aResult ) |
Execute the detonation, destroying the target if successful.
References WsfWeaponEngagement::Assign(), WsfWeaponEngagement::cDUD, cRESULT_CODE_COUNT, WsfWeaponEngagement::cTARGET_IMPACT, DebugEnabled(), WsfWeaponEngagement::Delete(), WsfWeaponEngagement::Find(), WsfPlatform::GetIndex(), WsfWeaponEngagement::GetTargetPlatformIndex(), WsfWeaponEngagement::Initialize(), WsfUtil::MakeTrack(), WsfExtDetonation::Result::mDetonateLocationWCS, WsfExtDetonation::Result::mGeometryResult, WsfExtDetonation::Result::mIgnored, WsfExtDetonation::Result::mMissDistance, WsfExtDetonation::Result::mTargetLocationWCS, WsfExtDetonation::Result::mTargetPlatformPtr, WsfWeaponEngagement::SetFiringPlatform(), WsfWeaponEngagement::SetIsExternallyControlled(), WsfWeaponEngagement::SetTargetLocationWCS(), WsfWeaponEngagement::SetWeaponEffects(), WsfWeaponEngagement::SetWeaponLocationWCS(), targetIndex(), and WsfWeaponEngagement::Terminate().
Referenced by WsfDisDetonation::Process().
| WsfWeaponEffects * WsfExtDetonation::GetDefaultWeaponEffect | ( | ) |
References GetSimulation().
| std::string WsfExtDetonation::GetDefaultWeaponEffectName | ( | ) |
| std::string WsfExtDetonation::GetResultName | ( | ) | const |
References cRESULT_CODE_COUNT.
| WsfSimulation * WsfExtDetonation::GetSimulation | ( | ) | const |
Referenced by GetDefaultWeaponEffect().
|
inline |
Sets the detonation location. This is used to search for a target if the target entity is not set.
Referenced by WsfDisDetonation::Process().
|
inline |
Set firing platform pointer.
Referenced by WsfDisDetonation::Process().
|
inline |
Referenced by WsfDisDetonation::Process().
|
inline |
Set the expected result given by the external interface.
Referenced by WsfDisDetonation::Process().
|
inline |
Set target platform pointer.
Referenced by WsfDisDetonation::Process().
| void WsfExtDetonation::SetWeaponEntity | ( | WsfPlatform * | aPlatformPtr | ) |
Set the weapon platform pointer.
References WsfObject::GetTypeId().
Referenced by WsfDisDetonation::Process().
|
inline |
Set the weapon platform type (used for implicit weapons).
Referenced by WsfDisDetonation::Process().