#include <scripting_effect.h>
Public Member Functions | |
ScriptingEffect (ZVision *engine, uint32 key, ScriptingEffectType type) | |
uint32 | getKey () |
ScriptingEffectType | getType () |
virtual bool | process (uint32 deltaTimeInMillis) |
virtual void | serialize (Common::WriteStream *stream) |
virtual void | deserialize (Common::SeekableReadStream *stream) |
virtual bool | needsSerialization () |
virtual bool | stop () |
virtual void | kill () |
Protected Attributes | |
ZVision * | _engine |
uint32 | _key |
ScriptingEffectType | _type |
The base class that represents effects created from Actions. This class is virtual.
Detailed Description: A scene has Controls. By interacting with the controls, the user causes Actions to execute. Certain Actions create 'effects', for example, a sound or an animation. This is the base class for those effects.
|
inlinevirtual |
Serialize a SideFX for save game use. This should only be used if a SideFX needs to save values that would be different from initialization. AKA a TimerNode needs to store the amount of time left on the timer. Any Controls overriding this MUST write their key as the first data outputted. The default implementation is NOP.
NOTE: If this method is overridden, you MUST also override deserialize() and needsSerialization()
stream | Stream to write any needed data to |
Reimplemented in ZVision::TimerNode.
|
inlinevirtual |
De-serialize data from a save game stream. This should only be implemented if the SideFX also implements serialize(). The calling method assumes the size of the data read from the stream exactly equals that written in serialize(). The default implementation is NOP.
NOTE: If this method is overridden, you MUST also override serialize() and needsSerialization()
stream | Save game file stream |
Reimplemented in ZVision::TimerNode.
|
inlinevirtual |
If a SideFX overrides serialize() and deserialize(), this should return true
Reimplemented in ZVision::TimerNode.