22 #ifndef SCRIPTING_EFFECT_H_INCLUDED 23 #define SCRIPTING_EFFECT_H_INCLUDED 26 class SeekableReadStream;
48 enum ScriptingEffectType {
49 SCRIPTING_EFFECT_ANIM = 1,
50 SCRIPTING_EFFECT_AUDIO = 2,
51 SCRIPTING_EFFECT_DISTORT = 4,
52 SCRIPTING_EFFECT_PANTRACK = 8,
53 SCRIPTING_EFFECT_REGION = 16,
54 SCRIPTING_EFFECT_TIMER = 32,
55 SCRIPTING_EFFECT_TTYTXT = 64,
56 SCRIPTING_EFFECT_UNKNOWN = 128,
57 SCRIPTING_EFFECT_ALL = 255
60 ScriptingEffect() : _engine(0), _key(0), _type(SCRIPTING_EFFECT_UNKNOWN) {}
61 ScriptingEffect(
ZVision *engine, uint32 key, ScriptingEffectType type) : _engine(engine), _key(key), _type(type) {}
67 ScriptingEffectType getType() {
71 virtual bool process(uint32 deltaTimeInMillis) {
107 virtual bool stop() {
110 virtual void kill() {}
115 ScriptingEffectType _type;
123 #endif // SCRIPTING_EFFECT_H_INCLUDED
Definition: display_client.h:58
virtual bool needsSerialization()
Definition: scripting_effect.h:103
virtual void deserialize(Common::SeekableReadStream *stream)
Definition: scripting_effect.h:97
Definition: scripting_effect.h:45
Definition: algorithm.h:29
virtual void serialize(Common::WriteStream *stream)
Definition: scripting_effect.h:85