22 #ifndef DARKSEED_ROOM_H 23 #define DARKSEED_ROOM_H 25 #include "common/rect.h" 26 #include "darkseed/nsp.h" 27 #include "darkseed/pal.h" 28 #include "darkseed/pic.h" 38 uint16 roomNumber = 0;
58 bool _palLoaded =
false;
61 static constexpr
int MAX_CONNECTORS = 12;
74 uint16 _selectedObjIndex = 0;
75 int16 _collisionType = 0;
77 explicit Room(
int roomNumber);
84 int checkCursorAndMoveableObjects();
85 int checkCursorAndStaticObjects(
int x,
int y);
86 int CheckCursorAndMovedObjects();
87 int getRoomExitAtCursor();
88 void getWalkTargetForObjectType_maybe(
int objId);
89 int getObjectUnderCursor();
90 uint16 getDoorTargetRoom(
int objId);
91 int getExitRoomNumberAtPoint(
int x,
int y);
94 bool canWalkAtLocation(
int x,
int y);
95 bool canWalkInLineToTarget(
int x,
int y,
int targetX,
int targetY);
96 void printRoomDescriptionText()
const;
97 void calculateScaledSpriteDimensions(
int width,
int height,
int curYPosition);
98 bool isOutside()
const;
100 void runRoomObjects();
101 void removeObjectFromRoom(int16 objNum);
102 void updateRoomObj(int16 objNum, int16 x, int16 width, int16 y, int16 height);
103 bool advanceFrame(
int animIdx);
104 void mikeStickThrowAnim();
105 void loadRoom61AWalkableLocations();
106 void restorePalette();
110 static MusicId getMusicIdForRoom(uint8 roomNumber);
111 void loadRoomMusic();
117 void advanceLocAnimFrame(
int roomObjIdx);
122 #endif // DARKSEED_ROOM_H
Definition: adlib_worx.h:27