22 #ifndef DIRECTOR_SPRITE_H 23 #define DIRECTOR_SPRITE_H 25 #include "director/spriteinfo.h" 30 class BitmapCastMember;
31 class ShapeCastMember;
39 enum AutoPuppetProperty {
64 kTFlip = (kTFlipH | kTFlipV),
73 bool operator==(
const Sprite &sprite);
76 Frame *getFrame()
const {
return _frame; }
77 Score *getScore()
const {
return _score; }
83 bool respondsToMouse();
86 bool checkSpriteType();
89 void setPattern(uint16 pattern);
91 void setCast(
CastMemberID memberID,
bool replaceDims =
true);
96 uint32 getForeColor();
97 uint32 getBackColor();
98 void setAutoPuppet(AutoPuppetProperty property,
bool value);
99 bool getAutoPuppet(AutoPuppetProperty property);
101 inline int getWidth() {
return _width; }
102 void setWidth(
int w);
103 inline int getHeight() {
return _height; }
104 void setHeight(
int h);
107 void setBbox(
int l,
int t,
int r,
int b);
110 void setPosition(
int x,
int y);
124 SpriteType _spriteType;
153 uint32 _spriteListIdx;
158 byte _fgColorG, _fgColorB;
159 byte _bgColorG, _bgColorB;
Definition: surface.h:629
Definition: director.h:134
Definition: spriteinfo.h:43
Definition: castmember.h:48