#include <SaveSlot.hh>
Definition at line 90 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 | |
char | fromNES (unsigned char letter) |
Translates a character from the Zelda II alphabet to ASCII. | |
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 36 of file SaveSlot.cc. |
|
Destructor for a SaveSlot object.
Definition at line 51 of file SaveSlot.cc. |
|
Fixes data for a new quest game.
Definition at line 55 of file SaveSlot.cc. |
|
Translates a character from the Zelda II alphabet to ASCII.
Definition at line 202 of file SaveSlot.cc. |
|
Gets one of the container values.
Definition at line 137 of file SaveSlot.cc. |
|
Gets the number of keys the player has.
Definition at line 193 of file SaveSlot.cc. |
|
Gets one of the experience level elements.
Definition at line 128 of file SaveSlot.cc. |
|
Gets the name of the character.
Definition at line 81 of file SaveSlot.cc. |
|
Gets the play count.
Definition at line 110 of file SaveSlot.cc. |
|
Queries if the player has a certain item.
Definition at line 169 of file SaveSlot.cc. |
|
Queries if the player has sealed a certain palace.
Definition at line 178 of file SaveSlot.cc. |
|
Queries if the player has a certain spell.
Definition at line 160 of file SaveSlot.cc. |
|
Queries if the player has a sword technique.
Definition at line 146 of file SaveSlot.cc. |
|
Queries if the player has saved the Triforce before.
Definition at line 119 of file SaveSlot.cc. |
|
Queries if this SaveSlot has been modified;.
Definition at line 109 of file SaveSlot.hh. |
|
Queries if this SaveSlot is valid.
Definition at line 116 of file SaveSlot.hh. |
|
Sets one of the container values.
Definition at line 141 of file SaveSlot.cc. |
|
Sets if the player has a certain item.
Definition at line 173 of file SaveSlot.cc. |
|
Sets the number of keys the player has.
Definition at line 197 of file SaveSlot.cc. |
|
Sets one of the experience level elements.
Definition at line 132 of file SaveSlot.cc. |
|
Sets if this game has been modified or not.
Definition at line 293 of file SaveSlot.hh. |
|
Sets the name of the character.
Definition at line 92 of file SaveSlot.cc. |
|
Sets the play count.
Definition at line 114 of file SaveSlot.cc. |
|
Sets if the player has sealed a certain palace.
Definition at line 182 of file SaveSlot.cc. |
|
Sets if the player has a certain spell.
Definition at line 164 of file SaveSlot.cc. |
|
Sets if the player has a sword technique or not.
Definition at line 150 of file SaveSlot.cc. |
|
Sets whether this player has saved the Triforce before.
Definition at line 123 of file SaveSlot.cc. |
|
Translates a character from ASCII to the Zelda II alphabet.
Definition at line 212 of file SaveSlot.cc. |
|
Definition at line 287 of file SaveSlot.hh. |
|
Definition at line 314 of file SaveSlot.hh. |
|
Definition at line 313 of file SaveSlot.hh. |
|
Definition at line 314 of file SaveSlot.hh. |