ScummVM API documentation
Queen::Grid Class Reference

Public Types

enum  { MAX_ZONES_NUMBER = 32, MAX_AREAS_NUMBER = 11 }
 

Public Member Functions

 Grid (QueenEngine *vm)
 
void readDataFrom (uint16 numObjects, uint16 numRooms, byte *&ptr)
 read areas data from specified stream
 
void setZone (GridScreen screen, uint16 zoneNum, uint16 x1, uint16 y1, uint16 x2, uint16 y2)
 defines a new zone
 
void setZone (GridScreen screen, uint16 zoneNum, const Box &box)
 defines a new zone
 
uint16 findZoneForPos (GridScreen screen, uint16 x, uint16 y) const
 find the zone number containing the specified point
 
uint16 findAreaForPos (GridScreen screen, uint16 x, uint16 y) const
 find the area number containing the specified point
 
void clear (GridScreen screen)
 clear the zones for current room
 
void setupNewRoom (uint16 room, uint16 firstRoomObjNum)
 setup objects zones for the specified room
 
void setupPanel ()
 setup panel zones
 
void drawZones ()
 draw the zones for current room (debug only)
 
const Boxzone (GridScreen screen, uint16 index) const
 retuns a reference to the specified zone
 
Verb findVerbUnderCursor (int16 cursorx, int16 cursory) const
 get the verb for the specified cursor position
 
uint16 findObjectUnderCursor (int16 cursorx, int16 cursory) const
 get the object for the specified cursor position
 
uint16 findObjectNumber (uint16 zoneNum) const
 get the object for the specified zone number
 
uint16 findScale (uint16 x, uint16 y) const
 get scale for the specified position
 
Areaarea (int room, int num) const
 returns a reference to the specfied room area
 
uint16 areaMax (int room) const
 returns the number of areas in this room
 
uint16 objMax (int room) const
 returns the number of objects in this room
 
void saveState (byte *&ptr)
 
void loadState (uint32 ver, byte *&ptr)
 

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