emuWorks::GameGenieCode Class Reference

#include <gamegeniecode.hh>

Inheritance diagram for emuWorks::GameGenieCode:

emuWorks::GBGGGameGenieCode emuWorks::GenesisGameGenieCode emuWorks::NESGameGenieCode emuWorks::SNESGameGenieCode List of all members.

Detailed Description

Interface for a Game Genie code.

Definition at line 34 of file gamegeniecode.hh.

Public Member Functions

virtual ~GameGenieCode ()
 Virtual destructor for a GameGenieCode.
virtual const char * getAlphabet () const =0
 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.

Private Attributes

QString code


Constructor & Destructor Documentation

emuWorks::GameGenieCode::~GameGenieCode (  )  [inline, virtual]

Virtual destructor for a GameGenieCode.

Definition at line 82 of file gamegeniecode.hh.


Member Function Documentation

virtual const char* emuWorks::GameGenieCode::getAlphabet (  )  const [pure virtual]

Gets the game genie alphabet.

Returns:
The genie alphabet array.

Implemented in emuWorks::GBGGGameGenieCode, emuWorks::GenesisGameGenieCode, emuWorks::NESGameGenieCode, and emuWorks::SNESGameGenieCode.

int emuWorks::GameGenieCode::getAlphabetCount (  )  const [inline, virtual]

Gets the number of letters in the game genie alphabet.

Returns:
The alphabet letter count.

Reimplemented in emuWorks::GenesisGameGenieCode.

Definition at line 83 of file gamegeniecode.hh.

const QString & emuWorks::GameGenieCode::getCode (  )  const [inline]

Gets the game genie code.

Returns:
The game genie code.

Definition at line 85 of file gamegeniecode.hh.

void emuWorks::GameGenieCode::setCode ( const QString &  code  )  [inline]

Sets the game genie code.

Parameters:
code The new game genie code.

Definition at line 87 of file gamegeniecode.hh.

int GameGenieCode::toHex ( char  letter  )  const [virtual]

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

QString emuWorks::GameGenieCode::code [private]

Definition at line 36 of file gamegeniecode.hh.


Generated on Sat Aug 19 11:57:23 2006 for Game Genie Encoder/Decoder by  doxygen 1.4.7