44 #ifndef __GOAL_SELECTOR_OFFSET_H__
45 #define __GOAL_SELECTOR_OFFSET_H__
118 virtual const char *
name()
const {
return "offset"; }
128 return "A goal selector. The goal an agent gets is the agent's " \
129 "position offset by some user-specified 2D distribution.";
152 virtual bool setFromXML(
GoalSelector * selector, TiXmlElement * node,
const std::string & behaveFldr )
const;
162 #endif // __GOAL_SELECTOR_OFFSET_H__
virtual const char * name() const
The name of the goal selector type.
Definition: GoalSelectorOffset.h:118
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.
The base, abstract class defining goals.
Definition: Goal.h:110
Generic abstract class which generates a 2D vector float values.
Definition: RandGenerator.h:706
void setDistribution(Vec2DGenerator *gen)
Set the 2D number distribution for the goal selector.
Definition: GoalSelectorOffset.h:91
Vec2DGenerator * _2DVel
A vector distribution for the offset value.
Definition: GoalSelectorOffset.h:97
size_t _offsetID
The identifier for the 2D vector generator attribute.
Definition: GoalSelectorOffset.h:157
GoalSelector * instance() const
Create an instance of this class's goal selector.
Definition: GoalSelectorOffset.h:138
virtual const char * description() const
A description of the goal selector.
Definition: GoalSelectorOffset.h:127
The namespace contains the Behavior Finite State Machine (BFSM) definition.
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 base, abstract class for selecting per-agent goals.
Definition: GoalSelector.h:113
Defines the mechanism for selecting a goal for an agent.
The offset goal selector makes a goal by applying an offset value to the agent's position at assignme...
Definition: GoalSelectorOffset.h:60
The factory for parsing xml data and instantiating goals.
Factory for the OffsetGoalSelector.
Definition: GoalSelectorOffset.h:103
A class for parsing the xml description of a goal selector and instantiating particular instances...
Definition: GoalSelectorFactory.h:63