ggencoder.datastructures
Class GenesisGameGenieCode
java.lang.Object
ggencoder.datastructures.AbstractGameGenieCode
ggencoder.datastructures.GenesisGameGenieCode
- All Implemented Interfaces:
- GameGenieCode
- public class GenesisGameGenieCode
- extends AbstractGameGenieCode
An implementation of the GameGenieCode interface for Genesis Game Genie
Codes.
- Version:
- 1.1, 07/14/04
- Author:
- John David Ratliff
Constructor Summary |
protected |
GenesisGameGenieCode(java.lang.String code)
Creates a new GenesisGameGenieCode object. |
Method Summary |
char[] |
getAlphabet()
Gets the alphabet for the game genie code. |
protected static boolean |
isValidCode(java.lang.String code)
Checks a code to tell if it's valid. |
java.lang.String |
toString()
Returns a String representation of this code. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
GenesisGameGenieCode
protected GenesisGameGenieCode(java.lang.String code)
- Creates a new GenesisGameGenieCode object. This method should never
be called directly except by
AbstractGameGenieCode.genesisParse(String).
- Parameters:
code
- The game genie code to encapsulate.
isValidCode
protected static boolean isValidCode(java.lang.String code)
- Checks a code to tell if it's valid.
- Parameters:
code
- The coe to check.
- Returns:
- true if the code is a valid Genesis game genie code, false
otherwise.
getAlphabet
public char[] getAlphabet()
- Gets the alphabet for the game genie code.
- Returns:
- The game genie alphabet.
toString
public java.lang.String toString()
- Returns a String representation of this code.
- Returns:
- A String representation.