Evolution API For XNA

This page is currently being developed…
Right now it contains only notes for the API, but eventually it will contain a description of the API and how to use it.

Features

  • Simple and easy to use
  • Reasonably powerful
  • Be able to be developed further in future releases

Functions

  • Play an animation
  • Play an animation in a loop
  • Play a tween
  • Stop an animation at the next key frame
  • Stop an animation at the next time it runs into a particular key frame

It may need to be able to return the correct transformation matrix instead of "playing" an animation

AnimationManager class at top level - what the user plays with
public Matrix GetTransformation(int meshNumber);
public void PlayAnimation(string name);
public string[] Animations {get;}
public bool Cycle {get; set;}
public void Stop(StopMethod stopMethod);
public void Stop(StopMethod stopMethod, string keyword); // keyword either tween name or keyframe name based on stop method
public void AdvanceFrame();
public int CurrentFrame {get; set;}
public int TotalFrames {get;}

enum StopMethod
{
IMMEDIATELY,
AFTER_ANIMATION,
AFTER_TWEEN,
AT_NEXT_KEYFRAME,
AFTER_TWEEN,
BEFORE_TWEEN,
AT_KEYFRAME,
}