44 #ifndef __COND_GOAL_H__
45 #define __COND_GOAL_H__
126 virtual const char *
name()
const {
return "goal_reached"; }
136 return "The goal condition. It becomes active when an agent reaches "\
137 "a user-specified distance to the goal.";
170 virtual bool setFromXML(
Condition * condition, TiXmlElement * node,
const std::string & behaveFldr )
const;
180 #endif // __COND_GOAL_H__
void setMinDistance(float dist)
Set the minimum distance of approach.
Definition: CondGoal.h:99
The core namespace. All elements of Menge are contained in this namespace.
Definition: AgentGenerator.cpp:43
A spatial transition based on individual goal positions.
Definition: CondGoal.h:60
The factory for creating the GoalCondition.
Definition: CondGoal.h:111
virtual const char * name() const
The name of the condition.
Definition: CondGoal.h:126
virtual const char * description() const
A description of the action.
Definition: CondGoal.h:135
The class for parsing the xml description of a Condition and instantiating particular instances...
Definition: ConditionFactory.h:61
Sets up the proper compiler directives for platform and dll export/import.
The factory for parsing xml data for transition conditions and instantiating the appropriate class...
float _distSq
Minimum distance of approach (squared for efficiency).
Definition: CondGoal.h:105
size_t _distanceID
The identifier for the "distance" float attribute.
Definition: CondGoal.h:175
The base, abstract class defining goals.
Definition: Goal.h:110
virtual Condition * instance() const
Create an instance of this class's condition.
Definition: CondGoal.h:150
The namespace contains the Behavior Finite State Machine (BFSM) definition.
The base class for transition conditions.
Definition: Condition.h:68
Defines the basic agent properties and functionality that all simulation agents share.
Definition: BaseAgent.h:123
The basis for determining the conditions under which transitions become "active" (and are taken)...