44 #ifndef __Aircraft_ACTION_H__
45 #define __Aircraft_ACTION_H__
54 using namespace Menge;
66 class SetPropertyXActFactory;
90 void onEnter( Agents::BaseAgent * agent );
101 void leaveAction( Agents::BaseAgent * agent );
152 virtual const char *
name()
const {
return "set_xproperty"; }
162 return "Sets an agent property's value from a simple linear equation dependent on the agent's x-position.";
196 virtual bool setFromXML( BFSM::Action * action, TiXmlElement * node,
const std::string & behaveFldr )
const;
203 #endif // __Aircraft_ACTION_H__
BFSM::Action * instance() const
Create an instance of this class's action.
Definition: AircraftAction.h:176
The namespace containing Menge elements required for simulating aircraft loading and unloading...
Definition: AircraftAction.cpp:47
float _scale
The rate of change to the property for each unit displacement along the x-axis. (Essentially, this is the slope of the line.)
Definition: AircraftAction.h:120
SimpleLock _lock
Lock to protect _originalMap.
Definition: AircraftAction.h:136
virtual const char * name() const
The name of the action.
Definition: AircraftAction.h:152
Configures the shared library aspect of the includes.
virtual const char * description() const
A description of the action.
Definition: AircraftAction.h:161
float _xOrigin
The x-position at which the value is set to _originValue;.
Definition: AircraftAction.h:108
Factory for instantiating PropertyXAction instances.
Definition: AircraftAction.h:142
An action that sets agent properties based on the agent's position along the x-axis.
Definition: AircraftAction.h:72
float _originValue
The value for the property at _xOrigin;.
Definition: AircraftAction.h:113
std::map< size_t, float > _originalMap
A mapping from agent id to the agent's property value before the action was applied.
Definition: AircraftAction.h:131
BFSM::PropertyOperand _property
The property to operate on.
Definition: AircraftAction.h:125