ScummVM API documentation
ZVision::MusicNode Class Reference
Inheritance diagram for ZVision::MusicNode:
ZVision::MusicNodeBASE ZVision::ScriptingEffect

Public Member Functions

 MusicNode (ZVision *engine, uint32 key, Common::Path &file, bool loop, uint8 volume)
 
bool process (uint32 deltaTimeInMillis) override
 
void setVolume (uint8 volume) override
 
uint8 getVolume () override
 
void setDeltaVolume (uint8 volume) override
 
void setBalance (int8 balance) override
 
void setFade (int32 time, uint8 target) override
 
- Public Member Functions inherited from ZVision::MusicNodeBASE
 MusicNodeBASE (ZVision *engine, uint32 key, ScriptingEffectType type)
 
- Public Member Functions inherited from ZVision::ScriptingEffect
 ScriptingEffect (ZVision *engine, uint32 key, ScriptingEffectType type)
 
uint32 getKey ()
 
ScriptingEffectType getType ()
 
virtual void serialize (Common::WriteStream *stream)
 
virtual void deserialize (Common::SeekableReadStream *stream)
 
virtual bool needsSerialization ()
 
virtual bool stop ()
 
virtual void kill ()
 

Additional Inherited Members

- Public Types inherited from ZVision::ScriptingEffect
enum  ScriptingEffectType {
  SCRIPTING_EFFECT_ANIM = 1, SCRIPTING_EFFECT_AUDIO = 2, SCRIPTING_EFFECT_DISTORT = 4, SCRIPTING_EFFECT_PANTRACK = 8,
  SCRIPTING_EFFECT_REGION = 16, SCRIPTING_EFFECT_TIMER = 32, SCRIPTING_EFFECT_TTYTXT = 64, SCRIPTING_EFFECT_UNKNOWN = 128,
  SCRIPTING_EFFECT_ALL = 255
}
 
- Protected Attributes inherited from ZVision::ScriptingEffect
ZVision_engine
 
uint32 _key
 
ScriptingEffectType _type
 

Member Function Documentation

◆ process()

bool ZVision::MusicNode::process ( uint32  deltaTimeInMillis)
overridevirtual

Decrement the timer by the delta time. If the timer is finished, set the status in _globalState and let this node be deleted

Parameters
deltaTimeInMillisThe number of milliseconds that have passed since last frame
Returns
If true, the node can be deleted after process() finishes

Implements ZVision::MusicNodeBASE.


The documentation for this class was generated from the following file: