![]() |
Menge
Modular Pedestrian Simulation Framework for Research and Development
|
The base class event effect changes agent properties. More...
#include <AgentPropertyEffect.h>
Public Member Functions | |
AgentPropertyEffect () | |
Constructor. | |
Manipulator * | getManipulator () |
Returns a pointer to the manipulator. | |
![]() | |
virtual bool | isCompatible (EventTarget *target) |
Reports if the given target is compatible with this effect. More... | |
virtual void | apply (EventTarget *target) |
Applies the effect to the simulation target. More... | |
![]() | |
EventEffect () | |
Constructor. | |
virtual void | finalize () |
Allows the event effect to finish initializing itself from its parsed state to its running state. More... | |
![]() | |
void | destroy () |
This supplants the destructor. More... | |
virtual BFSM::Task * | getTask () |
Return an optional task associated with this element. More... | |
virtual SceneGraph::GLNode * | getSGNode () |
Returns an optional visualization element associated with the element. More... | |
Protected Member Functions | |
virtual void | agentEffect (Agents::BaseAgent *agent) |
The actual work of the effect. More... | |
Protected Attributes | |
Manipulator | _manip |
The manipulator responsible for changing agent properties. | |
The base class event effect changes agent properties.
This is an abstract class and must be sub-classed. To create different types of event effects, simply specialize this templated class with a different type of AgentPropertyManipulator.
|
inlineprotectedvirtual |
The actual work of the effect.
Sub-classes should implement this. It is the action to be taken for each agent.
agent | The agent to operate on. |
Implements Menge::AgentEventEffect.