22 #include "common/scummsys.h" 23 #include "common/endian.h" 24 #include "common/hashmap.h" 25 #include "common/file.h" 26 #include "common/str.h" 28 #ifndef COMPOSER_RESOURCE_H 29 #define COMPOSER_RESOURCE_H 35 #define ID_LBRC MKTAG('L','B','R','C') // Main FourCC 37 #define ID_ACEL MKTAG('A','C','E','L') // Keyboard Accelerator (v1) 38 #define ID_AMBI MKTAG('A','M','B','I') // Ambient (v1 sprite button) 39 #define ID_ANIM MKTAG('A','N','I','M') // Animation 40 #define ID_BMAP MKTAG('B','M','A','P') // Bitmap 41 #define ID_BUTN MKTAG('B','U','T','N') // Button 42 #define ID_CTBL MKTAG('C','T','B','L') // Color Table 43 #define ID_EVNT MKTAG('E','V','N','T') // Event 44 #define ID_PIPE MKTAG('P','I','P','E') // Pipe 45 #define ID_RAND MKTAG('R','A','N','D') // Random Object 46 #define ID_SCRP MKTAG('S','C','R','P') // Script 47 #define ID_VARI MKTAG('V','A','R','I') // Variables 48 #define ID_WAVE MKTAG('W','A','V','E') // Wave 50 #define ID_FRME MKTAG('F','R','M','E') // Frame 61 bool isOpen()
const {
return _stream != 0; }
63 bool hasResource(uint32 tag, uint16
id)
const;
66 uint32 getResourceFlags(uint32 tag, uint16
id)
const;
67 uint32 getOffset(uint32 tag, uint16
id)
const;
68 uint16 findResourceID(uint32 tag,
const Common::String &resName)
const;
110 virtual void nextFrame();
114 bool hasResource(uint32 tag, uint16
id)
const;
118 uint16 getPipeId()
const {
return _pipeId; }
119 virtual uint32 getOffset()
const {
return _offset; }
120 virtual void setOffset(uint32 offset) {
while (_offset < offset) nextFrame(); }
122 DelMap _bufferedResources;
138 void nextFrame()
override;
141 uint32 getOffset()
const override {
return _currFrame; }
142 void setOffset(uint32 offset)
override {
while (_currFrame < offset) nextFrame(); }
145 uint32 _currFrame, _numFrames;
Definition: graphics.h:50
Definition: resource.h:77
Definition: resource.h:97
Definition: resource.h:52
Definition: resource.h:106
Definition: resource.h:102
Definition: composer.h:52
Definition: resource.h:89
Definition: resource.h:135