示例#1
0
 public override void KeyPressHandle(Key k)
 {
     switch (k)
     {
         case Key.Select:
             InfoBar.Instance.Visible = !InfoBar.Instance.Visible;
             break;
         case Key.Square:
             _holdingSquare = true;
             break;
         case Key.Triangle:
             if (_control != null)
             {
                 _turnQueue.Enqueue(_control);
                 ClearControl();
             }
             break;
         default:
             break;
     }
     if (_control != null)
         Screen.Control.ControlHandle(k);
 }
示例#2
0
 public override void KeyReleaseHandle(Key k)
 {
     switch (k)
     {
         case Key.Square:
             _holdingSquare = false;
             break;
         default:
             break;
     }
 }
示例#3
0
 public override void KeyPressHandle(Key k)
 {
     switch (k)
     {
         case Key.Left:
             _movingLeft = true;
             break;
         case Key.Right:
             _movingRight = true;
             break;
         case Key.Up:
             _movingUp = true;
             break;
         case Key.Down:
             _movingDown = true;
             break;
     }
 }
示例#4
0
 public override void KeyReleaseHandle(Key k)
 {
     switch (k)
     {
         case Key.Left:
             _movingLeft = false;
             break;
         case Key.Right:
             _movingRight = false;
             break;
         case Key.Up:
             _movingUp = false;
             break;
         case Key.Down:
             _movingDown = false;
             break;
     }
 }
示例#5
0
 public override void KeyReleaseHandle(Key k)
 {
 }
示例#6
0
 public override void KeyPressHandle(Key k)
 {
 }
示例#7
0
        public override void KeyPressHandle(Key k)
        {
            if (k == Key.Start)
            {
                if (!Paused)
                {
                    Paused = true;

                    if (ActiveAbility != null)
                    {
                        ActiveAbility.ActionTimer.Pause();
                    }

                    foreach (BattleIcon icon in _battleIcons)
                    {
                        icon.AnimationTimer.Pause();
                    }

                    Party.Clock.Pause();

                    CombatantClocks.PauseAllClocks();
                }
                else
                {
                    CombatantClocks.UnpauseAllClocks();

                    Party.Clock.Unpause();

                    foreach (BattleIcon icon in _battleIcons)
                    {
                        icon.AnimationTimer.Unpause();
                    }

                    if (ActiveAbility != null)
                    {
                        ActiveAbility.ActionTimer.Unpause();
                    }

                    Paused = false;
                }
            }

            if (!Paused)
            {
                switch (k)
                {
                    case Key.Select:
                        Screen.InfoBar.Visible = !Screen.InfoBar.Visible;
                        break;

                    case Key.Square:
                        _holdingSquare = true;
                        break;

                    case Key.Triangle:
                        if (Commanding != null)
                        {
                            _turnQueue.Enqueue(Commanding);
                            ClearControl();
                        }
                        break;

                    default:
                        break;
                }
            }

            if (Commanding != null && !Victory)
            {
                Screen.Control.ControlHandle(k);
            }
        }