ScummVM API documentation
Toltecs::SegmentMap Class Reference

Classes

struct  PathPoint
 
struct  SegmapInfoRect
 
struct  SegmapPathRect
 

Public Types

typedef Common::Array< SegmapMaskRectSegmapMaskRectArray
 
typedef Common::Array< SegmapPathRectSegmapPathRectArray
 
typedef Common::Array< SegmapInfoRectSegmapInfoRectArray
 

Public Member Functions

 SegmentMap (ToltecsEngine *vm)
 
void load (byte *source)
 
int16 findPathRectAtPoint (int16 x, int16 y)
 
void adjustPathPoint (int16 &x, int16 &y)
 
void findPath (int16 *pointsArray, int16 destX, int16 destY, int16 sourceX, int16 sourceY)
 
int8 getScalingAtPoint (int16 x, int16 y)
 
void getRgbModifiertAtPoint (int16 x, int16 y, int16 id, byte &r, byte &g, byte &b)
 
void addMasksToRenderQueue ()
 
int16 findNextPathRect (int16 srcRectIndex, int16 destX, int16 destY)
 
void loadSegmapMaskRectSurface (byte *maskData, SegmapMaskRect &maskRect)
 
void freeSegmapMaskRectSurfaces ()
 

Public Attributes

ToltecsEngine_vm
 
SegmapMaskRectArray _maskRects
 
byte * _maskRectData
 
SegmapPathRectArray _pathRects
 
SegmapInfoRectArray _infoRects
 
int16 _deadEndPathRects [1000]
 
uint _deadEndPathRectsCount
 
int16 _closedPathRects [1000]
 
uint _closedPathRectsCount
 
PathPoint _pathNodes [1000]
 
int16 _pathNodesCount
 

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