|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectggencoder.datastructures.AbstractGameGenieCode
An abstract implementation of the GameGenieCode interface.
Field Summary | |
static char[] |
GBGG_ALPHABET
Game Genie alphabet for GameBoy/GameGear codes. |
static char[] |
GENESIS_ALPHABET
Game Genie alphabet for Genesis codes. |
static char[] |
NES_ALPHABET
Game Genie alphabet for NES codes. |
static char[] |
SNES_ALPHABET
Game Genie alphabet for SNES codes. |
Constructor Summary | |
AbstractGameGenieCode()
|
Method Summary | |
java.lang.String |
getCode()
Gets the code string. |
static GameGenieCode |
parseGBGG(java.lang.String code)
Parses a GameBoy/GameGear Game Genie code into a GameGenieCode object. |
static GameGenieCode |
parseGenesis(java.lang.String code)
Parses a Genesis Game Genie code into a GameGenieCode object. |
static GameGenieCode |
parseNES(java.lang.String code)
Parses an NES Game Genie code into a GameGenieCode object. |
static GameGenieCode |
parseSNES(java.lang.String code)
Parses an SNES Game Genie code into a GameGenieCode object. |
void |
setCode(java.lang.String code)
Sets the code string. |
int |
toHex(char letter)
Translates a game genie letter to hexadecimal. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface ggencoder.datastructures.GameGenieCode |
getAlphabet |
Field Detail |
public static final char[] NES_ALPHABET
public static final char[] SNES_ALPHABET
public static final char[] GENESIS_ALPHABET
public static final char[] GBGG_ALPHABET
Constructor Detail |
public AbstractGameGenieCode()
Method Detail |
public static GameGenieCode parseNES(java.lang.String code) throws InvalidGameGenieCodeException
code
- The NES game genie code.
InvalidGameGenieCodeException
- if the code is not a valid NES
game genie code.public static GameGenieCode parseSNES(java.lang.String code) throws InvalidGameGenieCodeException
code
- The SNES game genie code.
InvalidGameGenieCodeException
- if the code is not a valid SNES
game genie code.public static GameGenieCode parseGenesis(java.lang.String code) throws InvalidGameGenieCodeException
code
- The Genesis game genie code.
InvalidGameGenieCodeException
- if the code is not a valid
Genesis game genie code.public static GameGenieCode parseGBGG(java.lang.String code) throws InvalidGameGenieCodeException
code
- The Genesis game genie code.
InvalidGameGenieCodeException
- if the code is not a valid
GameBoy/GameGear game genie code.public java.lang.String getCode()
getCode
in interface GameGenieCode
public void setCode(java.lang.String code)
setCode
in interface GameGenieCode
code
- The new code string.public int toHex(char letter) throws InvalidGameGenieLetterException
toHex
in interface GameGenieCode
letter
- The letter to translate.
InvalidGameGenieLetterException
- if the letter is not part of
the game genie alphabet.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |