WSF
WsfMilInterface Class Reference

The simulation extension for the 'mil' extension. More...

#include <WsfMil.hpp>

Inheritance diagram for WsfMilInterface:
Collaboration diagram for WsfMilInterface:

Public Member Functions

 WsfMilInterface ()
 ~WsfMilInterface () override
void AddedToSimulation () override
WsfQuantumTaskerObserverGetQuantumTaskerObserver ()
WsfWeaponObserverGetWeaponObserver ()
WsfWeaponTaskObserverGetWeaponTaskObserver ()
WsfEW_EffectManagerGetEW_EffectManager () const
void KillPlatform (double aSimTime, WsfPlatform *aPlatformPtr)
Public Member Functions inherited from WsfSimulationExtension
 WsfSimulationExtension ()
 ~WsfSimulationExtension () override=default
WsfSimulationGetSimulation () const
const WsfScenarioGetScenario () const
virtual bool Initialize ()
virtual bool PrepareExtension ()
virtual bool PlatformsInitialized ()
virtual void PendingStart ()
virtual void Start ()
virtual void Complete (double aSimTime)
Public Member Functions inherited from WsfExtension
virtual ~WsfExtension ()=default
const std::string & GetExtensionName () const

Static Public Member Functions

static WsfMilInterfaceFind (const WsfSimulation &aSimulation)
static WsfMilInterfaceFind (const WsfSimulation *aSimulationPtr)
static void __private_SetSim (WsfSimulationExtension &aExtension, WsfSimulation *aSimPtr)

Additional Inherited Members

Protected Member Functions inherited from WsfExtension
void InitializeExtensionName (const std::string &aName)

Detailed Description

The simulation extension for the 'mil' extension.

Constructor & Destructor Documentation

◆ WsfMilInterface()

WsfMilInterface::WsfMilInterface ( )

Referenced by Find(), and Find().

◆ ~WsfMilInterface()

WsfMilInterface::~WsfMilInterface ( )
override

Member Function Documentation

◆ AddedToSimulation()

◆ Find() [1/2]

◆ Find() [2/2]

WsfMilInterface * WsfMilInterface::Find ( const WsfSimulation * aSimulationPtr)
static

◆ GetEW_EffectManager()

WsfEW_EffectManager & WsfMilInterface::GetEW_EffectManager ( ) const
inline

◆ GetQuantumTaskerObserver()

WsfQuantumTaskerObserver & WsfMilInterface::GetQuantumTaskerObserver ( )
inline

◆ GetWeaponObserver()

WsfWeaponObserver & WsfMilInterface::GetWeaponObserver ( )
inline

◆ GetWeaponTaskObserver()

WsfWeaponTaskObserver & WsfMilInterface::GetWeaponTaskObserver ( )
inline

◆ KillPlatform()

void WsfMilInterface::KillPlatform ( double aSimTime,
WsfPlatform * aPlatformPtr )

Kill a platform.

This is very similar to DeletePlatform except that is uses the platform 'on_death_action' to determine if the platform should be deleted (removed from the simulation), or retained and disabled.

Parameters
aSimTimeCurrent simulation time.
aPlatformPtrPointer to platform to be killed.
Note
This is only intended to be called from the weapon engagement routines.

References WsfSimulation::AddEvent(), WsfPlatform::cON_BROKEN_REMOVE, WsfSimulation::DeletePlatform(), WsfPlatform::GetIndex(), WsfPlatform::GetOnBrokenAction(), WsfSimulation::GetPlatformByIndex(), WsfSimulationExtension::GetSimulation(), WsfPlatform::IsBroken(), platformPtr, WsfSimulation::ProcessPlatformBrokenEvent(), WsfPlatform::SetBroken(), and WsfSimulationExtension::WsfSimulation.

Referenced by WsfWeaponEffects::Terminate().


The documentation for this class was generated from the following files:
Copyrights Multiple, All Rights Reserved