Drag[en]gine Script Module DragonScript 1.35
Loading...
Searching...
No Matches
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.
void addSwitchOn (DynamicMusicSwitch switch)
 Add on switch.
bool areConditionsFulfilled ()
 Conditions are fulfilled.
String getPart ()
 Name of part to play if fulfilled or null to stop.
DynamicMusicSwitch getSwitchOffAt (int index)
 Get off switch at index.
int getSwitchOffCount ()
 Number of off switchs.
DynamicMusicSwitch getSwitchOnAt (int index)
 Get on switch at index.
int getSwitchOnCount ()
 Number of on switchs.
bool hasSwitchOff (DynamicMusicSwitch switch)
 Off switch is present.
bool hasSwitchOn (DynamicMusicSwitch switch)
 On switch is present.
DynamicMusicTransition new ()
 Create dynamic music transition with null part to stop playback.
DynamicMusicTransition new (String part)
 Create dynamic music transition.
void removeAllSwitchOffs ()
 Remove all off switchs.
void removeAllSwitchOns ()
 Remove all on switchs.
void removeSwitchOff (DynamicMusicSwitch switch)
 Remove off switch.
void removeSwitchOn (DynamicMusicSwitch switch)
 Remove on switch.

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.

Referenced by areConditionsFulfilled().

◆ addSwitchOn()

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

Add on switch.

References getSwitchOnCount().

Referenced by getSwitchOffAt().

◆ areConditionsFulfilled()

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

◆ getPart()

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

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

Referenced by getSwitchOnCount().

◆ getSwitchOffAt()

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

Get off switch at index.

References addSwitchOn().

Referenced by areConditionsFulfilled().

◆ getSwitchOffCount()

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

Number of off switchs.

Referenced by areConditionsFulfilled().

◆ getSwitchOnAt()

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

Get on switch at index.

Referenced by removeSwitchOn().

◆ getSwitchOnCount()

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

Number of on switchs.

References getPart().

Referenced by addSwitchOn().

◆ hasSwitchOff()

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

Off switch is present.

Referenced by areConditionsFulfilled().

◆ hasSwitchOn()

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

On switch is present.

Referenced by removeAllSwitchOns().

◆ new() [1/2]

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

Create dynamic music transition with null part to stop playback.

References new().

Referenced by new().

◆ 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.

References removeAllSwitchOns().

Referenced by areConditionsFulfilled().

◆ removeAllSwitchOns()

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

Remove all on switchs.

References hasSwitchOn().

Referenced by removeAllSwitchOffs().

◆ removeSwitchOff()

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

Remove off switch.

References removeSwitchOn().

Referenced by areConditionsFulfilled().

◆ removeSwitchOn()

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

Remove on switch.

References getSwitchOnAt().

Referenced by removeSwitchOff().


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