#include <MainFrame.hh>
Definition at line 44 of file MainFrame.hh.
Public Member Functions | |
MainFrame () | |
Constructor for the MainFrame. | |
Private Member Functions | |
void | CreateControls () |
Sets up the controls for this Frame. | |
void | setEquipment (int slot) |
Sets the equipment value for a particular slot. | |
void | setFeluccaOptions (enum City trammel) |
Changes the options for the Felucca moon control depending upon the phase of Trammel. | |
bool | isOpen () |
Checks if an SRAM file is currently open. | |
bool | hasValidEquipment (enum Character character) const |
Checks if a character has valid equipment. | |
bool | isValidParty () const |
Checks if the current party formation is valid. | |
bool | close () |
Closes the current SRAM file. | |
void | load (const wxString &filename) |
Loads an SRAM file. | |
void | loadGame (int game) |
Loads the game values into the frame controls. | |
void | loadStats (enum Character character) |
Loads the stats of a particular character into the character tab. | |
bool | save (const wxString &filename) |
Saves the SRAM to disk. | |
void | onBalloonChange (wxCommandEvent &event) |
Callback when the Balloon's location is changed. | |
void | onCharacterChange (wxCommandEvent &event) |
Callback when one of the characters is selected. | |
void | onEquipmentChange (wxCommandEvent &event) |
Callback when a characters equipment is changed. | |
void | onEquippedChange (wxCommandEvent &event) |
Callback when a character's equipped item is changed. | |
void | onEquippedUpdate (wxUpdateUIEvent &event) |
Callback to update the equipped checkboxes. | |
void | onFileClose (wxCommandEvent &event) |
Callback when close is selected from the file menu. | |
void | onFileExit (wxCommandEvent &event) |
Callback when exit is selected from the file menu. | |
void | onFileOpen (wxCommandEvent &event) |
Callback when open is selected from the file menu. | |
void | onFileSave (wxCommandEvent &event) |
Callback when save is selected from the file menu. | |
void | onFileSaveAs (wxCommandEvent &event) |
Callback when save as is selected from the file menu. | |
void | onGameChange (wxCommandEvent &event) |
Callback when one of the game menu items are selected. | |
void | onGameMenuUpdate (wxUpdateUIEvent &event) |
Callback when the game menu needs updated. | |
void | onGoldChange (wxCommandEvent &event) |
Callback when the gold amount is changed. | |
void | onHelpAbout (wxCommandEvent &event) |
Callback when about is selected from the help menu. | |
void | onHerbChange (wxScrollEvent &event) |
Callback when one of the herbs is changed. | |
void | onHerosNameChange (wxCommandEvent &event) |
Callback when the hero's name is changed. | |
void | onJoinedChange (wxCommandEvent &event) |
Callback when one of the joined members is changed. | |
void | onLocationBalloon (wxCommandEvent &event) |
Callback when balloon is selected from the location menu. | |
void | onLocationPlaceChange (wxCommandEvent &event) |
Callback when the location place is changed. | |
void | onLocationShip (wxCommandEvent &event) |
Callback when a ship is selected from the location menu. | |
void | onMagicChange (wxCommandEvent &event) |
Callback when one of the magics is changed. | |
void | onMemberClassChange (wxCommandEvent &event) |
Callback when one of the member's classes is changed. | |
void | onMemberUpdate (wxUpdateUIEvent &event) |
Callback when the party member choices need updated. | |
void | onPhaseChange (wxCommandEvent &event) |
Callback when one of the moon phases is changed. | |
void | onRuneChange (wxCommandEvent &event) |
Callback when one of the runes is changed. | |
void | onSaveCloseUpdate (wxUpdateUIEvent &event) |
Callback when the save or close file menu items need updating. | |
void | onSaveUpdate (wxUpdateUIEvent &event) |
Callback when the save as file menu item needs updating. | |
void | onShipChange (wxCommandEvent &event) |
Callback when one the pirate ships is changed. | |
void | onShipLocationChange (wxCommandEvent &event) |
Callback when the location of a pirate ship is changed. | |
void | onShipUpdate (wxUpdateUIEvent &event) |
Callback when a ship location item needs updating. | |
void | onStartLocationChange (wxCommandEvent &event) |
Callback when the start location is changed. | |
void | onStatChange (wxCommandEvent &event) |
Callback when one of the character stats is changed. | |
void | onStoneChange (wxCommandEvent &event) |
Callback when one of the stones is changed. | |
void | onToolHaveChange (wxCommandEvent &event) |
Callback when one of the have/have not tools is changed. | |
void | onToolQuantityChange (wxScrollEvent &event) |
Callback when one of the quantity tools is changed. | |
void | onVirtueChange (wxScrollEvent &event) |
Callback when one of the virtue values is changed. | |
void | onWhirlpoolChange (wxCommandEvent &event) |
Callback when the whirlpool's location is changed. | |
void | onWindowClosing (wxCloseEvent &event) |
Callback when the window is closing. | |
Private Attributes | |
wxCheckBox * | itemEquippedCheck [6] |
wxChoice * | itemChoice [6] |
wxChoice * | memberChoice [4] |
wxString | sramFile |
SaveSlot * | saveslot |
SRAMFile * | sram |
enum Location | location |
int | gameMenu |
int | locationMenu |
bool | ignoreEvents |
bool | open |
Static Private Attributes | |
static const wxString | CHARACTER_NAMES [] |
Array of the character class names. | |
static const wxString | CITY_NAMES [] |
Array of the names of the eight cities of virtue. | |
static const std::pair< int, int > | BALLOON_LOCATIONS [] |
Array of locations for the balloon. | |
static const std::pair< int, int > | PIRATESHIP_LOCATIONS [] |
Array of locations for the pirate ships. | |
static const int | INN_INDEX [] |
Array of indicies mapping start locations to choice selection. | |
Friends | |
class | FileDropTarget |
|
Constructor for the MainFrame.
Definition at line 90 of file MainFrame.cc. |
|
Closes the current SRAM file.
Definition at line 329 of file MainFrame.cc. |
|
Sets up the controls for this Frame.
Definition at line 102 of file MainFrame.cc. |
|
Checks if a character has valid equipment.
Definition at line 264 of file MainFrame.cc. |
|
Checks if an SRAM file is currently open.
Definition at line 430 of file MainFrame.hh. |
|
Checks if the current party formation is valid.
Definition at line 300 of file MainFrame.cc. |
|
Loads an SRAM file.
Definition at line 362 of file MainFrame.cc. |
|
Loads the game values into the frame controls.
Definition at line 404 of file MainFrame.cc. |
|
Loads the stats of a particular character into the character tab.
Definition at line 675 of file MainFrame.cc. |
|
Callback when the Balloon's location is changed.
Definition at line 763 of file MainFrame.cc. |
|
Callback when one of the characters is selected.
Definition at line 431 of file MainFrame.hh. |
|
Callback when a characters equipment is changed.
Definition at line 784 of file MainFrame.cc. |
|
Callback when a character's equipped item is changed.
Definition at line 797 of file MainFrame.cc. |
|
Callback to update the equipped checkboxes.
Definition at line 810 of file MainFrame.cc. |
|
Callback when close is selected from the file menu.
Definition at line 433 of file MainFrame.hh. |
|
Callback when exit is selected from the file menu.
Definition at line 853 of file MainFrame.cc. |
|
Callback when open is selected from the file menu.
Definition at line 863 of file MainFrame.cc. |
|
Callback when save is selected from the file menu.
Definition at line 434 of file MainFrame.hh. |
|
Callback when save as is selected from the file menu.
Definition at line 876 of file MainFrame.cc. |
|
Callback when one of the game menu items are selected.
Definition at line 889 of file MainFrame.cc. |
|
Callback when the game menu needs updated.
Definition at line 899 of file MainFrame.cc. |
|
Callback when the gold amount is changed.
Definition at line 916 of file MainFrame.cc. |
|
Callback when about is selected from the help menu.
Definition at line 926 of file MainFrame.cc. |
|
Callback when one of the herbs is changed.
Definition at line 936 of file MainFrame.cc. |
|
Callback when the hero's name is changed.
Definition at line 958 of file MainFrame.cc. |
|
Callback when one of the joined members is changed.
Definition at line 968 of file MainFrame.cc. |
|
Callback when balloon is selected from the location menu.
Definition at line 991 of file MainFrame.cc. |
|
Callback when the location place is changed.
Definition at line 1000 of file MainFrame.cc. |
|
Callback when a ship is selected from the location menu.
Definition at line 1037 of file MainFrame.cc. |
|
Callback when one of the magics is changed.
Definition at line 1084 of file MainFrame.cc. |
|
Callback when one of the member's classes is changed.
Definition at line 1140 of file MainFrame.cc. |
|
Callback when the party member choices need updated.
Definition at line 1178 of file MainFrame.cc. |
|
Callback when one of the moon phases is changed.
Definition at line 1189 of file MainFrame.cc. |
|
Callback when one of the runes is changed.
Definition at line 1208 of file MainFrame.cc. |
|
Callback when the save or close file menu items need updating.
Definition at line 435 of file MainFrame.hh. |
|
Callback when the save as file menu item needs updating.
Definition at line 1230 of file MainFrame.cc. |
|
Callback when one the pirate ships is changed.
Definition at line 1238 of file MainFrame.cc. |
|
Callback when the location of a pirate ship is changed.
Definition at line 1257 of file MainFrame.cc. |
|
Callback when a ship location item needs updating.
Definition at line 1307 of file MainFrame.cc. |
|
Callback when the start location is changed.
Definition at line 1334 of file MainFrame.cc. |
|
Callback when one of the character stats is changed.
Definition at line 1345 of file MainFrame.cc. |
|
Callback when one of the stones is changed.
Definition at line 1376 of file MainFrame.cc. |
|
Callback when one of the have/have not tools is changed.
Definition at line 1398 of file MainFrame.cc. |
|
Callback when one of the quantity tools is changed.
Definition at line 1430 of file MainFrame.cc. |
|
Callback when one of the virtue values is changed.
Definition at line 1442 of file MainFrame.cc. |
|
Callback when the whirlpool's location is changed.
Definition at line 1464 of file MainFrame.cc. |
|
Callback when the window is closing.
Definition at line 1486 of file MainFrame.cc. |
|
Saves the SRAM to disk.
Definition at line 713 of file MainFrame.cc. |
|
Sets the equipment value for a particular slot.
Definition at line 201 of file MainFrame.cc. |
|
Changes the options for the Felucca moon control depending upon the phase of Trammel.
Definition at line 213 of file MainFrame.cc. |
|
Definition at line 48 of file MainFrame.hh. |
|
Initial value: { std::pair<int, int>(131, 224), std::pair<int, int>(108, 84), std::pair<int, int>(218, 38), std::pair<int, int>(45, 57), std::pair<int, int>(22, 159), std::pair<int, int>(186, 104), std::pair<int, int>(130, 22), std::pair<int, int>(171, 188), std::pair<int, int>(106, 216), std::pair<int, int>(50, 26), std::pair<int, int>(244, 147), std::pair<int, int>(148, 96), std::pair<int, int>(59, 199), std::pair<int, int>(159, 136), std::pair<int, int>(92, 137) }
Definition at line 69 of file MainFrame.hh. |
|
Initial value: { wxT("Mage"), wxT("Bard"), wxT("Fighter"), wxT("Druid"), wxT("Tinker"), wxT("Paladin"), wxT("Ranger"), wxT("Shepherd") }
Definition at line 63 of file MainFrame.hh. |
|
Initial value: { wxT("Moonglow"), wxT("Britain"), wxT("Jhelom"), wxT("Yew"), wxT("Minoc"), wxT("Trinsic"), wxT("Skara Brae"), wxT("Magincia") }
Definition at line 66 of file MainFrame.hh. |
|
Definition at line 58 of file MainFrame.hh. |
|
Definition at line 59 of file MainFrame.hh. |
|
Initial value: { 1, 1, 1, 1, 1, 0, 1, 2, 3, 4, 5, 6, 1, 1, 7 }
Definition at line 75 of file MainFrame.hh. |
|
Definition at line 52 of file MainFrame.hh. |
|
Definition at line 51 of file MainFrame.hh. |
|
Definition at line 57 of file MainFrame.hh. |
|
Definition at line 58 of file MainFrame.hh. |
|
Definition at line 53 of file MainFrame.hh. |
|
Definition at line 60 of file MainFrame.hh. |
|
Initial value: { std::pair<int, int>(134, 230), std::pair<int, int>(109, 84), std::pair<int, int>(222, 40), std::pair<int, int>(18, 57), std::pair<int, int>(19, 168), std::pair<int, int>(184, 108), std::pair<int, int>(127, 19), std::pair<int, int>(169, 190), std::pair<int, int>(108, 216), std::pair<int, int>(47, 26), std::pair<int, int>(242, 148), std::pair<int, int>(145, 96), std::pair<int, int>(59, 196), std::pair<int, int>(158, 134), std::pair<int, int>(92, 135) }
Definition at line 72 of file MainFrame.hh. |
|
Definition at line 55 of file MainFrame.hh. |
|
Definition at line 56 of file MainFrame.hh. |
|
Definition at line 54 of file MainFrame.hh. |