![]() |
VR-Forces 5.0.3 Developer's Guide
|
The temporary agent manager. This manager is used to add timed DtAgents to the scene, such as detonation effects.
DtTemporaryAgentManager emits the signal_agentTimedOut signal when an agent is about to be deleted.
Classes | |
| struct | AgentParameters |
Public Member Functions | |
| DtTemporaryAgentManager (double currentTime) | |
| virtual | ~DtTemporaryAgentManager () |
| virtual void | takeAgent (DtAgent *agent, double lifeTime, double deleteDelay=0.0) |
| void | clearAll () |
| virtual void | tick (double currentTime) |
Public Attributes | |
| boost::signalslib::signal < void(DtAgent *)> | signal_agentTimedOut |
Protected Types | |
| typedef std::priority_queue < AgentParameters, std::vector < AgentParameters > , std::greater < AgentParameters > > | AgentCollection |
Protected Attributes | |
| AgentCollection | myAgents |
| double | myLastTime |
|
protected |
| makVrv::DtTemporaryAgentManager::DtTemporaryAgentManager | ( | double | currentTime | ) |
CTOR.
|
virtual |
DTOR.
|
virtual |
Add an agent to the scene. The Manager now owns the agent.
| Input | |
| agent | a valid pointer to an agent the manager will own. |
| lifeTime | the duration that the agent should live. |
| deleteDelay | the delay after the lifeTime when the agent will be deleted. |
| void makVrv::DtTemporaryAgentManager::clearAll | ( | ) |
Deletes all effects.
|
virtual |
Tick the manager, updating any agents as necessary.
| boost::signalslib::signal<void (DtAgent*)> makVrv::DtTemporaryAgentManager::signal_agentTimedOut |
Emitted when a temporary agent times out.
|
protected |
|
protected |