Ejemplo n.º 1
0
 /// <summary>
 /// Initialize the Animation structure
 /// </summary>
 /// <param name="name">name of the animation</param>
 /// <param name="id">ID of the animation</param>
 public TAnimation(string name, int id)
 {
     Start           = new TMovement();
     End             = new TMovement();
     Name            = name;
     EndAnimation    = new List <TNextAnimation>(8);
     EndBorder       = new List <TNextAnimation>(8);
     EndGravity      = new List <TNextAnimation>(8);
     Sequence        = new TSequence();
     Sequence.Frames = new List <int>(16);
     Gravity         = false;
     Border          = false;
     ID = id;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initialisation of the Spawn structure
 /// </summary>
 /// <param name="probability">Probability that this will be the next spawn</param>
 public TSpawn(int probability)
 {
     Start       = new TMovement();
     Probability = probability;
     Next        = 1;
 }