Ejemplo n.º 1
0
 public void ForceSetCurrentMove(GameMove move)
 {
     //StageForm.PhysicsTimer.Tick -= MoveForward;
     //StageForm.PhysicsTimer.Tick -= MoveBackward;
     //StageForm.PhysicsTimer.Tick -= JumpOffset;
     CurrentMove = move;
     CurrentMove.Perform(this);
 }
Ejemplo n.º 2
0
 private void JumpOffset(object sender, EventArgs args)
 {
     ++ticksInAir;
     MoveVector = MoveVector.SetY(60 - 5 * ticksInAir);
     if (Position.Y <= 0 && ticksInAir > 1)
     {
         Stop();
         CurrentMove = PlayingCharacter.MoveList["Idle"];
         CurrentMove.Perform(this);
     }
 }
Ejemplo n.º 3
0
 public void SetCurrentMove(GameMove move, bool ignoreRepeat = false)
 {
     if (!Busy && (CurrentMove != move || ignoreRepeat))
     {
         if (OnGround)
         {
             Stop();
         }
         CurrentMove = move;
         CurrentMove.Perform(this);
     }
 }
Ejemplo n.º 4
0
 public Player(
     Character character,
     PointF position,
     float health,
     float heatGauge,
     float overDriveMeter)
 {
     PlayingCharacter = character;
     Position         = position;
     Health           = health;
     HeatGauge        = heatGauge;
     OverDriveMeter   = overDriveMeter;
     CurrentMove      = PlayingCharacter.MoveList["Idle"];
     for (var i = 0; i < 20; i++)
     {
         InputBuffer.AddLast(Arrows.Neutral);
     }
 }