22 #ifndef LASTEXPRESS_SEQUENCE_H 23 #define LASTEXPRESS_SEQUENCE_H 72 #include "lastexpress/drawable.h" 74 #include "lastexpress/shared.h" 76 #include "common/array.h" 77 #include "common/rect.h" 78 #include "common/str.h" 81 class SeekableReadStream;
116 byte keepPreviousFrame;
125 EntityPosition entityPosition;
160 uint16 count()
const {
return (uint16)_frames.size(); }
162 FrameInfo *getFrameInfo(uint16 index = 0);
165 byte getField30() {
return _field30; }
167 bool isLoaded() {
return _isLoaded; }
170 static const uint32 _sequenceHeaderSize = 8;
171 static const uint32 _sequenceFrameSize = 68;
185 SequenceFrame(
Sequence *sequence, uint16 frame = 0,
bool dispose =
false) : _sequence(sequence), _frame(frame), _dispose(dispose) {}
190 bool setFrame(uint16 frame);
191 uint32 getFrame() {
return _frame; }
207 #endif // LASTEXPRESS_SEQUENCE_H Definition: sequence.h:93
FrameSubType subType
Subtype (byte)
Definition: sequence.h:113
uint32 xPos2
Bottom-right X coordinate.
Definition: sequence.h:101
byte compressionType
Type of frame compression (0x03, 0x04, 0x05, 0x07, 0xFF)
Definition: sequence.h:112
uint32 unknown
FIXME: unknown data.
Definition: sequence.h:97
Definition: sequence.h:130
uint32 decompressedEndOffset
End of data after decompression.
Definition: sequence.h:104
Definition: animation.h:45
uint32 xPos1
Top-left X coordinate.
Definition: sequence.h:99
Definition: drawable.h:29
uint32 dataOffset
Data offset (from beginning of file)
Definition: sequence.h:96
Definition: sequence.h:151
Definition: algorithm.h:29
uint32 initialSkip
Initial on-screen offset of decompressed data (doubled, since each pixel occupies one color word) ...
Definition: sequence.h:103
Definition: sequence.h:183
uint32 paletteOffset
Palette offset (from beginning of file)
Definition: sequence.h:98
uint32 yPos2
Bottom-right Y coordinate.
Definition: sequence.h:102
uint32 yPos1
Top-left Y coordinate.
Definition: sequence.h:100