diff options
Diffstat (limited to 'engines/wintermute/Base/BFrame.h')
-rw-r--r-- | engines/wintermute/Base/BFrame.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/wintermute/Base/BFrame.h b/engines/wintermute/Base/BFrame.h index 715a97ea69..537471c953 100644 --- a/engines/wintermute/Base/BFrame.h +++ b/engines/wintermute/Base/BFrame.h @@ -42,18 +42,18 @@ class CBFrame: public CBScriptable { public:
bool _killSound;
bool _keyframe;
- ERRORCODE oneTimeDisplay(CBObject *owner, bool muted = false);
+ bool oneTimeDisplay(CBObject *owner, bool muted = false);
DECLARE_PERSISTENT(CBFrame, CBScriptable)
CBSound *_sound;
bool _editorExpanded;
bool getBoundingRect(Rect32 *rect, int x, int y, float scaleX = 100, float scaleY = 100);
- ERRORCODE saveAsText(CBDynBuffer *buffer, int indent);
+ bool saveAsText(CBDynBuffer *buffer, int indent);
int _moveY;
int _moveX;
uint32 _delay;
CBArray<CBSubFrame *, CBSubFrame *> _subframes;
- ERRORCODE draw(int x, int y, CBObject *registerOwner = NULL, float zoomX = 100, float zoomY = 100, bool precise = true, uint32 Alpha = 0xFFFFFFFF, bool allFrames = false, float rotate = 0.0f, TSpriteBlendMode blendMode = BLEND_NORMAL);
- ERRORCODE loadBuffer(byte *buffer, int lifeTime, bool keepLoaded);
+ bool draw(int x, int y, CBObject *registerOwner = NULL, float zoomX = 100, float zoomY = 100, bool precise = true, uint32 Alpha = 0xFFFFFFFF, bool allFrames = false, float rotate = 0.0f, TSpriteBlendMode blendMode = BLEND_NORMAL);
+ bool loadBuffer(byte *buffer, int lifeTime, bool keepLoaded);
CBFrame(CBGame *inGame);
virtual ~CBFrame();
@@ -62,8 +62,8 @@ public: // scripting interface
virtual CScValue *scGetProperty(const char *name);
- virtual ERRORCODE scSetProperty(const char *name, CScValue *value);
- virtual ERRORCODE scCallMethod(CScScript *script, CScStack *stack, CScStack *thisStack, const char *name);
+ virtual bool scSetProperty(const char *name, CScValue *value);
+ virtual bool scCallMethod(CScScript *script, CScStack *stack, CScStack *thisStack, const char *name);
virtual const char *scToString();
};
|