22 #ifndef SCUMM_BASE_COSTUME_H 23 #define SCUMM_BASE_COSTUME_H 25 #include "common/scummsys.h" 26 #include "scumm/actor.h" 30 #include "common/pack-start.h" 38 #include "common/pack-end.h" 41 extern const byte smallCostumeScaleTable[256];
42 extern const byte bigCostumeScaleTable[768];
57 virtual void loadCostume(
int id) = 0;
58 virtual bool increaseAnims(
Actor *a) = 0;
59 virtual void costumeDecodeData(
Actor *a,
int frame, uint usemask) = 0;
61 virtual bool hasManyDirections(
int id) {
return false; }
78 byte _scaleX, _scaleY;
80 int _drawTop, _drawBottom;
83 bool _actorDrawVirScr;
113 const byte *scaleTable;
125 int scaleXIndex, scaleYIndex;
131 _shadowTable =
nullptr;
132 _actorX = _actorY = 0;
134 _scaleX = _scaleY = 0;
135 _drawTop = _drawBottom = 0;
142 _width = _height = 0;
145 _actorDrawVirScr =
false;
150 virtual void setPalette(uint16 *palette) = 0;
151 virtual void setFacing(
const Actor *a) = 0;
152 virtual void setCostume(
int costume,
int shadow) = 0;
155 byte drawCostume(
const VirtScreen &vs,
int numStrips,
const Actor *a,
bool drawToBackBuf);
158 virtual byte drawLimb(
const Actor *a,
int limb) = 0;
Definition: base-costume.h:108
Definition: base-costume.h:32
Definition: base-costume.h:68
Definition: base-costume.h:49