ggencoder.datastructures
Class GBGGGameGenieCode

java.lang.Object
  extended byggencoder.datastructures.AbstractGameGenieCode
      extended byggencoder.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

Field Summary
 
Fields inherited from class ggencoder.datastructures.AbstractGameGenieCode
GBGG_ALPHABET, GENESIS_ALPHABET, NES_ALPHABET, SNES_ALPHABET
 
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 ggencoder.datastructures.AbstractGameGenieCode
getCode, parseGBGG, parseGenesis, parseNES, parseSNES, setCode, toHex
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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.