44 #ifndef __GOAL_POINT_H__
45 #define __GOAL_POINT_H__
113 virtual void drawGL()
const;
155 virtual const char *
name()
const {
return "point"; }
165 return "An agent goal consisting of a single point in two-dimensional space";
188 virtual bool setFromXML(
Goal * goal, TiXmlElement * node,
const std::string & behaveFldr )
const;
204 #endif // __GOAL_POINT_H__
A class for parsing the xml description of a goal and instantiating particular instances.
Definition: GoalFactory.h:62
Vector2 _point
The point for this goal.
Definition: GoalPoint.h:134
The core namespace. All elements of Menge are contained in this namespace.
Definition: AgentGenerator.cpp:43
virtual const char * name() const
The name of the goal type.
Definition: GoalPoint.h:155
Sets up the proper compiler directives for platform and dll export/import.
Defines the goal classes for agent behaviors.
The base, abstract class defining goals.
Definition: Goal.h:110
size_t _xID
The identifier for the "x" float attribute.
Definition: GoalPoint.h:193
Goal * instance() const
Create an instance of this class's goal.
Definition: GoalPoint.h:174
size_t _yID
The identifier for the "y" float attribute.
Definition: GoalPoint.h:198
The namespace contains the Behavior Finite State Machine (BFSM) definition.
void setPosition(const Vector2 &p)
Sets the goal's position.
Definition: GoalPoint.h:120
Collection of convenient pre-compiler information for fsm definitions.
void setPosition(float x, float y)
Sets the goal's position.
Definition: GoalPoint.h:128
virtual const char * description() const
A description of the goal.
Definition: GoalPoint.h:164
The definition of a preferred velocity.
Definition: PrefVelocity.h:68
Factory for the PointGoal.
Definition: GoalPoint.h:140
virtual float squaredDistance(const Vector2 &pt) const
Reports the squared distance from the given point to the goal.
Definition: GoalPoint.h:71
virtual Vector2 getCentroid() const
Return the centroid of the goal.
Definition: GoalPoint.h:108
A simple point goal. The goal is trivially this point.
Definition: GoalPoint.h:58
virtual Vector2 getTargetPoint(const Vector2 &q, float r) const
Returns the closest "target" point in the goal to the given query point.
Definition: GoalPoint.h:103
The factory for parsing xml data and instantiating goals.