CompetitorAnimation Class Reference

Animation for the mounts and riders of the game. More...

List of all members.

Classes

class  AnimationEntry

Public Types

enum  State {
  Paused, Idle, Trotting, Galloping,
  Boosting, Crashed, Falling, Reversing,
  PivotLeft, PivotRight
}
 

Animation state.

More...
enum  Attack { Left = -1, None = 0, Right = 1 }
 

Attack state.

More...

Public Member Functions

void Initialize ()
 Validates start-up game state.
void StackAnimation (string name)
 Pushes the specified animation to the animation stack.
void BlendAnimations (float speed)
 Blends the current animations and updates the stack.
void Start ()
 Initialise.
void Update ()
 Controls the game object to which this controller is assigned.
State SetAnimation (ref float speed, ref float turning, bool boost, bool crashed, bool onGround, Attack attack)
 Sets the animation based on the current speed and limits this speed based on the current gait.

Public Attributes

Animation mountAnimation
 Connection to an animatable mount.
Animation riderAnimation
 Connection to an animatable rider.
Transform riderSpineRoot
 Root of the upper body portion of the rider's rig.

Detailed Description

Animation for the mounts and riders of the game.


Member Enumeration Documentation

Attack state.

Animation state.


Member Function Documentation

void CompetitorAnimation.BlendAnimations ( float  speed  ) 

Blends the current animations and updates the stack.

void CompetitorAnimation.Initialize (  ) 

Validates start-up game state.

State CompetitorAnimation.SetAnimation ( ref float  speed,
ref float  turning,
bool  boost,
bool  crashed,
bool  onGround,
Attack  attack 
)

Sets the animation based on the current speed and limits this speed based on the current gait.

void CompetitorAnimation.StackAnimation ( string  name  ) 

Pushes the specified animation to the animation stack.

void CompetitorAnimation.Start (  ) 

Initialise.

void CompetitorAnimation.Update (  ) 

Controls the game object to which this controller is assigned.


Member Data Documentation

Connection to an animatable mount.

Connection to an animatable rider.

Root of the upper body portion of the rider's rig.


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

Generated on Fri Aug 21 09:09:58 2009 for Hamlington Underground Racing Association by  doxygen 1.6.0