#include <snesgamegeniecode.hh>
Definition at line 36 of file snesgamegeniecode.hh.
Public Member Functions | |
const char * | getAlphabet () const |
Gets the game genie alphabet. | |
virtual int | getAlphabetCount () const |
Gets the number of letters in the game genie alphabet. | |
const QString & | getCode () const |
Gets the game genie code. | |
void | setCode (const QString &code) |
Sets the game genie code. | |
virtual int | toHex (char letter) const |
Gets the corresponding hex value for a particular game genie letter. | |
Static Public Member Functions | |
static SNESGameGenieCode | create (const QString &code) throw (InvalidGameGenieCodeException) |
Creates an SNESGameGenieCode object. | |
static bool | isValidCode (const QString &code) |
Checks if the code is a valid game genie code. | |
Static Public Attributes | |
static const char | ALPHABET [] |
The game genie alphabet. | |
Private Member Functions | |
SNESGameGenieCode (const QString &code) | |
Constructor for an SNESGameGenieCode. |
ggencoder::SNESGameGenieCode::SNESGameGenieCode | ( | const QString & | code | ) | [inline, private] |
SNESGameGenieCode SNESGameGenieCode::create | ( | const QString & | code | ) | throw (InvalidGameGenieCodeException) [static] |
Creates an SNESGameGenieCode object.
code | The game genie code string. |
InvalidGameGenieCodeException | if the code is invalid. |
Definition at line 34 of file snesgamegeniecode.cc.
const char * SNESGameGenieCode::getAlphabet | ( | ) | const [virtual] |
Gets the game genie alphabet.
Implements ggencoder::GameGenieCode.
Definition at line 43 of file snesgamegeniecode.cc.
bool SNESGameGenieCode::isValidCode | ( | const QString & | code | ) | [static] |
Checks if the code is a valid game genie code.
code | The code to check. |
Definition at line 47 of file snesgamegeniecode.cc.
int ggencoder::GameGenieCode::getAlphabetCount | ( | ) | const [inline, virtual, inherited] |
Gets the number of letters in the game genie alphabet.
Reimplemented in ggencoder::GenesisGameGenieCode.
Definition at line 83 of file gamegeniecode.hh.
const QString & ggencoder::GameGenieCode::getCode | ( | ) | const [inline, inherited] |
Gets the game genie code.
Definition at line 85 of file gamegeniecode.hh.
void ggencoder::GameGenieCode::setCode | ( | const QString & | code | ) | [inline, inherited] |
Sets the game genie code.
code | The new game genie code. |
Definition at line 87 of file gamegeniecode.hh.
int GameGenieCode::toHex | ( | char | letter | ) | const [virtual, inherited] |
Gets the corresponding hex value for a particular game genie letter.
letter | The game genie letter. |
Definition at line 31 of file gamegeniecode.cc.
const char SNESGameGenieCode::ALPHABET [static] |
Initial value:
{ 'D', 'F', '4', '7', '0', '9', '1', '5', '6', 'B', 'C', '8', 'A', '2', '3', 'E' }
Definition at line 45 of file snesgamegeniecode.hh.