|
VR-Engage
2.2
|
DtScenarioEventManager maintains a registry of scenario events available in the current simulation. These events can be triggered by the user through the action menu or programmatically through other components. The manager responds to discovery and removal messages to keep its list up to date.
#include <scenarioEventManager.h>
Classes | |
| struct | ScenarioEvent |
Public Member Functions | |
| DtScenarioEventManager () | |
| virtual | ~DtScenarioEventManager () |
| virtual std::list< ScenarioEvent > & | scenarioEvents () |
Protected Member Functions | |
| virtual makVre::DtVreMessageResult | handleDiscoverEvent (makVre::DtVreMessage *msg) |
| virtual makVre::DtVreMessageResult | handleRemoveEvent (makVre::DtVreMessage *msg) |
Protected Attributes | |
| std::list< ScenarioEvent > | myEvents |
| makVre::DtScenarioEventManager::DtScenarioEventManager | ( | ) |
Constructor.
Creates a new scenario event manager with an empty event list.
|
virtual |
Virtual destructor.
Ensures proper cleanup of the scenario event manager.
|
inlinevirtual |
Gets the list of available scenario events.
Provides access to the current list of available scenario events. This is typically used by the action menu to populate event-related options.
References myEvents.
|
protectedvirtual |
Handles event discovery messages.
| msg | Pointer to the discovery message |
Processes messages about newly discovered scenario events, adding them to the event registry if they aren't already present.
|
protectedvirtual |
Handles event removal messages.
| msg | Pointer to the removal message |
Processes messages about removed scenario events, removing them from the event registry if they exist.
|
protected |
List of currently available scenario events.
Contains all scenario events that have been discovered and not yet removed.
Referenced by scenarioEvents().