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

Public Member Functions

 MusicNodeBASE (ZVision *engine, uint32 key, ScriptingEffectType type)
 
bool process (uint32 deltaTimeInMillis) override=0
 
virtual void setVolume (uint8 volume)=0
 
virtual uint8 getVolume ()=0
 
virtual void setDeltaVolume (uint8 volume)=0
 
virtual void setBalance (int8 balance)=0
 
virtual void setFade (int32 time, uint8 target)=0
 
- 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::MusicNodeBASE::process ( uint32  deltaTimeInMillis)
overridepure virtual

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

Reimplemented from ZVision::ScriptingEffect.

Implemented in ZVision::MusicMidiNode, and ZVision::MusicNode.


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