ScummVM API documentation
Gob::Map Class Referenceabstract
Inheritance diagram for Gob::Map:
Gob::Map_v1 Gob::Map_v2

Public Member Functions

 Map (GobEngine *vm)
 
uint8 getVersion () const
 
int16 getMapWidth () const
 
int16 getMapHeight () const
 
int16 getScreenWidth () const
 
int16 getScreenHeight () const
 
int16 getTilesWidth () const
 
int16 getTilesHeight () const
 
bool hasBigTiles () const
 
int8 getPass (int x, int y, int width=-1) const
 
void setPass (int x, int y, int8 pass, int width=-1)
 
const WayPointgetWayPoint (int n) const
 
void findNearestWalkable (int16 &gobDestX, int16 &gobDestY, int16 mouseX, int16 mouseY)
 
int16 getItem (int x, int y) const
 
void setItem (int x, int y, int16 item)
 
void placeItem (int16 x, int16 y, int16 id)
 
Direction getDirection (int16 x0, int16 y0, int16 x1, int16 y1)
 
int16 checkDirectPath (Mult::Mult_Object *obj, int16 x0, int16 y0, int16 x1, int16 y1)
 
int16 checkLongPath (int16 x0, int16 y0, int16 x1, int16 y1, int16 i0, int16 i1)
 
void loadMapsInitGobs ()
 
virtual void loadMapObjects (const char *avjFile)=0
 
virtual void findNearestToGob (Mult::Mult_Object *obj)=0
 
virtual void findNearestToDest (Mult::Mult_Object *obj)=0
 
virtual void optimizePoints (Mult::Mult_Object *obj, int16 x, int16 y)=0
 

Public Attributes

int16 _nearestWayPoint
 
int16 _nearestDest
 
int16 _curGoblinX
 
int16 _curGoblinY
 
int16 _destX
 
int16 _destY
 
bool _usesObliqueCoordinates
 
ItemPos _itemPoses [40]
 
char _sourceFile [15]
 

Protected Member Functions

int16 findNearestWayPoint (int16 x, int16 y)
 

Protected Attributes

GobEngine_vm
 
bool _loadFromAvo
 
uint8 _mapVersion
 
int16 _mapWidth
 
int16 _mapHeight
 
int16 _screenWidth
 
int16 _screenHeight
 
int16 _tilesWidth
 
int16 _tilesHeight
 
bool _bigTiles
 
int16 _passWidth
 
int8 * _passMap
 
int16 _wayPointCount
 
WayPoint_wayPoints
 
int16 ** _itemsMap
 

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