#include <SaveSlot.hh>
Definition at line 93 of file SaveSlot.hh.
Public Member Functions | |
SaveSlot (const char *nvram) | |
Constructor for a SaveSlot. | |
~SaveSlot () | |
Destructor for a SaveSlot object. | |
bool | isModified () const |
Queries if this SaveSlot has been modified;. | |
bool | isValid () const |
Queries if this SaveSlot is valid. | |
void | checkForNewGame () |
Fixes data for a new quest game. | |
wxString | getName () const |
Gets the name of the character. | |
void | setName (wxString &value) |
Sets the name of the character. | |
int | getPlayCount () const |
Gets the play count. | |
void | setPlayCount (unsigned char value) |
Sets the play count. | |
bool | hasTriforce () const |
Queries if the player has saved the Triforce before. | |
void | setTriforce (bool value) |
Sets whether this player has saved the Triforce before. | |
int | getLevel (int which) const |
Gets one of the experience level elements. | |
void | setLevel (int which, unsigned char value) |
Sets one of the experience level elements. | |
int | getContainers (int which) const |
Gets one of the container values. | |
void | setContainers (int which, unsigned char value) |
Sets one of the container values. | |
bool | hasTechnique (int technique) const |
Queries if the player has a sword technique. | |
void | setTechnique (int technique, bool value) |
Sets if the player has a sword technique or not. | |
bool | hasSpell (int spell) const |
Queries if the player has a certain spell. | |
void | setSpell (int spell, bool value) |
Sets if the player has a certain spell. | |
bool | hasItem (int item) const |
Queries if the player has a certain item. | |
void | setItem (int item, bool value) |
Sets if the player has a certain item. | |
bool | hasSeal (int palace) const |
Queries if the player has sealed a certain palace. | |
void | setSeal (int palace, bool value) |
Sets if the player has sealed a certain palace. | |
int | getKeys () const |
Gets the number of keys the player has. | |
void | setKeys (unsigned char value) |
Sets the number of keys the player has. | |
Private Member Functions | |
void | setModified (bool modified=true) |
Sets if this game has been modified or not. | |
Static Private Member Functions | |
static char | fromNES (unsigned char letter) |
Translates a character from the Zelda II alphabet to ASCII. | |
static unsigned char | toNES (char letter) |
Translates a character from ASCII to the Zelda II alphabet. | |
Private Attributes | |
unsigned char * | nvram |
bool | modified |
bool | valid |
Friends | |
class | SRAMFile |
|
Constructor for a SaveSlot.
Definition at line 39 of file SaveSlot.cc. |
|
Destructor for a SaveSlot object.
Definition at line 54 of file SaveSlot.cc. |
|
Fixes data for a new quest game.
Definition at line 58 of file SaveSlot.cc. |
|
Translates a character from the Zelda II alphabet to ASCII.
Definition at line 205 of file SaveSlot.cc. |
|
Gets one of the container values.
Definition at line 140 of file SaveSlot.cc. |
|
Gets the number of keys the player has.
Definition at line 196 of file SaveSlot.cc. |
|
Gets one of the experience level elements.
Definition at line 131 of file SaveSlot.cc. |
|
Gets the name of the character.
Definition at line 84 of file SaveSlot.cc. |
|
Gets the play count.
Definition at line 113 of file SaveSlot.cc. |
|
Queries if the player has a certain item.
Definition at line 172 of file SaveSlot.cc. |
|
Queries if the player has sealed a certain palace.
Definition at line 181 of file SaveSlot.cc. |
|
Queries if the player has a certain spell.
Definition at line 163 of file SaveSlot.cc. |
|
Queries if the player has a sword technique.
Definition at line 149 of file SaveSlot.cc. |
|
Queries if the player has saved the Triforce before.
Definition at line 122 of file SaveSlot.cc. |
|
Queries if this SaveSlot has been modified;.
Definition at line 112 of file SaveSlot.hh. |
|
Queries if this SaveSlot is valid.
Definition at line 119 of file SaveSlot.hh. |
|
Sets one of the container values.
Definition at line 144 of file SaveSlot.cc. |
|
Sets if the player has a certain item.
Definition at line 176 of file SaveSlot.cc. |
|
Sets the number of keys the player has.
Definition at line 200 of file SaveSlot.cc. |
|
Sets one of the experience level elements.
Definition at line 135 of file SaveSlot.cc. |
|
Sets if this game has been modified or not.
Definition at line 296 of file SaveSlot.hh. |
|
Sets the name of the character.
Definition at line 95 of file SaveSlot.cc. |
|
Sets the play count.
Definition at line 117 of file SaveSlot.cc. |
|
Sets if the player has sealed a certain palace.
Definition at line 185 of file SaveSlot.cc. |
|
Sets if the player has a certain spell.
Definition at line 167 of file SaveSlot.cc. |
|
Sets if the player has a sword technique or not.
Definition at line 153 of file SaveSlot.cc. |
|
Sets whether this player has saved the Triforce before.
Definition at line 126 of file SaveSlot.cc. |
|
Translates a character from ASCII to the Zelda II alphabet.
Definition at line 215 of file SaveSlot.cc. |
|
Definition at line 290 of file SaveSlot.hh. |
|
Definition at line 317 of file SaveSlot.hh. |
|
Definition at line 316 of file SaveSlot.hh. |
|
Definition at line 317 of file SaveSlot.hh. |