27 #include "common/system.h" 30 #include "immortal/story.h" 33 #include "immortal/utilities.h" 34 #include "immortal/immortal.h" 36 #ifndef IMMORTAL_ROOM_H 37 #define IMMORTAL_ROOM_H 41 enum RoomTile : uint8 {
79 FPattern _p = kFlameOff;
96 Room(uint8 x, uint8 y, RoomFlag f);
105 const uint8 kLightTorchX = 10;
106 const uint8 kMaxFlameCycs = 16;
118 uint8 _holeCellX = 0;
119 uint8 _holeCellY = 0;
120 uint8 _candleTmp = 0;
121 uint8 _numFlames = 0;
122 uint8 _numInRoom = 0;
129 uint32 getRandomNumber(uint maxNum) {
142 void drawContents(uint16 vX, uint16 vY);
143 bool getTilePair(uint8 x, uint8 y,
int id);
144 bool getWideWallNormal(uint8 x, uint8 y, uint8 xPrev, uint8 yPrev,
int id,
int spacing);
145 bool getWallNormal(uint8 x, uint8 y, uint8 xPrev, uint8 yPrev,
int id);
149 void removeMonster();
152 void getXY(uint16 &x, uint16 &y);
153 void getCell(uint16 &x, uint16 &y);
161 int cycleNew(CycID
id);
162 void cycleFree(
int c);
166 int cycleGetIndex(
int c);
167 int cycleGetFrame(
int c);
168 int cycleGetNumFrames(
int c);
171 void cycleSetIndex(
int c,
int f);
174 bool cycleAdvance(
int c);
175 CycID getCycList(
int c);
189 void flameDrawAll(uint16 vX, uint16 vY);
191 void lightTorch(uint8 x, uint8 y);
194 int flameGetCyc(
Flame *f,
int first);
211 void univAddSprite(uint16 vX, uint16 vY, uint16 x, uint16 y, SpriteName s,
int img, uint16 p);
Definition: definitions.h:25
uint getRandomNumber(uint max)
Definition: sprite_list.h:40