Drag[en]gine Script Module DragonScript 1.35
Loading...
Searching...
No Matches
Dragengine.Animators.AnimatorDefinition Class Reference

Stores definition of an animator. More...

Inheritance diagram for Dragengine.Animators.AnimatorDefinition:

Public Member Functions

void addBone (String bone)
 Add bone.
void addController (ADController controller)
 Add controller.
void addLink (ADLink link)
 Add link.
void addRule (ADRule rule)
 Add rule.
void addVertexPositionSet (String bone)
 Add bone.
void buildAnimator (Animator animator)
 Build animator.
void forEachController (Block ablock)
 Visit controllers using block.
void forEachLink (Block ablock)
 Visit links using block.
void forEachRule (Block ablock)
 Visit rules using block.
Animation getAnimation ()
 Animation.
String getBoneAt (int index)
 Bone at index.
int getBoneCount ()
 Count of bones.
ADController getControllerAt (int index)
 Controller at index.
int getControllerCount ()
 Count of controllers.
ADLink getLinkAt (int index)
 Link at index.
int getLinkCount ()
ADRule getRuleAt (int index)
 Rule at index.
int getRuleCount ()
 Count of rules.
String getVertexPositionSetAt (int index)
 VertexPositionSet at index.
int getVertexPositionSetCount ()
 Count of bones.
int indexOfController (ADController controller)
 Index of controller or -1 if absent.
int indexOfLink (ADLink link)
 Index of link or -1 if absent.
int indexOfRule (ADRule rule)
 Index of rule or -1 if absent.
AnimatorDefinition new (AnimatorDefinition definition)
 Create deep copy of animator definition.
AnimatorDefinition new (String pathFile)
 Create animator definition.
void setAnimation (Animation animation)
 Set animation.

Detailed Description

Stores definition of an animator.

Once defined an animator can be updated using the stored definition easily. Avoids storing real animators as often multiple animator definitions have to be loaded at the beginning of a gaming session.

Member Function Documentation

◆ addBone()

void Dragengine.Animators.AnimatorDefinition.addBone ( String bone)

Add bone.

References forEachController().

Referenced by buildAnimator().

◆ addController()

void Dragengine.Animators.AnimatorDefinition.addController ( ADController controller)

Add controller.

Referenced by forEachRule().

◆ addLink()

void Dragengine.Animators.AnimatorDefinition.addLink ( ADLink link)

Add link.

References getAnimation().

Referenced by buildAnimator().

◆ addRule()

void Dragengine.Animators.AnimatorDefinition.addRule ( ADRule rule)

Add rule.

References indexOfController().

Referenced by buildAnimator().

◆ addVertexPositionSet()

void Dragengine.Animators.AnimatorDefinition.addVertexPositionSet ( String bone)

Add bone.

Version
1.17

References indexOfLink().

Referenced by buildAnimator().

◆ buildAnimator()

◆ forEachController()

void Dragengine.Animators.AnimatorDefinition.forEachController ( Block ablock)

Visit controllers using block.

Version
1.13

Referenced by addBone().

◆ forEachLink()

void Dragengine.Animators.AnimatorDefinition.forEachLink ( Block ablock)

Visit links using block.

Version
1.13

References setAnimation().

Referenced by buildAnimator().

◆ forEachRule()

void Dragengine.Animators.AnimatorDefinition.forEachRule ( Block ablock)

Visit rules using block.

Version
1.13

References addController().

Referenced by buildAnimator().

◆ getAnimation()

Animation Dragengine.Animators.AnimatorDefinition.getAnimation ( )

Animation.

Referenced by addLink().

◆ getBoneAt()

String Dragengine.Animators.AnimatorDefinition.getBoneAt ( int index)

Bone at index.

Referenced by buildAnimator().

◆ getBoneCount()

int Dragengine.Animators.AnimatorDefinition.getBoneCount ( )

Count of bones.

Referenced by buildAnimator().

◆ getControllerAt()

ADController Dragengine.Animators.AnimatorDefinition.getControllerAt ( int index)

Controller at index.

Referenced by getRuleAt().

◆ getControllerCount()

int Dragengine.Animators.AnimatorDefinition.getControllerCount ( )

Count of controllers.

Referenced by getRuleCount().

◆ getLinkAt()

ADLink Dragengine.Animators.AnimatorDefinition.getLinkAt ( int index)

Link at index.

Referenced by getVertexPositionSetAt().

◆ getLinkCount()

int Dragengine.Animators.AnimatorDefinition.getLinkCount ( )

\briec Count of links.

Referenced by getVertexPositionSetCount().

◆ getRuleAt()

ADRule Dragengine.Animators.AnimatorDefinition.getRuleAt ( int index)

Rule at index.

References getControllerAt().

Referenced by buildAnimator().

◆ getRuleCount()

int Dragengine.Animators.AnimatorDefinition.getRuleCount ( )

Count of rules.

References getControllerCount().

Referenced by buildAnimator().

◆ getVertexPositionSetAt()

String Dragengine.Animators.AnimatorDefinition.getVertexPositionSetAt ( int index)

VertexPositionSet at index.

Version
1.17

References getLinkAt().

Referenced by buildAnimator().

◆ getVertexPositionSetCount()

int Dragengine.Animators.AnimatorDefinition.getVertexPositionSetCount ( )

Count of bones.

Version
1.17

References getLinkCount().

Referenced by buildAnimator().

◆ indexOfController()

int Dragengine.Animators.AnimatorDefinition.indexOfController ( ADController controller)

Index of controller or -1 if absent.

Version
1.13

Referenced by addRule().

◆ indexOfLink()

int Dragengine.Animators.AnimatorDefinition.indexOfLink ( ADLink link)

Index of link or -1 if absent.

Version
1.13

Referenced by addVertexPositionSet().

◆ indexOfRule()

int Dragengine.Animators.AnimatorDefinition.indexOfRule ( ADRule rule)

Index of rule or -1 if absent.

Version
1.13

Referenced by buildAnimator().

◆ new() [1/2]

AnimatorDefinition Dragengine.Animators.AnimatorDefinition.new ( AnimatorDefinition definition)

Create deep copy of animator definition.

Version
1.13

◆ new() [2/2]

AnimatorDefinition Dragengine.Animators.AnimatorDefinition.new ( String pathFile)

Create animator definition.

References new().

Referenced by new().

◆ setAnimation()

void Dragengine.Animators.AnimatorDefinition.setAnimation ( Animation animation)

Set animation.

Referenced by forEachLink().


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