ggencoder.datastructures
Class GBGGGameGenieCode
java.lang.Object
ggencoder.datastructures.AbstractGameGenieCode
ggencoder.datastructures.GBGGGameGenieCode
- All Implemented Interfaces:
- GameGenieCode
- public class GBGGGameGenieCode
- extends AbstractGameGenieCode
An implementation of the GameGenieCode interface for GameBoy/GameGear codes.
- Version:
- 1.1, 07/14/04
- Author:
- John David Ratliff
Constructor Summary |
protected |
GBGGGameGenieCode(java.lang.String code)
Creates a new GBGGGameGenieCode 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 |
GBGGGameGenieCode
protected GBGGGameGenieCode(java.lang.String code)
- Creates a new GBGGGameGenieCode object. This method should never be
called directly except by AbstractGameGenieCode.gbggParse(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 GameBoy/GameGear 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.