#include <MainFrame.hh>
Definition at line 58 of file MainFrame.hh.
Public Member Functions | |
MainFrame () | |
Constructor for the MainFrame. | |
void | CreateControls () |
Sets up the controls for this Frame. | |
Private Member Functions | |
void | setFeluccaOptions (int trammel) |
Changes the options for the Felucca moon control depending upon the phase of Trammel. | |
void | loadStats (SaveSlot &slot, int character) |
Loads the stats of a particular character into the character tab. | |
void | loadGame (int game) |
Loads the game values into the frame controls. | |
void | load (wxString &filename) |
Loads an SRAM file. | |
void | fileOpen (wxCommandEvent &event) |
Callback when open is selected from the file menu. | |
bool | isValidParty () const |
Checks if the current party formation is valid. | |
bool | hasValidEquipment (int character) const |
Checks if a character has valid equipment. | |
bool | save (wxString &filename) |
Saves the SRAM to disk. | |
void | fileSave (wxCommandEvent &event) |
Callback when save is selected from the file menu. | |
void | fileSaveAs (wxCommandEvent &event) |
Callback when save as is selected from the file menu. | |
bool | isOpen () |
Checks if an SRAM file is currently open. | |
void | setOpen (bool open) |
Sets whether an SRAM file is open or not. | |
bool | close () |
Closes the current SRAM file. | |
void | fileClose (wxCommandEvent &event) |
Callback when close is selected from the file menu. | |
void | fileExit (wxCommandEvent &event) |
Callback when exit is selected from the file menu. | |
void | windowClosing (wxCloseEvent &event) |
Callback when the window is closing. | |
void | gameChange (wxCommandEvent &event) |
Callback when one of the game menu items are selected. | |
void | helpAbout (wxCommandEvent &event) |
Callback when about is selected from the help menu. | |
void | herosNameChange (wxCommandEvent &event) |
Callback when the hero's name is changed. | |
void | memberClassChange (wxCommandEvent &event) |
Callback when one of the member's classes is changed. | |
void | virtueChange (wxScrollEvent &event) |
Callback when one of the virtue values is changed. | |
void | magicChange (wxCommandEvent &event) |
Callback when one of the magics is changed. | |
void | phaseChange (wxCommandEvent &event) |
Callback when one of the moon phases is changed. | |
void | goldChange (wxCommandEvent &event) |
Callback when the gold amount is changed. | |
void | herbChange (wxScrollEvent &event) |
Callback when one of the herbs is changed. | |
void | runeChange (wxCommandEvent &event) |
Callback when one of the runes is changed. | |
void | stoneChange (wxCommandEvent &event) |
Callback when one of the stones is changed. | |
void | toolQuantityChange (wxScrollEvent &event) |
Callback when one of the quantity tools is changed. | |
void | toolHaveChange (wxCommandEvent &event) |
Callback when one of the have/have not tools is changed. | |
void | characterChange (wxCommandEvent &event) |
Callback when one of the characters is selected. | |
void | statChange (wxCommandEvent &event) |
Callback when one of the character stats is changed. | |
void | setEquipment (int slot) |
Sets the equipment value for a particular slot. | |
void | equipmentChange (wxCommandEvent &event) |
Callback when a characters equipment is changed. | |
void | equippedChange (wxCommandEvent &event) |
Callback when a characters equipped equipment is changed. | |
Private Attributes | |
SaveSlot * | saveslot [3] |
int | currentSlot |
bool | open |
char * | sram |
wxString | sramFile |
wxNotebook * | notebook |
wxMenuItem * | games [3] |
wxMenuItem * | fileSaveItem |
wxMenuItem * | fileSaveAsItem |
wxMenuItem * | fileCloseItem |
wxTextCtrl * | herosNameText |
wxChoice * | memberClass [4] |
wxSlider * | honestySlider |
wxSlider * | compassionSlider |
wxSlider * | valorSlider |
wxSlider * | justiceSlider |
wxSlider * | sacrificeSlider |
wxSlider * | honorSlider |
wxSlider * | spiritualitySlider |
wxSlider * | humilitySlider |
wxCheckBox * | lightSpellCheck |
wxCheckBox * | missileSpellCheck |
wxCheckBox * | awakenSpellCheck |
wxCheckBox * | cureSpellCheck |
wxCheckBox * | windSpellCheck |
wxCheckBox * | healSpellCheck |
wxCheckBox * | fireSpellCheck |
wxCheckBox * | exitSpellCheck |
wxCheckBox * | dispelSpellCheck |
wxCheckBox * | viewSpellCheck |
wxCheckBox * | protectSpellCheck |
wxCheckBox * | iceSpellCheck |
wxCheckBox * | blinkSpellCheck |
wxCheckBox * | energySpellCheck |
wxCheckBox * | quickSpellCheck |
wxCheckBox * | sleepSpellCheck |
wxCheckBox * | reflectSpellCheck |
wxCheckBox * | negateSpellCheck |
wxCheckBox * | destroySpellCheck |
wxCheckBox * | jinxSpellCheck |
wxCheckBox * | squishSpellCheck |
wxCheckBox * | gateSpellCheck |
wxCheckBox * | tremorSpellCheck |
wxCheckBox * | lifeSpellCheck |
wxCheckBox * | defeatSpellCheck |
wxChoice * | trammelChoice |
wxChoice * | feluccaChoice |
wxTextCtrl * | goldText |
wxSlider * | ashSlider |
wxSlider * | ginsengSlider |
wxSlider * | garlicSlider |
wxSlider * | silkwebSlider |
wxSlider * | mossSlider |
wxSlider * | pearlSlider |
wxSlider * | fungusSlider |
wxSlider * | manrootSlider |
wxCheckBox * | honestyRuneCheck |
wxCheckBox * | compassionRuneCheck |
wxCheckBox * | valorRuneCheck |
wxCheckBox * | justiceRuneCheck |
wxCheckBox * | sacrificeRuneCheck |
wxCheckBox * | honorRuneCheck |
wxCheckBox * | spiritualityRuneCheck |
wxCheckBox * | humilityRuneCheck |
wxCheckBox * | blueStoneCheck |
wxCheckBox * | yellowStoneCheck |
wxCheckBox * | redStoneCheck |
wxCheckBox * | greenStoneCheck |
wxCheckBox * | orangeStoneCheck |
wxCheckBox * | purpleStoneCheck |
wxCheckBox * | whiteStoneCheck |
wxCheckBox * | blackStoneCheck |
wxSlider * | torchSlider |
wxSlider * | gemSlider |
wxSlider * | oilSlider |
wxCheckBox * | keyCheck |
wxCheckBox * | sextantCheck |
wxCheckBox * | scaleCheck |
wxCheckBox * | fluteCheck |
wxCheckBox * | candleCheck |
wxCheckBox * | bookCheck |
wxCheckBox * | bellCheck |
wxCheckBox * | hornCheck |
wxCheckBox * | skullCheck |
wxCheckBox * | truthKeyCheck |
wxCheckBox * | courageKeyCheck |
wxCheckBox * | loveKeyCheck |
wxCheckBox * | wheelCheck |
wxChoice * | characterChoice |
wxTextCtrl * | levelText |
wxTextCtrl * | experienceText |
wxTextCtrl * | currentHPText |
wxTextCtrl * | currentMPText |
wxTextCtrl * | maxHPText |
wxTextCtrl * | maxMPText |
wxTextCtrl * | strengthText |
wxTextCtrl * | intelligenceText |
wxTextCtrl * | dexterityText |
wxChoice * | itemChoice [6] |
wxCheckBox * | itemEquippedCheck [6] |
Static Private Attributes | |
const wxString | CITY_NAMES [] |
Array of the names of the eight cities of virtue. | |
const wxString | CHARACTER_NAMES [] |
Array of the character class names. | |
const char * | ICON [] |
XPM icon used for the Frame icon. | |
Friends | |
class | FileDropTarget |
|
Constructor for the MainFrame.
Definition at line 211 of file MainFrame.cc. |
|
Callback when one of the characters is selected.
Definition at line 1191 of file MainFrame.cc. |
|
Closes the current SRAM file.
Definition at line 825 of file MainFrame.cc. |
|
Sets up the controls for this Frame.
Definition at line 221 of file MainFrame.cc. |
|
Callback when a characters equipment is changed.
Definition at line 1242 of file MainFrame.cc. |
|
Callback when a characters equipped equipment is changed.
Definition at line 1259 of file MainFrame.cc. |
|
Callback when close is selected from the file menu.
Definition at line 859 of file MainFrame.cc. |
|
Callback when exit is selected from the file menu.
Definition at line 863 of file MainFrame.cc. |
|
Callback when open is selected from the file menu.
Definition at line 651 of file MainFrame.cc. |
|
Callback when save is selected from the file menu.
Definition at line 791 of file MainFrame.cc. |
|
Callback when save as is selected from the file menu.
Definition at line 795 of file MainFrame.cc. |
|
Callback when one of the game menu items are selected.
Definition at line 886 of file MainFrame.cc. |
|
Callback when the gold amount is changed.
Definition at line 1048 of file MainFrame.cc. |
|
Checks if a character has valid equipment.
Definition at line 693 of file MainFrame.cc. |
|
Callback when about is selected from the help menu.
Definition at line 900 of file MainFrame.cc. |
|
Callback when one of the herbs is changed.
Definition at line 1056 of file MainFrame.cc. |
|
Callback when the hero's name is changed.
Definition at line 910 of file MainFrame.cc. |
|
Checks if an SRAM file is currently open.
Definition at line 159 of file MainFrame.hh. |
|
Checks if the current party formation is valid.
Definition at line 664 of file MainFrame.cc. |
|
Loads an SRAM file.
Definition at line 606 of file MainFrame.cc. |
|
Loads the game values into the frame controls.
Definition at line 500 of file MainFrame.cc. |
|
Loads the stats of a particular character into the character tab.
Definition at line 457 of file MainFrame.cc. |
|
Callback when one of the magics is changed.
Definition at line 967 of file MainFrame.cc. |
|
Callback when one of the member's classes is changed.
Definition at line 919 of file MainFrame.cc. |
|
Callback when one of the moon phases is changed.
Definition at line 1028 of file MainFrame.cc. |
|
Callback when one of the runes is changed.
Definition at line 1083 of file MainFrame.cc. |
|
Saves the SRAM to disk.
Definition at line 731 of file MainFrame.cc. |
|
Sets the equipment value for a particular slot.
Definition at line 1228 of file MainFrame.cc. |
|
Changes the options for the Felucca moon control depending upon the phase of Trammel.
Definition at line 408 of file MainFrame.cc. |
|
Sets whether an SRAM file is open or not.
Definition at line 808 of file MainFrame.cc. |
|
Callback when one of the character stats is changed.
Definition at line 1199 of file MainFrame.cc. |
|
Callback when one of the stones is changed.
Definition at line 1110 of file MainFrame.cc. |
|
Callback when one of the have/have not tools is changed.
Definition at line 1154 of file MainFrame.cc. |
|
Callback when one of the quantity tools is changed.
Definition at line 1137 of file MainFrame.cc. |
|
Callback when one of the virtue values is changed.
Definition at line 940 of file MainFrame.cc. |
|
Callback when the window is closing.
Definition at line 873 of file MainFrame.cc. |
|
Definition at line 71 of file MainFrame.hh. |
|
Definition at line 379 of file MainFrame.hh. |
|
Definition at line 350 of file MainFrame.hh. |
|
Definition at line 416 of file MainFrame.hh. |
|
Definition at line 404 of file MainFrame.hh. |
|
Definition at line 360 of file MainFrame.hh. |
|
Definition at line 397 of file MainFrame.hh. |
|
Definition at line 415 of file MainFrame.hh. |
|
Definition at line 414 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 45 of file MainFrame.cc. |
|
Definition at line 424 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 40 of file MainFrame.cc. |
|
Definition at line 389 of file MainFrame.hh. |
|
Definition at line 340 of file MainFrame.hh. |
|
Definition at line 420 of file MainFrame.hh. |
|
Definition at line 351 of file MainFrame.hh. |
|
Definition at line 428 of file MainFrame.hh. |
|
Definition at line 429 of file MainFrame.hh. |
|
Definition at line 323 of file MainFrame.hh. |
|
Definition at line 372 of file MainFrame.hh. |
|
Definition at line 366 of file MainFrame.hh. |
|
Definition at line 434 of file MainFrame.hh. |
|
Definition at line 356 of file MainFrame.hh. |
|
Definition at line 361 of file MainFrame.hh. |
|
Definition at line 355 of file MainFrame.hh. |
|
Definition at line 427 of file MainFrame.hh. |
|
Definition at line 375 of file MainFrame.hh. |
|
Definition at line 334 of file MainFrame.hh. |
|
Definition at line 333 of file MainFrame.hh. |
|
Definition at line 332 of file MainFrame.hh. |
|
Definition at line 354 of file MainFrame.hh. |
|
Definition at line 413 of file MainFrame.hh. |
|
Definition at line 385 of file MainFrame.hh. |
|
Definition at line 331 of file MainFrame.hh. |
|
Definition at line 381 of file MainFrame.hh. |
|
Definition at line 369 of file MainFrame.hh. |
|
Definition at line 407 of file MainFrame.hh. |
|
Definition at line 380 of file MainFrame.hh. |
|
Definition at line 377 of file MainFrame.hh. |
|
Definition at line 400 of file MainFrame.hh. |
|
Definition at line 353 of file MainFrame.hh. |
|
Definition at line 336 of file MainFrame.hh. |
|
Definition at line 388 of file MainFrame.hh. |
|
Definition at line 339 of file MainFrame.hh. |
|
Definition at line 393 of file MainFrame.hh. |
|
Definition at line 344 of file MainFrame.hh. |
|
Definition at line 417 of file MainFrame.hh. |
|
Definition at line 395 of file MainFrame.hh. |
|
Definition at line 346 of file MainFrame.hh. |
|
Definition at line 359 of file MainFrame.hh. |
|
Initial value: { "16 16 5 1", " c None", "! c #BCBCBC", "# c #747474", "$ c #FCFCFC", "% c black", "!!!!!#$$$$$$!!!!", "!!!!#!$$$$$$$!!!", "!!!#!!######$$!!", "!!!%!##%%%%##$!!", "!!!%###!!!%##$!!", "!!!%%##!!!%##%!!", "!!!!%%##!%##%!!!", "#%$$$$%####$$$$$", "!%!$$$$$##$$$$$$", "!%#############$", "!%%%%%%%##%%%%%$", "!!!!!!%%##!!!!!!", "!!%%%%%%##!!!!!!", "%%%%%%%%##!!!!!!", "!%%%%%%%%%!!!!!!", "!!!!!!!!!!!!!!!!" }
Definition at line 50 of file MainFrame.cc. |
|
Definition at line 433 of file MainFrame.hh. |
|
Definition at line 436 of file MainFrame.hh. |
|
Definition at line 437 of file MainFrame.hh. |
|
Definition at line 367 of file MainFrame.hh. |
|
Definition at line 391 of file MainFrame.hh. |
|
Definition at line 342 of file MainFrame.hh. |
|
Definition at line 410 of file MainFrame.hh. |
|
Definition at line 426 of file MainFrame.hh. |
|
Definition at line 371 of file MainFrame.hh. |
|
Definition at line 348 of file MainFrame.hh. |
|
Definition at line 421 of file MainFrame.hh. |
|
Definition at line 386 of file MainFrame.hh. |
|
Definition at line 430 of file MainFrame.hh. |
|
Definition at line 431 of file MainFrame.hh. |
|
Definition at line 337 of file MainFrame.hh. |
|
Definition at line 349 of file MainFrame.hh. |
|
Definition at line 383 of file MainFrame.hh. |
|
Definition at line 365 of file MainFrame.hh. |
|
Definition at line 329 of file MainFrame.hh. |
|
Definition at line 408 of file MainFrame.hh. |
|
Definition at line 324 of file MainFrame.hh. |
|
Definition at line 401 of file MainFrame.hh. |
|
Definition at line 384 of file MainFrame.hh. |
|
Definition at line 358 of file MainFrame.hh. |
|
Definition at line 402 of file MainFrame.hh. |
|
Definition at line 362 of file MainFrame.hh. |
|
Definition at line 399 of file MainFrame.hh. |
|
Definition at line 364 of file MainFrame.hh. |
|
Definition at line 392 of file MainFrame.hh. |
|
Definition at line 343 of file MainFrame.hh. |
|
Definition at line 322 of file MainFrame.hh. |
|
Definition at line 412 of file MainFrame.hh. |
|
Definition at line 411 of file MainFrame.hh. |
|
Definition at line 382 of file MainFrame.hh. |
|
Definition at line 418 of file MainFrame.hh. |
|
Definition at line 363 of file MainFrame.hh. |
|
Definition at line 394 of file MainFrame.hh. |
|
Definition at line 345 of file MainFrame.hh. |
|
Definition at line 368 of file MainFrame.hh. |
|
Definition at line 326 of file MainFrame.hh. |
|
Definition at line 327 of file MainFrame.hh. |
|
Definition at line 432 of file MainFrame.hh. |
|
Definition at line 406 of file MainFrame.hh. |
|
Definition at line 374 of file MainFrame.hh. |
|
Definition at line 370 of file MainFrame.hh. |
|
Definition at line 419 of file MainFrame.hh. |
|
Definition at line 390 of file MainFrame.hh. |
|
Definition at line 341 of file MainFrame.hh. |
|
Definition at line 357 of file MainFrame.hh. |
|
Definition at line 422 of file MainFrame.hh. |
|
Definition at line 403 of file MainFrame.hh. |
|
Definition at line 352 of file MainFrame.hh. |
|
Definition at line 398 of file MainFrame.hh. |