44 #ifndef __GOAL_CIRCLE_H__
45 #define __GOAL_CIRCLE_H__
71 virtual float squaredDistance(
const Vector2 & pt )
const;
103 virtual Vector2 getTargetPoint(
const Vector2 & q,
float r )
const;
116 inline void setCenter(
float x,
float y ) { _center.set( x, y ); }
136 virtual void drawGLGeometry()
const;
167 virtual const char *
name()
const {
return "circle"; }
177 return "An agent goal consisting of a circle in two-dimensional space";
200 virtual bool setFromXML(
Goal * goal, TiXmlElement * node,
const std::string & behaveFldr )
const;
220 #endif //__GOAL_CIRCLE_H__
A class for parsing the xml description of a goal and instantiating particular instances.
Definition: GoalFactory.h:62
The core namespace. All elements of Menge are contained in this namespace.
Definition: AgentGenerator.cpp:43
Goal * instance() const
Create an instance of this class's goal.
Definition: GoalCircle.h:186
void setCenter(float x, float y)
Sets the circle's center position.
Definition: GoalCircle.h:116
Sets up the proper compiler directives for platform and dll export/import.
Factory for the CircleGoal.
Definition: GoalCircle.h:152
A circular goal region with uniform probability.
Definition: GoalCircle.h:58
void setRadius(float r)
Sets the circle's radius.
Definition: GoalCircle.h:130
Defines the goal classes for agent behaviors.
The base, abstract class defining goals.
Definition: Goal.h:110
size_t _rID
The identifier for the "radius" float attribute.
Definition: GoalCircle.h:215
virtual const char * description() const
A description of the goal.
Definition: GoalCircle.h:176
float _radius
The radius of the goal circle.
Definition: GoalCircle.h:146
size_t _xID
The identifier for the "x" float attribute.
Definition: GoalCircle.h:205
virtual Vector2 getCentroid() const
Return the centroid of the goal.
Definition: GoalCircle.h:108
size_t _yID
The identifier for the "y" float attribute.
Definition: GoalCircle.h:210
The namespace contains the Behavior Finite State Machine (BFSM) definition.
Collection of convenient pre-compiler information for fsm definitions.
virtual const char * name() const
The name of the goal type.
Definition: GoalCircle.h:167
void setCenter(const Vector2 &p)
Sets the circle's center position.
Definition: GoalCircle.h:123
The definition of a preferred velocity.
Definition: PrefVelocity.h:68
Vector2 _center
The center of the goal circle.
Definition: GoalCircle.h:141
The factory for parsing xml data and instantiating goals.