ScummVM API documentation
DM::DungeonMan Class Reference

Public Member Functions

 DungeonMan (DMEngine *dmEngine)
 
Square getSquare (int16 mapX, int16 mapY)
 
void setCurrentMap (uint16 mapIndex)
 
Thing getSquareFirstThing (int16 mapX, int16 mapY)
 
Thing getNextThing (Thing thing)
 
uint16 * getThingData (Thing thing)
 
uint16 * getSquareFirstThingData (int16 mapX, int16 mapY)
 
void loadDungeonFile (Common::InSaveFile *file)
 
void setCurrentMapAndPartyMap (uint16 mapIndex)
 
bool isWallOrnAnAlcove (int16 wallOrnIndex)
 
void mapCoordsAfterRelMovement (Direction dir, int16 stepsForward, int16 stepsRight, int16 &posX, int16 &posY)
 
ElementType getRelSquareType (Direction dir, int16 stepsForward, int16 stepsRight, int16 posX, int16 posY)
 
void setSquareAspect (uint16 *aspectArray, Direction dir, int16 mapX, int16 mapY)
 
void decodeText (char *destString, size_t maxSize, Thing thing, TextType type)
 
Thing getUnusedThing (uint16 thingType)
 
uint16 getObjectWeight (Thing thing)
 
int16 getObjectInfoIndex (Thing thing)
 
void linkThingToList (Thing thingToLink, Thing thingInList, int16 mapX, int16 mapY)
 
WeaponInfogetWeaponInfo (Thing thing)
 
int16 getProjectileAspect (Thing thing)
 
int16 getLocationAfterLevelChange (int16 mapIndex, int16 levelDelta, int16 *mapX, int16 *mapY)
 
Thing getSquareFirstObject (int16 mapX, int16 mapY)
 
uint16 getArmourDefense (ArmourInfo *armourInfo, bool useSharpDefense)
 
Thing getDiscardThing (uint16 thingType)
 
uint16 getCreatureAttributes (Thing thing)
 
void setGroupCells (Group *group, uint16 cells, uint16 mapIndex)
 
void setGroupDirections (Group *group, int16 dir, uint16 mapIndex)
 
bool isCreatureAllowedOnMap (Thing thing, uint16 mapIndex)
 
void unlinkThingFromList (Thing thingToUnlink, Thing thingInList, int16 mapX, int16 mapY)
 
int16 getStairsExitDirection (int16 mapX, int16 mapY)
 
Thing getObjForProjectileLaucherOrObjGen (uint16 iconIndex)
 
int16 getRandomOrnamentIndex (uint16 val1, uint16 val2, int16 modulo)
 
void setupConstants ()
 

Public Attributes

uint32 _rawDunFileDataSize
 
byte * _rawDunFileData
 
DungeonFileHeader _dungeonFileHeader
 
uint16 * _dungeonMapsFirstColumnIndex
 
uint16 _dungeonColumCount
 
uint16 * _dungeonColumnsCumulativeSquareThingCount
 
Thing_squareFirstThings
 
uint16 * _dungeonTextData
 
uint16 * _thingData [16]
 
byte *** _dungeonMapData
 
Direction _partyDir
 
int16 _partyMapX
 
int16 _partyMapY
 
uint8 _partyMapIndex
 
int16 _currMapIndex
 
byte ** _currMapData
 
Map_currMap
 
uint16 _currMapWidth
 
uint16 _currMapHeight
 
uint16 * _currMapColCumulativeSquareFirstThingCount
 
Map_dungeonMaps
 
byte * _dungeonRawMapData
 
int16 _currMapInscriptionWallOrnIndex
 
Box _dungeonViewClickableBoxes [6]
 
bool _isFacingAlcove
 
bool _isFacingViAltar
 
bool _isFacingFountain
 
ElementType _squareAheadElement
 
Thing _pileTopObject [5]
 
DoorInfo _currMapDoorInfo [2]
 
ObjectInfoIndex _objectInfos [180]
 
ArmourInfo _armourInfos [58]
 
WeaponInfo _weaponInfos [46]
 
CreatureInfo _creatureInfos [k27_CreatureTypeCount]
 
byte _thingDataWordCount [16]
 

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