Esempio n. 1
0
        public override void HandleInput(InputState input)
        {
            base.HandleInput(input);

            if (input.IsNewKeyPress(Keys.X) ||
                input.IsNewKeyPress(Keys.Z) ||
                input.IsNewKeyPress(Keys.Left)
                )
            {
                ViewManager.Characters.ForEach(character => character.StatusVisible = false);
                ViewManager.Enemies.ForEach(enemy => enemy.Disappear());
                ControllerManager.Controller = new LeaveController(ControllerManager);
            }
        }
Esempio n. 2
0
 public override void HandleInput(InputState input)
 {
     if (input.IsNewKeyPress(Keys.Left))
     {
         walk();
     }
     base.HandleInput(input);
 }
Esempio n. 3
0
        public override void HandleInput(InputState input)
        {
            base.HandleInput(input);

            if (input.IsNewKeyPress(Keys.Up))
            {
                selectView.SelectPrevious();
            }
            if (input.IsNewKeyPress(Keys.Down))
            {
                selectView.SelectNext();
            }

            if (input.IsNewKeyPress(Keys.X))
            {
                selectTarget();
            }
        }
Esempio n. 4
0
        public override void HandleInput(InputState input)
        {
            base.HandleInput(input);

            if (input.IsNewKeyPress(Keys.Up))
            {
                SelectUp();
            }
            if (input.IsNewKeyPress(Keys.Down))
            {
                SelectDown();
            }
            if (input.IsNewKeyPress(Keys.Left))
            {
                SelectLeft();
            }
            if (input.IsNewKeyPress(Keys.Right))
            {
                SelectRight();
            }

            if (input.IsNewKeyPress(Keys.X))
            {
                setJob();
            }
            if (input.IsNewKeyPress(Keys.Z))
            {
                exit();
            }
        }