Drag[en]gine Script Module DragonScript  1.23
Dragengine.Audio.DynamicMusic.DynamicMusicTransition Class Reference

Dynamic music transition. More...

Inheritance diagram for Dragengine.Audio.DynamicMusic.DynamicMusicTransition:

Public Member Functions

void addSwitchOff (DynamicMusicSwitch switch)
 Add off switch. More...
 
void addSwitchOn (DynamicMusicSwitch switch)
 Add on switch. More...
 
bool areConditionsFulfilled ()
 Conditions are fulfilled. More...
 
String getPart ()
 Name of part to play if fulfilled or null to stop. More...
 
DynamicMusicSwitch getSwitchOffAt (int index)
 Get off switch at index. More...
 
int getSwitchOffCount ()
 Number of off switchs. More...
 
DynamicMusicSwitch getSwitchOnAt (int index)
 Get on switch at index. More...
 
int getSwitchOnCount ()
 Number of on switchs. More...
 
bool hasSwitchOff (DynamicMusicSwitch switch)
 Off switch is present. More...
 
bool hasSwitchOn (DynamicMusicSwitch switch)
 On switch is present. More...
 
DynamicMusicTransition new ()
 Create dynamic music transition with null part to stop playback. More...
 
DynamicMusicTransition new (String part)
 Create dynamic music transition. More...
 
void removeAllSwitchOffs ()
 Remove all off switchs. More...
 
void removeAllSwitchOns ()
 Remove all on switchs. More...
 
void removeSwitchOff (DynamicMusicSwitch switch)
 Remove off switch. More...
 
void removeSwitchOn (DynamicMusicSwitch switch)
 Remove on switch. More...
 

Detailed Description

Dynamic music transition.

Transition to another part or null to stop playback after the current part stops. Contains a list of switches to check. Transition is fulfilled if all switches have the desired state or no switches are present.

Member Function Documentation

◆ addSwitchOff()

void Dragengine.Audio.DynamicMusic.DynamicMusicTransition.addSwitchOff ( DynamicMusicSwitch  switch)

Add off switch.

◆ addSwitchOn()

void Dragengine.Audio.DynamicMusic.DynamicMusicTransition.addSwitchOn ( DynamicMusicSwitch  switch)

Add on switch.

◆ areConditionsFulfilled()

bool Dragengine.Audio.DynamicMusic.DynamicMusicTransition.areConditionsFulfilled ( )

Conditions are fulfilled.

◆ getPart()

String Dragengine.Audio.DynamicMusic.DynamicMusicTransition.getPart ( )

Name of part to play if fulfilled or null to stop.

◆ getSwitchOffAt()

DynamicMusicSwitch Dragengine.Audio.DynamicMusic.DynamicMusicTransition.getSwitchOffAt ( int  index)

Get off switch at index.

◆ getSwitchOffCount()

int Dragengine.Audio.DynamicMusic.DynamicMusicTransition.getSwitchOffCount ( )

Number of off switchs.

◆ getSwitchOnAt()

DynamicMusicSwitch Dragengine.Audio.DynamicMusic.DynamicMusicTransition.getSwitchOnAt ( int  index)

Get on switch at index.

◆ getSwitchOnCount()

int Dragengine.Audio.DynamicMusic.DynamicMusicTransition.getSwitchOnCount ( )

Number of on switchs.

◆ hasSwitchOff()

bool Dragengine.Audio.DynamicMusic.DynamicMusicTransition.hasSwitchOff ( DynamicMusicSwitch  switch)

Off switch is present.

◆ hasSwitchOn()

bool Dragengine.Audio.DynamicMusic.DynamicMusicTransition.hasSwitchOn ( DynamicMusicSwitch  switch)

On switch is present.

◆ new() [1/2]

DynamicMusicTransition Dragengine.Audio.DynamicMusic.DynamicMusicTransition.new ( )

Create dynamic music transition with null part to stop playback.

◆ new() [2/2]

DynamicMusicTransition Dragengine.Audio.DynamicMusic.DynamicMusicTransition.new ( String  part)

Create dynamic music transition.

◆ removeAllSwitchOffs()

void Dragengine.Audio.DynamicMusic.DynamicMusicTransition.removeAllSwitchOffs ( )

Remove all off switchs.

◆ removeAllSwitchOns()

void Dragengine.Audio.DynamicMusic.DynamicMusicTransition.removeAllSwitchOns ( )

Remove all on switchs.

◆ removeSwitchOff()

void Dragengine.Audio.DynamicMusic.DynamicMusicTransition.removeSwitchOff ( DynamicMusicSwitch  switch)

Remove off switch.

◆ removeSwitchOn()

void Dragengine.Audio.DynamicMusic.DynamicMusicTransition.removeSwitchOn ( DynamicMusicSwitch  switch)

Remove on switch.


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