18#ifndef INCLUDED_PATHGOAL
19#define INCLUDED_PATHGOAL
Definition: FixedVector2D.h:25
A simple fixed-point number class.
Definition: Fixed.h:120
Pathfinder goal.
Definition: PathGoal.h:33
entity_pos_t hw
Definition: PathGoal.h:45
Type
Definition: PathGoal.h:35
@ SQUARE
Definition: PathGoal.h:39
@ CIRCLE
Definition: PathGoal.h:37
@ INVERTED_CIRCLE
Definition: PathGoal.h:38
@ INVERTED_SQUARE
Definition: PathGoal.h:40
@ POINT
Definition: PathGoal.h:36
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
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
CFixedVector2D u
Definition: PathGoal.h:47
fixed DistanceToPoint(CFixedVector2D pos) const
Returns the minimum distance from the point pos to any point on the goal shape.
Definition: PathGoal.cpp:294
CFixedVector2D NearestPointOnGoal(CFixedVector2D pos) const
Returns the coordinates of the point on the goal that is closest to the point pos.
Definition: PathGoal.cpp:327
entity_pos_t hh
Definition: PathGoal.h:45
bool NavcellContainsGoal(int i, int j) const
Returns true if the given navcell contains a part of the goal area.
Definition: PathGoal.cpp:95
entity_pos_t z
Definition: PathGoal.h:43
entity_pos_t maxdist
Definition: PathGoal.h:49
CFixedVector2D v
Definition: PathGoal.h:47
entity_pos_t x
Definition: PathGoal.h:43