ScummVM API documentation
Darkseed::Room Class Reference

Public Member Functions

 Room (int roomNumber)
 
void initRoom ()
 
void draw ()
 
void update ()
 
int checkCursorAndMoveableObjects ()
 
int checkCursorAndStaticObjects (int x, int y)
 
int CheckCursorAndMovedObjects ()
 
int getRoomExitAtCursor ()
 
void getWalkTargetForObjectType_maybe (int objId)
 
int getObjectUnderCursor ()
 
uint16 getDoorTargetRoom (int objId)
 
int getExitRoomNumberAtPoint (int x, int y)
 
bool exitRoom ()
 
Common::String getRoomFilenameBase (int roomNumber)
 
bool canWalkAtLocation (int x, int y)
 
bool canWalkInLineToTarget (int x, int y, int targetX, int targetY)
 
void printRoomDescriptionText () const
 
void calculateScaledSpriteDimensions (int width, int height, int curYPosition)
 
bool isOutside () const
 
bool isGiger ()
 
void runRoomObjects ()
 
void removeObjectFromRoom (int16 objNum)
 
void updateRoomObj (int16 objNum, int16 x, int16 width, int16 y, int16 height)
 
bool advanceFrame (int animIdx)
 
void mikeStickThrowAnim ()
 
void loadRoom61AWalkableLocations ()
 
void restorePalette ()
 
void darkenSky ()
 
void loadLocationSprites (const Common::Path &path)
 
Common::Point getExitPointForRoom (uint8 roomNumber)
 
void loadRoomMusic ()
 

Static Public Member Functions

static MusicId getMusicIdForRoom (uint8 roomNumber)
 

Public Attributes

uint8 _roomNumber
 
Pic _pic
 
Pal _pal
 
Nsp _locationSprites
 
Common::Array< int16 > _locObjFrame
 
Common::Array< int16 > _locObjFrameTimer
 
Common::Array< RoomExit_room1
 
Common::Array< RoomStruct2_walkableLocationsMap
 
Common::Array< RoomObjElement_roomObj
 
Common::Array< Common::Point_connectors
 
uint16 _selectedObjIndex = 0
 
int16 _collisionType = 0
 

Static Public Attributes

static constexpr int MAX_CONNECTORS = 12
 

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