45 #ifndef __STATE_CONTEXT_H__
46 #define __STATE_CONTEXT_H__
114 std::string
getUIText(
const std::string & indent=
"" )
const;
154 #endif // __STATE_CONTEXT_H__
The basic state of the behavior finite state machine.
Definition: State.h:123
SDL_Event SDL_Event
Forward declaration of the SDL event type.
Definition: Context.h:53
The core namespace. All elements of Menge are contained in this namespace.
Definition: AgentGenerator.cpp:43
Sets up the proper compiler directives for platform and dll export/import.
virtual void draw3DGL(const Agents::BaseAgent *agt, bool drawVC, bool drawTrans)
Draw context elements into the 3D world.
Definition: StateContext.cpp:125
The base context class for defining a how events are handled. It also is responsible drawing UI eleme...
Definition: Context.h:156
HASH_MAP< size_t, BFSM::StateContext * > StateContextMap
A map from state ids to statecontexts to facilitate lookups for a visualized agent.
Definition: StateContext.h:63
Base context for finite state machine states.
Definition: StateContext.h:80
size_t _activeTransition
The id of the "active" transition.
Definition: StateContext.h:149
VelCompContext * _vcContext
The velocity component context for this state.
Definition: StateContext.h:141
static size_t NO_ACTIVE_ID
The value used to indicate that no id is selected.
Definition: StateContext.h:136
virtual SceneGraph::ContextResult handleKeyboard(SDL_Event &e)
Give the context the opportunity to respond to a keyboard event.
Definition: StateContext.cpp:74
State * _state
The underlying finite state machine state.
Definition: StateContext.h:129
Defines the result of the context's consideration of user input.
Definition: Context.h:74
The namespace contains the Behavior Finite State Machine (BFSM) definition.
std::string getUIText(const std::string &indent="") const
Provides a string to be printed in the display as a UI element detailing state information.
Definition: StateContext.cpp:102
StateContext(State *state)
Constructor.
Definition: StateContext.cpp:62
Collection of convenient pre-compiler information for fsm definitions.
Defines the basic agent properties and functionality that all simulation agents share.
Definition: BaseAgent.h:123
The namespace that contains the basic simulation mechanisms.
virtual ~StateContext()
Destructor.
Definition: StateContext.cpp:69
The definition of a basic UI context for finite state machine velocity components.
Base context for finite state machine velocity components.
Definition: VelCompContext.h:70
Defines a context for handling user interaction (mouse and keyboard input).