Menge
Modular Pedestrian Simulation Framework for Research and Development
|
The base class for modifying agent properties. More...
#include <PropertyAction.h>
Public Member Functions | |
PropertyAction () | |
Constructor. | |
virtual void | onEnter (Agents::BaseAgent *agent) |
Upon entering the state, this is called – it is the main work of the action. More... | |
Manipulator * | getManipulator () |
Returns a pointer to the manipulator. | |
Public Member Functions inherited from Menge::BFSM::Action | |
Action () | |
Constructor. | |
void | onLeave (Agents::BaseAgent *agent) |
The work to do upon state exit. More... | |
Public Member Functions inherited from Menge::Element | |
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 | ~PropertyAction () |
Virtual destructor. | |
virtual void | leaveAction (Agents::BaseAgent *agent) |
The work to do upon state exit. More... | |
Protected Member Functions inherited from Menge::BFSM::Action | |
virtual | ~Action () |
Virtual destructor. | |
Protected Attributes | |
Manipulator | _manip |
The manipulator responsible for changing agent properties. | |
Protected Attributes inherited from Menge::BFSM::Action | |
bool | _undoOnExit |
Determines if the action undoes itself on exiting the state. | |
The base class for modifying agent properties.
This is an abstract class and must be sub-classed. To create different types of property actions, simply specialize this templated class with a different type of AgentPropertyManipulator.
|
inlineprotectedvirtual |
The work to do upon state exit.
agent | The agent to act on. |
Implements Menge::BFSM::Action.
|
inlinevirtual |
Upon entering the state, this is called – it is the main work of the action.
agent | The agent to act on. |
Implements Menge::BFSM::Action.