ggencoder.datastructures
Interface GameGenieCode

All Known Implementing Classes:
AbstractGameGenieCode

public interface GameGenieCode

Interface representing a Game Genie code.

Version:
1.2, 07/14/04
Author:
John David Ratliff

Method Summary
 char[] getAlphabet()
          Gets the alphabet for the game genie code.
 java.lang.String getCode()
          Gets the code string.
 void setCode(java.lang.String code)
          Sets the code string.
 int toHex(char letter)
          Translates a game genie letter to hexadecimal.
 

Method Detail

getCode

public java.lang.String getCode()
Gets the code string.

Returns:
The code string.

setCode

public void setCode(java.lang.String code)
Sets the code string.

Parameters:
code - The new code string.

getAlphabet

public char[] getAlphabet()
Gets the alphabet for the game genie code.

Returns:
The game genie alphabet.

toHex

public int toHex(char letter)
          throws InvalidGameGenieLetterException
Translates a game genie letter to hexadecimal.

Parameters:
letter - The letter to translate.
Returns:
The hex value of the letter.
Throws:
InvalidGameGenieLetterException - if the letter is not part of the game genie alphabet.