WSF
WsfWeapon::SalvoEvent Class Reference

#include <WsfWeapon.hpp>

Inheritance diagram for WsfWeapon::SalvoEvent:
Collaboration diagram for WsfWeapon::SalvoEvent:

Public Member Functions

 SalvoEvent (double aSimTime, WsfWeapon *aWeaponPtr, unsigned int aRequestId)
 ~SalvoEvent () override=default
EventDisposition Execute () override
Public Member Functions inherited from WsfEvent
 WsfEvent ()=default
 WsfEvent (double aSimTime, int aPriority=0)
 WsfEvent (const WsfEvent &aSrc)=delete
 Copy constructor and copy assignment deleted to prevent copying.
WsfEventoperator= (const WsfEvent &aRhs)=delete
virtual ~WsfEvent ()=default
double GetTime () const
int GetPriority () const
bool ShouldExecute () const
void SetTime (double aSimTime)
void SetPriority (int aPriority)
void SetShouldExecute (bool aExecute)
WsfSimulationGetSimulation () const
void AddedToEventQueue (WsfSimulation &aSimulation)
 Called when the event is added to the event queue of the specified simulation.

Additional Inherited Members

Public Types inherited from WsfEvent
enum  EventDisposition { cDELETE , cRESCHEDULE }

Constructor & Destructor Documentation

◆ SalvoEvent()

WsfWeapon::SalvoEvent::SalvoEvent ( double aSimTime,
WsfWeapon * aWeaponPtr,
unsigned int aRequestId )

◆ ~SalvoEvent()

WsfWeapon::SalvoEvent::~SalvoEvent ( )
overridedefault

Member Function Documentation

◆ Execute()

WsfEvent::EventDisposition WsfWeapon::SalvoEvent::Execute ( )
overridevirtual

Execute the specified event.

Returns
The disposition of the event. This indicates to the event manager what should be done with the event. If cRESCHEDULE then Execute should have called SetTime to set the time for which the event manager should reschedule the event.

Implements WsfEvent.

References WsfEvent::cDELETE, WsfSimulation::GetPlatformByIndex(), WsfPlatformPart::GetSimulation(), WsfEvent::GetTime(), and platformPtr.

Referenced by ~SalvoEvent().


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