Esempio n. 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);
 }
Esempio n. 2
0
 public override void KeyReleaseHandle(Key k)
 {
     switch (k)
     {
         case Key.Square:
             _holdingSquare = false;
             break;
         default:
             break;
     }
 }
Esempio n. 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;
     }
 }
Esempio n. 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;
     }
 }
Esempio n. 5
0
 public override void KeyReleaseHandle(Key k)
 {
 }
Esempio n. 6
0
 public override void KeyPressHandle(Key k)
 {
 }
Esempio n. 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);
            }
        }