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

emuWorks::GBGGGameGenieCode Class Reference

#include <gbgggamegeniecode.hh>

Inheritance diagram for emuWorks::GBGGGameGenieCode:

emuWorks::GameGenieCode List of all members.

Detailed Description

An implementation of a Game Boy or Game Gear game genie code.

Definition at line 34 of file gbgggamegeniecode.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 GBGGGameGenieCode create (QString &code)
 Creates a GBGGGameGenieCode 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

 GBGGGameGenieCode (QString &code)
 Constructor for an GBGGGameGenieCode.


Constructor & Destructor Documentation

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

Constructor for an GBGGGameGenieCode.

Definition at line 69 of file gbgggamegeniecode.hh.


Member Function Documentation

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

Creates a GBGGGameGenieCode object.

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

Definition at line 35 of file gbgggamegeniecode.cc.

const char * GBGGGameGenieCode::getAlphabet  )  [virtual]
 

Gets the game genie alphabet.

Returns:
The genie alphabet array.

Implements emuWorks::GameGenieCode.

Definition at line 90 of file gbgggamegeniecode.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 GBGGGameGenieCode::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 gbgggamegeniecode.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 GBGGGameGenieCode::ALPHABET [static]
 

Initial value:

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

Definition at line 64 of file gbgggamegeniecode.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