aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute/base/base_sprite.h
diff options
context:
space:
mode:
authorEinar Johan Trøan Sømåen2012-09-28 23:42:16 +0200
committerEinar Johan Trøan Sømåen2012-09-28 23:43:43 +0200
commitb31d6212ffc35b987cfb7ee35a5ae3f75bf34a60 (patch)
tree8e94bdc735109f6adc5d39f62b34efe7e49f3ec3 /engines/wintermute/base/base_sprite.h
parentf6d7d05343375b05f5f487c0c9006fe2cdd7a387 (diff)
downloadscummvm-rg350-b31d6212ffc35b987cfb7ee35a5ae3f75bf34a60.tar.gz
scummvm-rg350-b31d6212ffc35b987cfb7ee35a5ae3f75bf34a60.tar.bz2
scummvm-rg350-b31d6212ffc35b987cfb7ee35a5ae3f75bf34a60.zip
WINTERMUTE: Privatize variables in BaseFrame and BaseSprite
Diffstat (limited to 'engines/wintermute/base/base_sprite.h')
-rw-r--r--engines/wintermute/base/base_sprite.h37
1 files changed, 20 insertions, 17 deletions
diff --git a/engines/wintermute/base/base_sprite.h b/engines/wintermute/base/base_sprite.h
index c861ca9930..cef874b254 100644
--- a/engines/wintermute/base/base_sprite.h
+++ b/engines/wintermute/base/base_sprite.h
@@ -39,36 +39,21 @@ class BaseSurface;
class BaseObject;
class BaseSprite: public BaseScriptHolder {
public:
- bool killAllSounds();
BaseSurface *getSurface();
- char *_editorBgFile;
- int _editorBgOffsetX;
- int _editorBgOffsetY;
- int _editorBgAlpha;
- bool _streamed;
- bool _streamedKeepLoaded;
void cleanup();
void setDefaults();
- bool _precise;
DECLARE_PERSISTENT(BaseSprite, BaseScriptHolder)
- bool _editorAllFrames;
bool getBoundingRect(Rect32 *rect, int x, int y, float scaleX = 100, float scaleY = 100);
int _moveY;
int _moveX;
bool display(int x, int y, BaseObject *registerOwner = NULL, float zoomX = 100, float zoomY = 100, uint32 alpha = 0xFFFFFFFF, float rotate = 0.0f, TSpriteBlendMode blendMode = BLEND_NORMAL);
bool getCurrentFrame(float zoomX = 100, float zoomY = 100);
- bool _canBreak;
- bool _editorMuted;
- bool _continuous;
void reset();
- BaseObject *_owner;
- bool _changed;
- bool _paused;
- bool _finished;
+ bool isChanged();
+ bool isFinished();
bool loadBuffer(byte *buffer, bool compete = true, int lifeTime = -1, TSpriteCacheType cacheType = CACHE_ALL);
bool loadFile(const Common::String &filename, int lifeTime = -1, TSpriteCacheType cacheType = CACHE_ALL);
- uint32 _lastFrameTime;
bool draw(int x, int y, BaseObject *Register = NULL, float zoomX = 100, float zoomY = 100, uint32 alpha = 0xFFFFFFFF);
bool _looping;
int _currentFrame;
@@ -83,6 +68,24 @@ public:
virtual bool scSetProperty(const char *name, ScValue *value);
virtual bool scCallMethod(ScScript *script, ScStack *stack, ScStack *thisStack, const char *name);
virtual const char *scToString();
+private:
+ BaseObject *_owner;
+ bool _canBreak;
+ bool _changed;
+ bool _editorAllFrames;
+ char *_editorBgFile;
+ int _editorBgOffsetX;
+ int _editorBgOffsetY;
+ int _editorBgAlpha;
+ bool _editorMuted;
+ bool _finished;
+ bool _continuous;
+ uint32 _lastFrameTime;
+ bool _precise;
+ bool _paused;
+ bool _streamed;
+ bool _streamedKeepLoaded;
+ bool killAllSounds();
};
} // end of namespace Wintermute