45 #ifndef __COND_SPACE_H__
46 #define __COND_SPACE_H__
58 class SpaceCondFactory;
105 virtual bool containsPoint(
const Vector2 & pt )
const = 0;
145 virtual bool setFromXML(
Condition * condition, TiXmlElement * node,
const std::string & behaveFldr )
const;
213 virtual const char *
name()
const {
return "circle"; }
223 return "The circle condition. It becomes active when an agent achieves "\
224 "a particular relationship (inside/outside) with a static circle in the " \
258 virtual bool setFromXML(
Condition * condition, TiXmlElement * node,
const std::string & behaveFldr )
const;
335 virtual const char *
name()
const {
return "AABB"; }
345 return "The axis-aligned bounding box (AABB) condition. It becomes active when an agent achieves "\
346 "a particular relationship (inside/outside) with a static axis-aligned bounding box in the " \
380 virtual bool setFromXML(
Condition * condition, TiXmlElement * node,
const std::string & behaveFldr )
const;
462 virtual const char *
name()
const {
return "OBB"; }
472 return "The oriented bounding box (OBB) condition. It becomes active when an agent achieves "\
473 "a particular relationship (inside/outside) with a static oriented bounding box in the " \
507 virtual bool setFromXML(
Condition * condition, TiXmlElement * node,
const std::string & behaveFldr )
const;
538 #endif // __COND_SPACE_H__
virtual const char * description() const
A description of the action.
Definition: CondSpace.h:222
size_t _centerXID
The identifier for the "center_x" float attribute.
Definition: CondSpace.h:263
The core namespace. All elements of Menge are contained in this namespace.
Definition: AgentGenerator.cpp:43
virtual bool containsPoint(const Vector2 &pt) const
Determine if the point is inside the shape based on the instance properties.
Definition: Geometry2D.cpp:125
The class for parsing the xml description of a Condition and instantiating particular instances...
Definition: ConditionFactory.h:61
size_t _maxYID
The identifier for the "max_y" float attribute.
Definition: CondSpace.h:400
size_t _angleID
The identifier for the "angle" float attribute.
Definition: CondSpace.h:532
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...
virtual Condition * instance() const
Create an instance of this class's condition.
Definition: CondSpace.h:238
virtual bool containsPoint(const Vector2 &pt) const
Determine if the point is inside the shape based on the instance properties.
Definition: Geometry2D.cpp:200
virtual bool containsPoint(const Vector2 &pt) const
Determine if the point is inside the shape based on the instance properties.
Definition: Geometry2D.cpp:72
The base, abstract class defining goals.
Definition: Goal.h:110
size_t _pivotYID
The identifier for the "pivot_y" float attribute.
Definition: CondSpace.h:517
A transition based on spatial relationship with an axis-aligned bounding box (AABB).
Definition: CondSpace.h:284
A transition based on spatial relationship with a circle.
Definition: CondSpace.h:161
size_t _maxXID
The identifier for the "max_x" float attribute.
Definition: CondSpace.h:395
A transition based on spatial relationship with an axis-aligned bounding box (AABB).
Definition: CondSpace.h:411
size_t _pivotXID
The identifier for the "pivot_x" float attribute.
Definition: CondSpace.h:512
virtual bool containsPoint(const Vector2 &pt) const
Determines if a point is inside the test region.
Definition: CondSpace.h:192
The factory for creating the OBBCondition.
Definition: CondSpace.h:447
Definition of various shapes for defining spatial relationships.
size_t _centerYID
The identifier for the "center_y" float attribute.
Definition: CondSpace.h:268
virtual bool containsPoint(const Vector2 &pt) const
Determines if a point is inside the test region.
Definition: CondSpace.h:441
size_t _minXID
The identifier for the "min_x" float attribute.
Definition: CondSpace.h:385
Oriented bounding box.
Definition: Geometry2D.h:292
virtual const char * name() const
The name of the action.
Definition: CondSpace.h:213
size_t _radiusID
The identifier for the "radius" float attribute.
Definition: CondSpace.h:273
The factory for creating the SpaceCondition.
Definition: CondSpace.h:198
virtual bool containsPoint(const Vector2 &pt) const
Determines if a point is inside the test region.
Definition: CondSpace.h:314
virtual const char * description() const
A description of the action.
Definition: CondSpace.h:344
virtual const char * name() const
The name of the action.
Definition: CondSpace.h:335
bool _outsideActive
Determines if the transition happens when the agent is outside (true) or inside (false).
Definition: CondSpace.h:111
size_t _minYID
The identifier for the "min_y" float attribute.
Definition: CondSpace.h:390
The factory for creating the SpaceCondition.
Definition: CondSpace.h:119
virtual const char * description() const
A description of the action.
Definition: CondSpace.h:471
The namespace contains the Behavior Finite State Machine (BFSM) definition.
Collection of convenient pre-compiler information for fsm definitions.
size_t _insideID
The identifier for the "inside" bool attribute.
Definition: CondSpace.h:150
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
size_t _heightID
The identifier for the "height" float attribute.
Definition: CondSpace.h:527
The factory for creating the AABBCondition.
Definition: CondSpace.h:320
Axis-aligned bounding box.
Definition: Geometry2D.h:193
The abstact base class for spatial conditions. This includes all conditions which define a geometric ...
Definition: CondSpace.h:65
Circle shape.
Definition: Geometry2D.h:97
virtual Condition * instance() const
Create an instance of this class's condition.
Definition: CondSpace.h:487
size_t _widthID
The identifier for the "width" float attribute.
Definition: CondSpace.h:522
virtual Condition * instance() const
Create an instance of this class's condition.
Definition: CondSpace.h:360
The basis for determining the conditions under which transitions become "active" (and are taken)...
virtual const char * name() const
The name of the action.
Definition: CondSpace.h:462