internal override void ReceiveInputCommand(BoardInputCommand inputCommand)
 {
     if (state == State.IDLE)
     {
         ExecuteCommand(inputCommand);
     }
     else
     {
         inputs.Enqueue(inputCommand);
     }
 }
 private void ExecuteCommand(BoardInputCommand inputCommand)
 {
     inputCommand.SetModel(this);
     inputCommand.Execute();
     if (numberResetCommands == 0)
     {
         //Reset to original value
         TURN_DURATION = 0.2f;
     }
     if (numberResetCommands >= 0)
     {
         numberResetCommands--;
     }
 }
Exemple #3
0
 internal virtual void ReceiveInputCommand(BoardInputCommand inputCommand)
 {
 }