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),
79 enum SpriteCopyBackMask {
81 kSCBScriptId = 0x00001,
82 kSCBSpriteType = 0x00002,
83 kSCBEnabled = 0x00004,
84 kSCBForeColor = 0x00008,
85 kSCBBackColor = 0x00010,
86 kSCBThickness = 0x00020,
88 kSCBPattern = 0x00080,
90 kSCBStartPoint = 0x00200,
93 kSCBMoveable = 0x01000,
94 kSCBBlendAmount = 0x02000,
95 kSCBSpriteListIdx = 0x04000,
105 bool operator==(
const Sprite &sprite);
108 Frame *getFrame()
const {
return _frame; }
109 Score *getScore()
const {
return _score; }
115 bool respondsToMouse();
118 bool checkSpriteType();
121 void setPattern(uint16 pattern);
123 void setCast(
CastMemberID memberID,
bool replaceDims =
true);
126 void createQDMatte();
128 uint32 getForeColor();
129 uint32 getBackColor();
130 void setAutoPuppet(AutoPuppetProperty property,
bool value);
131 bool getAutoPuppet(AutoPuppetProperty property);
133 inline int getWidth() {
return _width; }
134 void setWidth(
int w);
135 inline int getHeight() {
return _height; }
136 void setHeight(
int h);
139 void setBbox(
int l,
int t,
int r,
int b);
142 void setPosition(
int x,
int y);
146 void replaceFrom(
Sprite *nextSprite);
154 uint32 _copyBackMask;
162 SpriteType _spriteType;
191 uint32 _spriteListIdx;
196 byte _fgColorG, _fgColorB;
197 byte _bgColorG, _bgColorB;
Definition: surface.h:631
Definition: director.h:134
Definition: spriteinfo.h:43
Definition: castmember.h:48