|
Drag[en]gine Script Module DragonScript 1.32.1
|
Foot step configuration. More...
Public Member Functions | |
| void | addEvent (Event event) |
| Add event. | |
| Event | findEvent (Block ablock) |
| Find event with block receiving argument Event returning true if found. | |
| void | forEachEvent (Block ablock) |
| Visit events with block receiving argument Event. | |
| String | getControllerName () |
| Name of activate animated controller to use as elapsed time or null. | |
| Event | getEventAt (int index) |
| Event at index. | |
| int | getEventCount () |
| Number of events. | |
| float | getInterval () |
| Interval in seconds before foot steps repeat. | |
| Configuration | new (Configuration config) |
| Create copy of foot steps configuration. | |
| Configuration | new (String id) |
| Create foot steps configuration. | |
| void | removeAllEvents () |
| Remove all events. | |
| void | removeEvent (Event event) |
| Remove event. | |
| void | setControllerName (String name) |
| Set name of activate animated controller to use as elapsed time or null. | |
| void | setInterval (float interval) |
| Set interval in seconds before foot steps repeat. | |
Public Attributes | |
| String | pControllerName |
| Array | pEvents |
| String | pID |
| float | pInterval |
Foot step configuration.
Stores interval and events for a type of foot steps.
| void Dragengine.Scenery.ECBehaviorFootSteps.Configuration.addEvent | ( | Event | event | ) |
Add event.
| Event Dragengine.Scenery.ECBehaviorFootSteps.Configuration.findEvent | ( | Block | ablock | ) |
Find event with block receiving argument Event returning true if found.
| void Dragengine.Scenery.ECBehaviorFootSteps.Configuration.forEachEvent | ( | Block | ablock | ) |
Visit events with block receiving argument Event.
| String Dragengine.Scenery.ECBehaviorFootSteps.Configuration.getControllerName | ( | ) |
Name of activate animated controller to use as elapsed time or null.
If name is not null the relative value of the matching named controller from ECBehaviorActorAnimated is used as elapsed time. Since relative controller value is used time related values in the configuration and events must be in the range from 0 to 1. This allows to easily synchronize foot steps to actor animations no matter the playtime of each individual animation.
If the name is null or named controller is absent from ECBehaviorActorAnimated the elapsed game time is used instead. In this case time related values in the configuration and events are in seconds.
| Event Dragengine.Scenery.ECBehaviorFootSteps.Configuration.getEventAt | ( | int | index | ) |
Event at index.
| int Dragengine.Scenery.ECBehaviorFootSteps.Configuration.getEventCount | ( | ) |
Number of events.
| float Dragengine.Scenery.ECBehaviorFootSteps.Configuration.getInterval | ( | ) |
Interval in seconds before foot steps repeat.
| Configuration Dragengine.Scenery.ECBehaviorFootSteps.Configuration.new | ( | Configuration | config | ) |
Create copy of foot steps configuration.
| Configuration Dragengine.Scenery.ECBehaviorFootSteps.Configuration.new | ( | String | id | ) |
Create foot steps configuration.
| void Dragengine.Scenery.ECBehaviorFootSteps.Configuration.removeAllEvents | ( | ) |
Remove all events.
| void Dragengine.Scenery.ECBehaviorFootSteps.Configuration.removeEvent | ( | Event | event | ) |
Remove event.
| void Dragengine.Scenery.ECBehaviorFootSteps.Configuration.setControllerName | ( | String | name | ) |
Set name of activate animated controller to use as elapsed time or null.
| void Dragengine.Scenery.ECBehaviorFootSteps.Configuration.setInterval | ( | float | interval | ) |
Set interval in seconds before foot steps repeat.
Clamped to 0.1 if smaller.
| String Dragengine.Scenery.ECBehaviorFootSteps.Configuration.pControllerName |
| Array Dragengine.Scenery.ECBehaviorFootSteps.Configuration.pEvents |
| String Dragengine.Scenery.ECBehaviorFootSteps.Configuration.pID |
| float Dragengine.Scenery.ECBehaviorFootSteps.Configuration.pInterval |