44 #ifndef __GOAL_SELECTOR_MIRROR_H__
45 #define __GOAL_SELECTOR_MIRROR_H__
85 inline void setMirror(
bool mirrorX,
bool mirrorY ) { _mirrorX = mirrorX; _mirrorY = mirrorY; }
92 inline void setMirrorX(
bool mirror ) { _mirrorX = mirror; }
99 inline void setMirrorY(
bool mirror ) { _mirrorY = mirror; }
147 virtual const char *
name()
const {
return "mirror"; }
157 return "A goal selector. The goal an agent gets is the reflection " \
158 "of the agent's position across the world's origin over the "\
159 "world's x- and/or y-axes as specified.";
182 virtual bool setFromXML(
GoalSelector * selector, TiXmlElement * node,
const std::string & behaveFldr )
const;
198 #endif // __GOAL_SELECTOR_MIRROR_H__
size_t _mirrorXID
The identifier for the "mirror_x" bool attribute.
Definition: GoalSelectorMirror.h:187
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 const char * description() const
A description of the goal selector.
Definition: GoalSelectorMirror.h:156
The base, abstract class defining goals.
Definition: Goal.h:110
void setMirrorY(bool mirror)
Sets the y-mirroring of the goal selector.
Definition: GoalSelectorMirror.h:99
bool _mirrorY
Determines if the agent's position is reflected over the y-axis (true) or not (false).
Definition: GoalSelectorMirror.h:126
size_t _mirrorYID
The identifier for the "mirror_y" bool attribute.
Definition: GoalSelectorMirror.h:192
bool getMirrorX() const
Returns the mirror x state.
Definition: GoalSelectorMirror.h:106
bool getMirrorY() const
Returns the mirror y state.
Definition: GoalSelectorMirror.h:113
The namespace contains the Behavior Finite State Machine (BFSM) definition.
Collection of convenient pre-compiler information for fsm definitions.
GoalSelector * instance() const
Create an instance of this class's goal selector.
Definition: GoalSelectorMirror.h:168
Defines the basic agent properties and functionality that all simulation agents share.
Definition: BaseAgent.h:123
The base, abstract class for selecting per-agent goals.
Definition: GoalSelector.h:113
Defines the mechanism for selecting a goal for an agent.
The mirror goal selector makes a goal by reflecting the agent's position around the world's origin...
Definition: GoalSelectorMirror.h:63
The factory for parsing xml data and instantiating goals.
Factory for the MirrorGoalSelector.
Definition: GoalSelectorMirror.h:132
void setMirror(bool mirrorX, bool mirrorY)
Sets the mirroring of the goal selector.
Definition: GoalSelectorMirror.h:85
void setMirrorX(bool mirror)
Sets the x-mirroring of the goal selector.
Definition: GoalSelectorMirror.h:92
virtual const char * name() const
The name of the goal selector type.
Definition: GoalSelectorMirror.h:147
bool _mirrorX
Determines if the agent's position is reflected over the x-axis (true) or not (false).
Definition: GoalSelectorMirror.h:120
A class for parsing the xml description of a goal selector and instantiating particular instances...
Definition: GoalSelectorFactory.h:63