ScummVM API documentation
Illusions::PathFinder Class Reference

Public Member Functions

PointArrayfindPath (Camera *camera, Common::Point sourcePt, Common::Point destPt, PointArray *walkPoints, PathLines *walkRects, WidthHeight bgDimensions)
 

Protected Member Functions

PointArrayfindPathInternal (Common::Point sourcePt, Common::Point destPt)
 
void postProcess (Common::Point sourcePt, PointArray *foundPath)
 
bool isLineBlocked (PathLine &line)
 
int calcLineDistance (PathLine &line)
 
bool findClosestPt (Common::Point &sourcePt, Common::Point &closestPt, Common::Point &destPt)
 
bool findValidDestLine (Common::Point &destPt)
 
void findValidDestPt (Common::Point &destPt)
 
WidthHeight calcRectDimensions (PathLine &rect)
 
void adjustRectDimensions (WidthHeight &dimensions)
 
void swapDimensions (WidthHeight &dimensions)
 
void clipLineToBg (Common::Point &destPt, WidthHeight &rectDimensions, PathLine &outDestLine)
 
void findDeltaPt (Common::Point pt, Common::Point &outDeltaPt)
 
bool isLineWithinRectangle (PathLine &line, PathLine &rect)
 
void swapLine (PathLine &line, PathLine &outLine)
 
int calcLineStatus (PathLine &sourceLine, PathLine &destRect, Common::Point *outPoint)
 

Protected Attributes

PathLine _screenRect
 
PointArray_walkPoints
 
PathLines_walkRects
 
WidthHeight _bgDimensions
 
byte * _pathBytes
 

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