ScummVM API documentation
Toon::PathFinding Class Reference

Public Member Functions

void init (Picture *mask)
 
bool findPath (int16 x, int16 y, int16 destX, int16 destY)
 
bool findClosestWalkingPoint (int16 xx, int16 yy, int16 *fxx, int16 *fyy, int16 origX=-1, int16 origY=-1)
 
bool isWalkable (int16 x, int16 y)
 
bool isLikelyWalkable (int16 x, int16 y)
 
bool lineIsWalkable (int16 x, int16 y, int16 x2, int16 y2)
 
void walkLine (int16 x, int16 y, int16 x2, int16 y2)
 
void resetBlockingRects ()
 
void addBlockingRect (int16 x1, int16 y1, int16 x2, int16 y2)
 
void addBlockingEllipse (int16 x1, int16 y1, int16 w, int16 h)
 
uint32 getPathNodeCount () const
 
int16 getPathNodeX (uint32 nodeId) const
 
int16 getPathNodeY (uint32 nodeId) const
 

The documentation for this class was generated from the following file: