Beispiel #1
0
        /**
         * Called when gameButton3 was clicked, it analyses the game situation (using GameState attribute)
         * and then handles the click button accordingly.
         */
        private void Button3_action()
        {
            GameStage state = GameState;

            GameState = GameStage.NO_ACTION;

            switch (state)
            {
            case GameStage.WHAT_NEXT:
                NextPlayer();
                break;

            case GameStage.MORTGAGE_MENU:
                window.ShowPlayerInfo(currentPlayer);
                window.ShowNextOptions();
                GameState = GameStage.WHAT_NEXT;
                break;

            default:
                ShowWhatNext(currentPlayer);
                break;
            }
        }