Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

emuWorks::SNESGameGenieCode Class Reference

#include <snesgamegeniecode.hh>

Inheritance diagram for emuWorks::SNESGameGenieCode:

emuWorks::GameGenieCode List of all members.

Detailed Description

An implementation of an SNES game genie code.

Definition at line 34 of file snesgamegeniecode.hh.

Public Member Functions

const char * getAlphabet ()
 Gets the game genie alphabet.
QString getCode ()
 Gets the game genie code.
void setCode (QString &code)
 Sets the game genie code.
virtual int getAlphabetCount ()
 Gets the number of letters in the game genie alphabet.
virtual int toHex (char letter)
 Gets the corresponding hex value for a particular game genie letter.

Static Public Member Functions

static SNESGameGenieCode create (QString &code)
 Creates an SNESGameGenieCode object.
static bool isValidCode (QString &code)
 Checks if the code is a valid game genie code.

Static Public Attributes

static const char ALPHABET []
 The game genie alphabet.

Protected Attributes

QString code

Private Member Functions

 SNESGameGenieCode (QString &code)
 Constructor for an SNESGameGenieCode.


Constructor & Destructor Documentation

emuWorks::SNESGameGenieCode::SNESGameGenieCode QString &  code  )  [inline, private]
 

Constructor for an SNESGameGenieCode.

Definition at line 69 of file snesgamegeniecode.hh.


Member Function Documentation

SNESGameGenieCode SNESGameGenieCode::create QString &  code  )  [static]
 

Creates an SNESGameGenieCode object.

Parameters:
code The game genie code string.
Exceptions:
InvalidGameGenieCode if the code is invalid.

Definition at line 35 of file snesgamegeniecode.cc.

const char * SNESGameGenieCode::getAlphabet  )  [virtual]
 

Gets the game genie alphabet.

Returns:
The genie alphabet array.

Implements emuWorks::GameGenieCode.

Definition at line 84 of file snesgamegeniecode.cc.

virtual int emuWorks::GameGenieCode::getAlphabetCount  )  [inline, virtual, inherited]
 

Gets the number of letters in the game genie alphabet.

Returns:
The alphabet letter count.

Reimplemented in emuWorks::GenesisGameGenieCode.

Definition at line 67 of file gamegeniecode.hh.

QString emuWorks::GameGenieCode::getCode  )  [inline, inherited]
 

Gets the game genie code.

Returns:
The game genie code.

Definition at line 46 of file gamegeniecode.hh.

bool SNESGameGenieCode::isValidCode QString &  code  )  [static]
 

Checks if the code is a valid game genie code.

Parameters:
code The code to check.
Returns:
true if valid; false otherwise.

Definition at line 43 of file snesgamegeniecode.cc.

void emuWorks::GameGenieCode::setCode QString &  code  )  [inline, inherited]
 

Sets the game genie code.

Parameters:
code The new game genie code.

Definition at line 53 of file gamegeniecode.hh.

int GameGenieCode::toHex char  letter  )  [virtual, inherited]
 

Gets the corresponding hex value for a particular game genie letter.

Parameters:
letter The game genie letter.
Returns:
The hex value of the letter or -1 if the letter is invalid.

Definition at line 31 of file gamegeniecode.cc.


Member Data Documentation

const char SNESGameGenieCode::ALPHABET [static]
 

Initial value:

 {
    'D', 'F', '4', '7', '0', '9', '1', '5',
    '6', 'B', 'C', '8', 'A', '2', '3', 'E'
}
The game genie alphabet.

Definition at line 64 of file snesgamegeniecode.hh.

QString emuWorks::GameGenieCode::code [protected, inherited]
 

Definition at line 78 of file gamegeniecode.hh.


Generated on Sat Jul 30 15:01:51 2005 for Game Genie Encoder/Decoder by  doxygen 1.4.4