ggencoder.datastructures
Class GenesisGameGenieCode

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

Field Summary
 
Fields inherited from class ggencoder.datastructures.AbstractGameGenieCode
GBGG_ALPHABET, GENESIS_ALPHABET, NES_ALPHABET, SNES_ALPHABET
 
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 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

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