22 #ifndef SHERLOCK_SCALPEL_TSAGE_RESOURCES_H 23 #define SHERLOCK_SCALPEL_TSAGE_RESOURCES_H 25 #include "common/scummsys.h" 26 #include "common/array.h" 27 #include "common/file.h" 28 #include "common/list.h" 29 #include "common/str.h" 30 #include "common/str-array.h" 31 #include "common/util.h" 32 #include "graphics/surface.h" 33 #include "sherlock/screen.h" 40 const uint32 MEMORY_ENTRY_ID = 0xE11DA722;
42 const int MEMORY_POOL_SIZE = 1000;
44 enum ResourceType { RES_LIBRARY, RES_STRIP, RES_IMAGE, RES_PALETTE, RES_VISAGE, RES_SOUND, RES_MESSAGE,
45 RES_FONT, RES_POINTER, RES_BANK, RES_SND_DRIVER, RES_PRIORITY, RES_CONTROL, RES_WALKRGNS,
46 RES_BITMAP, RES_SAVE, RES_SEQUENCE,
48 RT17, RT18, RT19, RT20, RT21, RT22, RT23, RT24, RT25, RT26, RT27, RT28, RT29, RT30, RT31
58 resType = RES_LIBRARY;
70 uint32 uncompressedSize;
95 uint8 _remainder, _bitsLeft;
96 byte readByte() {
return _stream.
eos() ? 0 : _stream.
readByte(); }
114 ResourceList _resources;
117 void loadSection(uint32 fileOffset);
121 static void loadSection(
Common::File &f, ResourceList &resources);
127 const SectionList &getSections() {
return _sections; }
130 uint32 getResourceStart(ResourceType resType, uint16 resNum, uint16 rlbNum,
ResourceEntry &entry);
131 void getPalette(byte palette[PALETTE_SIZE],
int paletteNum);
Definition: resources.h:108
Definition: resources.h:83
virtual bool eos() const =0
Definition: resources.h:51
Definition: animation.h:29
Definition: resources.h:92
byte readByte()
Definition: stream.h:434
Definition: blueforce_dialogs.h:30
Definition: resources.h:64