Dialog that sets up a hotseat game. Allows the user to select players and assign them to colors, select a map, and apply any available variants to the rules.
GameSetupDialog.h
Dialog that sets up a hotseat game. | |
The wxGameSetupDialog constructor. | |
The wxGameSetupDialog destructor. | |
Returns whether the user has turned on Cities & Knights rules. | |
The wxWidgets event table declaration. | |
Updates the dialog. | |
Runs the wxAddPlayerDialog window. | |
Runs the wxAddPlayerDialog window with the PlayerDatabase index of the selected player. | |
Runs the wxSelectMapDialog window. | |
Does nothing right now. | |
Handles a player selection in the wxPlayerDropListCtrl. | |
Whether the user has turned on Cities & Knights rules. |
|
The wxGameSetupDialog constructor. Disables the OK button, and adds OnUpdateDialog as a receiver of the eventPreGame Event via the Controller.
| parent | The parent window. |
| ~wxGameSetupDialog() |
The wxGameSetupDialog destructor. Removes the OnUpdateDialog as a receiver of the eventPreGame Event.
Updates the dialog. | |
Runs the wxAddPlayerDialog window. | |
Runs the wxAddPlayerDialog window with the PlayerDatabase index of the selected player. | |
Runs the wxSelectMapDialog window. | |
Does nothing right now. | |
Handles a player selection in the wxPlayerDropListCtrl. | |
Whether the user has turned on Cities & Knights rules. |
|
Runs the wxAddPlayerDialog window. If the user adds a new player, adds that player to the wxPlayerDropListCtrl.
| event | The button click event. |
|
Runs the wxAddPlayerDialog window with the PlayerDatabase index of the selected player. If the user edits the player, changes the name of that player in the wxPlayerDropListCtrl.
| event | The button click event. |
|
Runs the wxSelectMapDialog window. If a map is selected, sets the mCK flag based on the setting in the wxSelectMapDialog and calls the RuleEngine to load the selected map.
| event | The button click event. |
|
Handles a player selection in the wxPlayerDropListCtrl. Enables the Edit button if a player is selected, disables it if not.
| event | The list selection event. |
|
| ~wxGameSetupDialog() |
| bool GetCK() const |
|
|
|
|
|
|
| bool mCK |