Beispiel #1
0
 private void InvokeGameEngineStateEvent(GameEngineEventArgs args)
 {
     if (this.GameEngineStateEvent != null)
     {
         this.GameEngineStateEvent(this, args);
     }
 }
Beispiel #2
0
 private void ChangeGameEngineStateHandler(object sender, GameEngineEventArgs args)
 {
     switch (args.GameState)
     {
         case GameEngineState.AITurn:
         case GameEngineState.BeginShuffling:
             this.DisableButtons();
             break;
         case GameEngineState.HumanTurn:
         case GameEngineState.EndShuffling:
             this.EnableButtons();
             break;
     }
 }