Displays information about the currently selected map in a text control. This includes all of the relevant map information, such as map name, points, min/max players, map creator, etc. The wxMapTextCtrl also includes information about any variants that are in effect, and shows whether the map is Standard, Seafarers, Cities & Knights, or any combination thereof.
MapTextCtrl.h
Displays information about the currently selected map in a text control. | |
The wxMapTextCtrl constructor. | |
The wxMapTextCtrl destructor. | |
Sets the C&K flag. | |
Updates the text in the control. | |
The C&K flag. |
The wxMapTextCtrl constructor. Adds OnUpdateText as a receiver of the eventPreGame Event. Immediately calls the MapDatabase to retrieve the current map selection text.
| parent | The parent window. |
| id | The message handling ID. Should be a unique (to the parent window) ID, if the parent window wants to receive messages from the control. |
| pos | The text control position in window coordinates. |
| size | The text control size. |
| ~wxMapTextCtrl() |
The wxMapTextCtrl destructor. Removes OnUpdateText as a receiver of the eventPreGame Event.
|
Sets the C&K flag. If the user is playing with Cities & Knights rules, this information must be passed into the MapDatabase when it is creating the information text for the currently selected map.
| val | The C&K flag. True if Cities & Knights is being played, false if not. |
|
Updates the text in the control. Calls the MapDatabase to retrieve the most up-to-date text. Triggered by the eventPreGame Event.
| game | The current Game. |
| ~wxMapTextCtrl() |
|
|
| bool mCK |