diff options
Diffstat (limited to 'engines/wintermute/Base/particles/PartEmitter.h')
-rw-r--r-- | engines/wintermute/Base/particles/PartEmitter.h | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/engines/wintermute/Base/particles/PartEmitter.h b/engines/wintermute/Base/particles/PartEmitter.h index 6f517bf357..92918927ea 100644 --- a/engines/wintermute/Base/particles/PartEmitter.h +++ b/engines/wintermute/Base/particles/PartEmitter.h @@ -100,35 +100,35 @@ public: char *_emitEvent;
CBScriptHolder *_owner;
- ERRORCODE start();
+ bool start();
- ERRORCODE update();
- ERRORCODE display() { return display(NULL); } // To avoid shadowing the inherited display-function.
- ERRORCODE display(CBRegion *region);
+ bool update();
+ bool display() { return display(NULL); } // To avoid shadowing the inherited display-function.
+ bool display(CBRegion *region);
- ERRORCODE sortParticlesByZ();
- ERRORCODE addSprite(const char *filename);
- ERRORCODE removeSprite(const char *filename);
- ERRORCODE setBorder(int x, int y, int width, int height);
- ERRORCODE setBorderThickness(int thicknessLeft, int thicknessRight, int thicknessTop, int thicknessBottom);
+ bool sortParticlesByZ();
+ bool addSprite(const char *filename);
+ bool removeSprite(const char *filename);
+ bool setBorder(int x, int y, int width, int height);
+ bool setBorderThickness(int thicknessLeft, int thicknessRight, int thicknessTop, int thicknessBottom);
- ERRORCODE addForce(const char *name, CPartForce::TForceType type, int posX, int posY, float angle, float strength);
- ERRORCODE removeForce(const char *name);
+ bool addForce(const char *name, CPartForce::TForceType type, int posX, int posY, float angle, float strength);
+ bool removeForce(const char *name);
CBArray<CPartForce *, CPartForce *> _forces;
// 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();
private:
CPartForce *addForceByName(const char *name);
int static compareZ(const void *obj1, const void *obj2);
- ERRORCODE initParticle(CPartParticle *particle, uint32 currentTime, uint32 timerDelta);
- ERRORCODE updateInternal(uint32 currentTime, uint32 timerDelta);
+ bool initParticle(CPartParticle *particle, uint32 currentTime, uint32 timerDelta);
+ bool updateInternal(uint32 currentTime, uint32 timerDelta);
uint32 _lastGenTime;
CBArray<CPartParticle *, CPartParticle *> _particles;
CBArray<char *, char *> _sprites;
|