12#ifndef WSFEXTDETONATION_HPP
13#define WSFEXTDETONATION_HPP
15#include "wsf_mil_export.h"
107 void SetResult(
unsigned int aResult) { mResult = aResult; }
109 std::string GetResultName()
const;
114 void SetDetonateLocation(
double aDetonateLocationWCS[3]) { mDetonateLocationWCS.Set(aDetonateLocationWCS); }
117 mRelativeDetonationLocationECS.Set(aDetonationLocationECS);
121 void Execute(
double aSimTime, Result& aResult);
123 std::string GetDefaultWeaponEffectName();
129 void PrintDetonation(
double aSimTime,
Result& aResult);
143 UtVec3d mDetonateLocationWCS;
144 UtVec3d mRelativeDetonationLocationECS;
145 unsigned int mResult;
UtStringId WsfStringId
WsfStringId – the same thing as UtStringId.
Definition WsfStringId.hpp:23
void SetWeaponEntityType(WsfStringId aWeaponTypeId)
Set the weapon platform type (used for implicit weapons).
Definition WsfExtDetonation.hpp:104
WsfSimulation * GetSimulation() const
Definition WsfExtDetonation.cpp:607
WsfWeaponEffects * GetDefaultWeaponEffect()
void SetResult(unsigned int aResult)
Set the expected result given by the external interface.
Definition WsfExtDetonation.hpp:107
void SetRelativeDetonationLocation(double aDetonationLocationECS[3])
Definition WsfExtDetonation.hpp:115
void SetTargetEntity(WsfPlatform *aPlatformPtr)
Set target platform pointer.
Definition WsfExtDetonation.hpp:99
DetonationResult
Detonation result codes from IEEE 1278 SISO-REF-010 (aka 'The DIS Enumerations Document').
Definition WsfExtDetonation.hpp:35
@ cENVIRONMENT_OBJECT_IMPACT
Definition WsfExtDetonation.hpp:58
@ cKILL_WITH_FRAGMENT_TYPE_1_AFTER_FLYOUT_FAILURE
Definition WsfExtDetonation.hpp:65
@ cKILL_WITH_FRAGMENT_TYPE_1
Definition WsfExtDetonation.hpp:62
@ cDIRT_BLAST_MEDIUM
Definition WsfExtDetonation.hpp:48
@ cHE_HIT_MEDIUM
Definition WsfExtDetonation.hpp:44
@ cGROUND_PROXIMATE_DETONATION
Definition WsfExtDetonation.hpp:40
@ cMINE_CLEARING_LINE_CHARGE
Definition WsfExtDetonation.hpp:57
@ cBUILDING_HIT_MEDIUM
Definition WsfExtDetonation.hpp:55
@ cWATER_BLAST_SMALL
Definition WsfExtDetonation.hpp:50
@ cRESULT_CODE_COUNT
Definition WsfExtDetonation.hpp:70
@ cKILL_WITH_FRAGMENT_TYPE_2_AFTER_FLYOUT_FAILURE
Definition WsfExtDetonation.hpp:66
@ cNONE
Definition WsfExtDetonation.hpp:42
@ cENVIRONMENT_OBJECT_PROXIMATE_DETONATION
Definition WsfExtDetonation.hpp:59
@ cAIRBURST
Definition WsfExtDetonation.hpp:61
@ cBUILDING_HIT_SMALL
Definition WsfExtDetonation.hpp:54
@ cHE_HIT_LARGE
Definition WsfExtDetonation.hpp:45
@ cARMOR_PIERCING_HIT
Definition WsfExtDetonation.hpp:46
@ cMISS_DUE_TO_ENDGAME_FAILURE
Definition WsfExtDetonation.hpp:68
@ cGROUND_IMPACT
Definition WsfExtDetonation.hpp:39
@ cMISS_DUE_TO_FLYOUT_AND_ENDGAME_FAILURE
Definition WsfExtDetonation.hpp:69
@ cWATER_BLAST_LARGE
Definition WsfExtDetonation.hpp:52
@ cMISS_DUE_TO_FLYOUT_FAILURE
Definition WsfExtDetonation.hpp:67
@ cDIRT_BLAST_SMALL
Definition WsfExtDetonation.hpp:47
@ cENTITY_IMPACT
Definition WsfExtDetonation.hpp:37
@ cDIRT_BLAST_LARGE
Definition WsfExtDetonation.hpp:49
@ cWATER_BLAST_MEDIUM
Definition WsfExtDetonation.hpp:51
@ cKILL_WITH_FRAGMENT_TYPE_3
Definition WsfExtDetonation.hpp:64
@ cENTITY_PROXIMATE_DETONATION
Definition WsfExtDetonation.hpp:38
@ cOTHER
Definition WsfExtDetonation.hpp:36
@ cDETONATION
Definition WsfExtDetonation.hpp:41
@ cKILL_WITH_FRAGMENT_TYPE_2
Definition WsfExtDetonation.hpp:63
@ cAIR_HIT
Definition WsfExtDetonation.hpp:53
@ cBUILDING_HIT_LARGE
Definition WsfExtDetonation.hpp:56
@ cWATER_IMPACT
Definition WsfExtDetonation.hpp:60
@ cHE_HIT_SMALL
Definition WsfExtDetonation.hpp:43
void SetDetonateLocation(double aDetonateLocationWCS[3])
Sets the detonation location. This is used to search for a target if the target entity is not set.
Definition WsfExtDetonation.hpp:114
WsfExtDetonation(WsfExtInterface *aInterfacePtr)
Definition WsfExtDetonation.cpp:86
void SetFiringEntity(WsfPlatform *aPlatformPtr)
Set firing platform pointer.
Definition WsfExtDetonation.hpp:96
The WSF Ext is code which is shared between common external interfaces like DIS and HLA.
Definition WsfExtInterface.hpp:183
Definition WsfMilExtInterface.hpp:23
The main controller for a simulation.
Definition WsfSimulation.hpp:109
Definition WsfWeaponEffects.hpp:48
Definition WsfWeaponEngagement.hpp:43
GeometryResult
Definition WsfWeaponEngagement.hpp:46
Contains the result of a detonation.
Definition WsfExtDetonation.hpp:75
WsfWeaponEngagement::GeometryResult mGeometryResult
Definition WsfExtDetonation.hpp:86
UtVec3d mTargetLocationWCS
Definition WsfExtDetonation.hpp:89
Result()
Definition WsfExtDetonation.hpp:76
UtVec3d mDetonateLocationWCS
Definition WsfExtDetonation.hpp:88
bool mIgnored
Definition WsfExtDetonation.hpp:85
WsfPlatform * mTargetPlatformPtr
Definition WsfExtDetonation.hpp:90
double mMissDistance
Definition WsfExtDetonation.hpp:87