public void PlayActionAnimation(Graphics.AnimationPlayParameters parms)
 {
     actionAnimation        = parms;
     actionAnimationPlaying = false;
     InvalidateAnimation();
 }
 public void StopAnimation()
 {
     actionAnimation = null;
     actionAnimationPlaying = false;
     InvalidateAnimation();
 }
 protected virtual void OnAnimationDone(int obj)
 {
     if (actionAnimationPlaying)
     {
         actionAnimation = null;
         actionAnimationPlaying = false;
     }
     if (JumpAnimationStage == JumpAnimationStage.Jump)
         JumpAnimationStage = JumpAnimationStage.Falling;
     else if (JumpAnimationStage == JumpAnimationStage.Land)
         JumpAnimationStage = JumpAnimationStage.None;
     InvalidateAnimation();
 }
 public void PlayActionAnimation(Graphics.AnimationPlayParameters parms)
 {
     actionAnimation = parms;
     actionAnimationPlaying = false;
     InvalidateAnimation();
 }