25 #include "common/array.h" 26 #include "common/path.h" 27 #include "mads/palette.h" 32 ASSET_TRANSLATE = 1, ASSET_HEADER_ONLY = 2, ASSET_CHAR_INFO = 4,
33 ASSET_SPINNING_OBJECT = 8
64 byte _palette[PALETTE_SIZE];
67 int _frameRate, _pixelSpeed;
68 int _maxWidth, _maxHeight;
99 int getCount() {
return _frameCount; }
100 int getFrameRate()
const {
return _frameRate; }
101 int getPixelSpeed()
const {
return _pixelSpeed; }
102 Common::Point getFramePos(
int index) { assert (index < _frameCount);
return Common::Point(_frames[index]._bounds.left, _frames[index]._bounds.top); }
103 int getFrameWidth(
int index) { assert (index < _frameCount);
return _frames[index]._bounds.width(); }
104 int getFrameHeight(
int index) { assert (index < _frameCount);
return _frames[index]._bounds.height(); }
105 int getMaxFrameWidth()
const {
return _maxWidth; }
106 int getMaxFrameHeight()
const {
return _maxHeight; }
107 MSprite *getFrame(
int frameIndex);
108 byte *getPalette() {
return _palette; }
109 int getColorCount() {
return _colorCount; }
110 bool isBackground()
const {
return _isBackground; }
Definition: sprites.h:109