Exemple #1
0
 public void Update()
 {
     currentCommand = new NullCommand();
     keyboardState  = Keyboard.GetState();
     foreach (Keys key in commandLibrabry)
     {
         currentCommand = commandLibrabry[key];
         currentCommand.Execute();
     }
     teno.Idle();
 }
 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();
 }
Exemple #3
0
 public void Execute()
 {
     teno.Idle();
 }