18 #ifndef INCLUDED_PATHGOAL 19 #define INCLUDED_PATHGOAL 84 #endif // INCLUDED_PATHGOAL A simple fixed-point number class.
Definition: Fixed.h:115
Definition: FixedVector2D.h:24
bool RectContainsGoal(entity_pos_t x0, entity_pos_t z0, entity_pos_t x1, entity_pos_t z1) const
Returns true if the rectangle defined by (x0,z0)-(x1,z1) (inclusive) contains a part of the goal area...
Definition: PathGoal.cpp:249
entity_pos_t hw
Definition: PathGoal.h:47
CFixedVector2D NearestPointOnGoal(CFixedVector2D pos) const
Returns the coordinates of the point on the goal that is closest to pos in a straight line...
Definition: PathGoal.cpp:317
Definition: PathGoal.h:37
Pathfinder goal.
Definition: PathGoal.h:32
bool NavcellContainsGoal(int i, int j) const
Returns true if the given navcell contains a part of the goal area.
Definition: PathGoal.cpp:95
bool NavcellRectContainsGoal(int i0, int j0, int i1, int j1, int *i, int *j) const
Returns true if any navcell (i, j) where min(i0,i1) <= i <= max(i0,i1) min(j0,j1) <= j <= max(j0...
Definition: PathGoal.cpp:118
fixed DistanceToPoint(CFixedVector2D pos) const
Returns the minimum distance from the point with the given pos to any point on the outline of the goa...
Definition: PathGoal.cpp:294
entity_pos_t hh
Definition: PathGoal.h:47
entity_pos_t x
Definition: PathGoal.h:43
Definition: PathGoal.h:40
Definition: PathGoal.h:39
CFixedVector2D v
Definition: PathGoal.h:45
CFixedVector2D u
Definition: PathGoal.h:45
Definition: PathGoal.h:38
Definition: PathGoal.h:36
entity_pos_t maxdist
Definition: PathGoal.h:49
Type
Definition: PathGoal.h:35
entity_pos_t z
Definition: PathGoal.h:43