#include <SaveSlot.hh>
Definition at line 118 of file SaveSlot.hh.
Public Member Functions | |
SaveSlot (const char *nvram) | |
Constructor for a SaveSlot. | |
~SaveSlot () | |
Destructor for a SaveSlot. | |
bool | isValid () |
Checks if this SaveSlot is valid. | |
bool | isModified () |
Checks if this SaveSlot has been modified;. | |
unsigned char | checksum () |
Generates a checksum for the current game data. | |
wxInt32 | getGold () |
Gets the current amount of gold help by the party. | |
void | setGold (wxInt32 value) |
Sets the current amount of gold help by the party. | |
int | getItem (int item) |
Gets the current amount of a particular item. | |
void | setItem (int item, unsigned char value=1) |
Sets the current amount of a particular item. | |
wxString | getName (int member) |
Gets the name for a particular party member. | |
void | setName (int member, wxString &value) |
Sets the name for a particular party member. | |
int | getClass (int member) |
Gets the class of a particular party member. | |
void | setClass (int member, unsigned char value) |
Sets the class of a particular party member. | |
int | getCondition (int member) |
Gets the condition of a party member. | |
void | setCondition (int member, unsigned char value) |
Sets the condition of a party member. | |
wxInt32 | getExperience (int member) |
Gets the experience of a party member. | |
wxInt16 | getCurrentHP (int member) |
Gets the current HP of a party member. | |
void | setCurrentHP (int member, wxInt16 value) |
Sets the current HP of a party member. | |
wxInt16 | getMaxHP (int member) |
Gets the max HP of a party member. | |
void | setMaxHP (int member, wxInt16 value) |
Sets the max HP of a party member. | |
void | setExperience (int member, wxInt32 value) |
Sets the experience of a party member. | |
int | getStrength (int member) |
Gets the strength of a party member. | |
void | setStrength (int member, unsigned char value) |
Sets the strength of a party member. | |
int | getAgility (int member) |
Gets the agility of a party member. | |
void | setAgility (int member, unsigned char value) |
Sets the agility of a party member. | |
int | getIntelligence (int member) |
Gets the intelligence of a party member. | |
void | setIntelligence (int member, unsigned char value) |
Sets the intelligence of a party member. | |
int | getVitality (int member) |
Gets the vitality of a party member. | |
void | setVitality (int member, unsigned char value) |
Sets the vitality of a party member. | |
int | getLuck (int member) |
Gets the luck of a party member. | |
void | setLuck (int member, unsigned char value) |
Sets the luck of a party member. | |
int | getDamage (int member) |
Gets the damage of a party member. | |
void | setDamage (int member, unsigned char value) |
Sets the damage of a party member. | |
int | getHitPercent (int member) |
Gets the hit percent of a party member. | |
void | setHitPercent (int member, unsigned char value) |
Sets the hit percent of a party member. | |
int | getWeapon (int member, int slot) |
Gets the weapon of a party member at a given slot. | |
void | setWeapon (int member, int slot, unsigned char value) |
Sets the weapon of a party member at a given slot. | |
int | getArmor (int member, int slot) |
Gets the armor of a party member at a given slot. | |
void | setArmor (int member, int slot, unsigned char value) |
Sets the armor of a party member at a given slot. | |
int | getCurrentMagic (int member, int level) |
Gets the current magic of a party member at a given level. | |
void | setCurrentMagic (int member, int level, unsigned char value) |
Sets the current magic of a party member at a given level. | |
int | getMaxMagic (int member, int level) |
Gets the max magic of a party member at a given level. | |
void | setMaxMagic (int member, int level, unsigned char value) |
Sets the max magic of a party member at a given level. | |
int | getMagic (int member, int level, int slot) |
Gets the magic of a party member at a given level. | |
void | setMagic (int member, int level, int slot, unsigned char value) |
Sets the magic of a party member at a given level. | |
Private Member Functions | |
unsigned char | adc (unsigned char current, unsigned char value) |
Performs an add with carry operation. | |
void | setCarry (bool set=true) |
Sets or clears the carry flag used by adc. | |
void | setModified (bool modified=true) |
Sets whether this SaveSlot has been modified or not. | |
Static Private Member Functions | |
static unsigned char | toNES (char letter) |
Translates a character from ASCII to the Final Fantasy alphabet. | |
static char | fromNES (unsigned char letter) |
Translates a character from the Final Fantasy alphabet to ASCII. | |
Private Attributes | |
unsigned char * | nvram |
int | carry |
bool | valid |
bool | modified |
Friends | |
class | MainFrame |
|
Constructor for a SaveSlot.
Definition at line 41 of file SaveSlot.cc. |
|
Destructor for a SaveSlot.
Definition at line 53 of file SaveSlot.cc. |
|
Performs an add with carry operation.
Definition at line 344 of file SaveSlot.cc. |
|
Generates a checksum for the current game data.
Definition at line 59 of file SaveSlot.cc. |
|
Translates a character from the Final Fantasy alphabet to ASCII.
Definition at line 395 of file SaveSlot.cc. |
|
Gets the agility of a party member.
Definition at line 229 of file SaveSlot.cc. |
|
Gets the armor of a party member at a given slot.
Definition at line 299 of file SaveSlot.cc. |
|
Gets the class of a particular party member.
Definition at line 143 of file SaveSlot.cc. |
|
Gets the condition of a party member.
Definition at line 153 of file SaveSlot.cc. |
|
Gets the current HP of a party member.
Definition at line 163 of file SaveSlot.cc. |
|
Gets the current magic of a party member at a given level.
Definition at line 309 of file SaveSlot.cc. |
|
Gets the damage of a party member.
Definition at line 269 of file SaveSlot.cc. |
|
Gets the experience of a party member.
Definition at line 191 of file SaveSlot.cc. |
|
Gets the current amount of gold help by the party.
Definition at line 78 of file SaveSlot.cc. |
|
Gets the hit percent of a party member.
Definition at line 279 of file SaveSlot.cc. |
|
Gets the intelligence of a party member.
Definition at line 239 of file SaveSlot.cc. |
|
Gets the current amount of a particular item.
Definition at line 104 of file SaveSlot.cc. |
|
Gets the luck of a party member.
Definition at line 259 of file SaveSlot.cc. |
|
Gets the magic of a party member at a given level.
Definition at line 329 of file SaveSlot.cc. |
|
Gets the max HP of a party member.
Definition at line 178 of file SaveSlot.cc. |
|
Gets the max magic of a party member at a given level.
Definition at line 319 of file SaveSlot.cc. |
|
Gets the name for a particular party member.
Definition at line 114 of file SaveSlot.cc. |
|
Gets the strength of a party member.
Definition at line 219 of file SaveSlot.cc. |
|
Gets the vitality of a party member.
Definition at line 249 of file SaveSlot.cc. |
|
Gets the weapon of a party member at a given slot.
Definition at line 289 of file SaveSlot.cc. |
|
Checks if this SaveSlot has been modified;.
Definition at line 144 of file SaveSlot.hh. |
|
Checks if this SaveSlot is valid.
Definition at line 137 of file SaveSlot.hh. |
|
Sets the agility of a party member.
Definition at line 233 of file SaveSlot.cc. |
|
Sets the armor of a party member at a given slot.
Definition at line 303 of file SaveSlot.cc. |
|
Sets or clears the carry flag used by adc.
Definition at line 522 of file SaveSlot.hh. |
|
Sets the class of a particular party member.
Definition at line 147 of file SaveSlot.cc. |
|
Sets the condition of a party member.
Definition at line 157 of file SaveSlot.cc. |
|
Sets the current HP of a party member.
Definition at line 170 of file SaveSlot.cc. |
|
Sets the current magic of a party member at a given level.
Definition at line 313 of file SaveSlot.cc. |
|
Sets the damage of a party member.
Definition at line 273 of file SaveSlot.cc. |
|
Sets the experience of a party member.
Definition at line 207 of file SaveSlot.cc. |
|
Sets the current amount of gold help by the party.
Definition at line 94 of file SaveSlot.cc. |
|
Sets the hit percent of a party member.
Definition at line 283 of file SaveSlot.cc. |
|
Sets the intelligence of a party member.
Definition at line 243 of file SaveSlot.cc. |
|
Sets the current amount of a particular item.
Definition at line 108 of file SaveSlot.cc. |
|
Sets the luck of a party member.
Definition at line 263 of file SaveSlot.cc. |
|
Sets the magic of a party member at a given level.
Definition at line 336 of file SaveSlot.cc. |
|
Sets the max HP of a party member.
Definition at line 184 of file SaveSlot.cc. |
|
Sets the max magic of a party member at a given level.
Definition at line 323 of file SaveSlot.cc. |
|
Sets whether this SaveSlot has been modified or not.
Definition at line 361 of file SaveSlot.cc. |
|
Sets the name for a particular party member.
Definition at line 125 of file SaveSlot.cc. |
|
Sets the strength of a party member.
Definition at line 223 of file SaveSlot.cc. |
|
Sets the vitality of a party member.
Definition at line 253 of file SaveSlot.cc. |
|
Sets the weapon of a party member at a given slot.
Definition at line 293 of file SaveSlot.cc. |
|
Translates a character from ASCII to the Final Fantasy alphabet.
Definition at line 369 of file SaveSlot.cc. |
|
Definition at line 504 of file SaveSlot.hh. |
|
Definition at line 550 of file SaveSlot.hh. |
|
Definition at line 551 of file SaveSlot.hh. |
|
Definition at line 549 of file SaveSlot.hh. |
|
Definition at line 551 of file SaveSlot.hh. |