![]() |
VR-Forces 5.0.2 Developer's Guide
|
The scenario event manager will keep track of all scenario event objects and their state. All calls to start/stop events must be done through this class. If not done through this class then event triggers will not fire.
Classes | |
| struct | EventUpdateInformation |
| struct | ScenarioEventInformation |
Public Types | |
| typedef std::map< const DtLocalObject *, EventUpdateInformation > | EventsThatNeedUpdate |
Static Public Member Functions | |
| static void | scenarioEventMessageCallback (DtSimMessage *, void *usr) |
| static void | scenarioEventAdded (const DtLocalObject *, void *) |
| static void | scenarioEventRemoved (const DtLocalObject *, void *) |
Protected Types | |
| typedef DtCallbackList< const DtUUID & > | ScenarioEventCallbacks |
| typedef DtCallbackList < DtEnableStateChanged > | ScenarioEventEnableStateChangedCallbacks |
| typedef std::map< DtUUID, ScenarioEventInformation > | ScenarioEvents |
| typedef std::map< DtUUID, DtUUID > | ObjectEvents |
Protected Member Functions | |
| virtual void | startUpEvent (const DtUUID &uniqueId) |
| virtual void | stopEvent (const DtUUID &uniqueId) |
| virtual void | updateEnabledStatesLinkedTo (const DtUUID &) |
| virtual DtUUID | scenarioEventUUIDBasedOf (const DtUUID &) const |
| virtual void | processObjectModifiedViaMessage (DtLocalObject *o) |
| virtual bool | isThisObjectLinkedToMe (const DtUUID &source, const DtUUID &dest) const |
Private Member Functions | |
| DtScenarioEventManager (const DtScenarioEventManager &orig) | |
| DtScenarioEventManager & | operator= (const DtScenarioEventManager &orig) |
| typedef std::map<const DtLocalObject*, EventUpdateInformation> DtScenarioEventManager::EventsThatNeedUpdate |
|
protected |
|
protected |
|
protected |
|
protected |
| DtScenarioEventManager::DtScenarioEventManager | ( | DtSimulationServices * | , |
| DtLocalObjectManager * | |||
| ) |
CTOR.
|
virtual |
DTOR.
|
private |
copy constructor
|
private |
assignment operator
Returns true if this object is a scenario event (which includes intelligence objects)
|
virtual |
Callback that is invoked whenever a scenario event is started.
|
virtual |
Callback that is invoked whenever a scenario event is started.
|
virtual |
Callback that is invoked whenever a scenario enabled state has changed.
|
virtual |
Callback that is invoked whenever a scenario enabled state has changed.
|
virtual |
Callback that is invoked whenever a scenario event is stopped.
|
virtual |
Callback that is invoked whenever a scenario event is stopped.
|
static |
Processes scenario event operations.
|
virtual |
|
virtual |
Disables/enables the scenario event.
Whether or not the scenario event is enabled.
|
virtual |
Start the scenario event. Will send a message to start if the event is not local or start it and send out started message if is. Supply scenario unique id.
|
virtual |
Stops the scenario event. Will send a message to stop if the event is not local or stop it and send out stopped message if is. Supply scenario unique id.
Returns true if scenario event is currently running.
Returns true if scenario event is currently concluded.
Returns true if the scenario event has been concluded.
|
virtual |
Returns the scenario event for the current unique id.
Returns the scenario time that the event started.
Returns the scenario time that the event ended.
|
static |
Called when a scenario event is added via the object manager.
|
virtual |
|
static |
Called when a scenario event is removed from the object manager.
|
virtual |
|
virtual |
Sets the ordinal order for the given event if local. Does not change any other event ordinals.
|
virtual |
If local, resets the scenario event to be ready to start again.
Sets the trigger status of the event if not already at that trigger status.
|
virtual |
Merges in scenario information from the specified manager.
|
inline |
|
inline |
|
protectedvirtual |
Internally starts up the event and sends out started message as well as invoking started callbacks.
|
protectedvirtual |
Internally stops event and sends out stopped message as well as invoking stopped callbacks.
|
protectedvirtual |
Updates the enabled states of any scenario events that are linked to the supplied scenario event, and sends out messages to update enabled states if the events are not local.
|
protectedvirtual |
If the supplied UUID is mapped to another UUID, return it.
|
protectedvirtual |
|
protectedvirtual |
Returns true if the event ID eventually links to the second event ID.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |