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