Пример #1
0
 public void Update()
 {
     currentCommand = new NullCommand();
     keyboardState  = Keyboard.GetState();
     foreach (Keys key in commandLibrabry)
     {
         currentCommand = commandLibrabry[key];
         currentCommand.Execute();
     }
     teno.Idle();
 }
Пример #2
0
 public void Update()
 {
     currentCommand = new NullCommand();
     keyboardState  = Keyboard.GetState();
     foreach (Keys key in keyboardState.GetPressedKeys())
     {
         if (commandLibrabry.ContainsKey(key))
         {
             currentCommand = commandLibrabry[key];
             currentCommand.Execute();
         }
     }
     teno.Idle();
 }
Пример #3
0
 public void Execute()
 {
     teno.Idle();
 }