The top-level frame window. Houses the main screen window when a game is not being played, and a SettlersView when a game is being played. Handles all of the menu event messages.
wxFrame (see http://www.wxwidgets.org/manuals/2.4.2/wx163.htm)
wxMainFrame.h
The top-level frame window. | |
The wxMainFrame constructor. | |
The wxMainFrame destructor. | |
Does nothing right now. | |
Launches a hotseat game. | |
Does nothing right now. | |
Opens a saved game. | |
Saves the open game. | |
Closes down an open game. | |
Runs the wxSettingsDialog window. | |
Exits the application. | |
The wxWidgets event table declaration. | |
Loads the RuleSets required by the current map. | |
Callback for when games are loaded from disk or network. | |
Creates the child SettlersView window. | |
Handles main window resizes. |
The wxMainFrame constructor. | |
The wxMainFrame destructor. | |
Does nothing right now. | |
Launches a hotseat game. | |
Does nothing right now. | |
Opens a saved game. | |
Saves the open game. | |
Closes down an open game. | |
Runs the wxSettingsDialog window. | |
Exits the application. | |
The wxWidgets event table declaration. |
|
The wxMainFrame constructor. Initializes the base class. Sets the window size based on the values in the ConfigDatabase.
| parent | The parent window. May be NULL. |
| title | The window caption. Displayed in the frame’s title bar. |
| pos | The window position. |
| size | The window size. |
| ~wxMainFrame() |
The wxMainFrame destructor. Saves the window size to the ConfigDatabase.
|
Launches a hotseat game. Runs the wxGameSetupDialog window. If successful, loads all the needed rulesets for the selected map and variants. Then calls CreateSettlersView to create the child window that actually displays the game. Calls the RuleEngine to randomize the players and then starts the game by executing the Rule0 Rule.
| event | The menu command event. |
|
Closes down an open game. Destroys the SettlersView child window. Clears the loaded map. Restarts the GameEngine, and calls ShowAppMenu on the wxCities3DApp.
| event | The menu command event. |
|
Runs the wxSettingsDialog window.
| event | The menu command event. |
Loads the RuleSets required by the current map. | |
Callback for when games are loaded from disk or network. | |
Creates the child SettlersView window. | |
Handles main window resizes. |
|
Loads the RuleSets required by the current map. Calls CreateSettlersView to initialize the display window. Calls RuleRandomizePlayers and Rule0 to start the game.
| ck | Flag indicating whether Cities & Knights rules are being used. |
|
Callback for when games are loaded from disk or network. Loads all of the <Rulesets> in the given array and calls CreateSettlersView to create the child display window.
| array | The container of module/RuleSet names to load for the game being opened. |
| void CreateSettlersView() |
Creates the child SettlersView window.
|
| ~wxMainFrame() |
|
|
|
|
|
|
|
|
|
|
| void CreateSettlersView() |
|