ggencoder
Class GGEncoder

java.lang.Object
  extended byggencoder.GGEncoder

public class GGEncoder
extends java.lang.Object

The runclass for the game genie encoder program in text or GUI mode.

Version:
1.4, 11/16/04
Author:
John David Ratliff

Field Summary
static java.lang.String APP_COPYRIGHT
          The application's copyright.
static java.lang.String APP_NAME
          The application's name.
static java.lang.String APP_URL
          The application's website.
static java.lang.String APP_VERSION
          The application's version.
static java.util.regex.Pattern GBGG_PATTERN
          Pattern for recognizing GameBoy/GameGear Raw Codes.
static java.util.regex.Pattern GENESIS_PATTERN
          Pattern for recognizing Genesis Raw Codes.
static java.util.regex.Pattern NES_PATTERN
          Pattern for recognizing NES Raw Codes.
static java.util.regex.Pattern SNES_PATTERN
          Pattern for recognizing SNES Raw Codes.
 
Method Summary
 void decodeGBGG(java.lang.String code)
          Decodes a GameBoy/GameGear game genie code.
 void decodeGenesis(java.lang.String code)
          Decodes a Genesis game genie code.
 void decodeNES(java.lang.String code)
          Decodes an NES game genie code.
 void decodeSNES(java.lang.String code)
          Decodes an SNES game genie code.
 void encodeGBGG(java.lang.String code)
          Encodes a GameBoy/GameGear game genie code.
 void encodeGenesis(java.lang.String code)
          Encodes a Genesis game genie code.
 void encodeNES(java.lang.String code)
          Encodes an NES game genie code.
 void encodeSNES(java.lang.String code)
          Encodes an SNES game genie code.
static void main(java.lang.String[] args)
          Called to start the program.
static void printCopyright()
          Displays the copyright notice.
static void printHelp()
          Displays the help menu.
static void printSyntax()
          Displays syntax and usage information.
 void startTextMode(java.lang.String[] args)
          Runs the program in TEXT mode.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

APP_NAME

public static final java.lang.String APP_NAME
The application's name.

See Also:
Constant Field Values

APP_VERSION

public static final java.lang.String APP_VERSION
The application's version.

See Also:
Constant Field Values

APP_COPYRIGHT

public static final java.lang.String APP_COPYRIGHT
The application's copyright.

See Also:
Constant Field Values

APP_URL

public static final java.lang.String APP_URL
The application's website.

See Also:
Constant Field Values

NES_PATTERN

public static final java.util.regex.Pattern NES_PATTERN
Pattern for recognizing NES Raw Codes.


SNES_PATTERN

public static final java.util.regex.Pattern SNES_PATTERN
Pattern for recognizing SNES Raw Codes.


GENESIS_PATTERN

public static final java.util.regex.Pattern GENESIS_PATTERN
Pattern for recognizing Genesis Raw Codes.


GBGG_PATTERN

public static final java.util.regex.Pattern GBGG_PATTERN
Pattern for recognizing GameBoy/GameGear Raw Codes.

Method Detail

printCopyright

public static void printCopyright()
Displays the copyright notice.


printSyntax

public static void printSyntax()
Displays syntax and usage information.


printHelp

public static void printHelp()
Displays the help menu.


decodeNES

public void decodeNES(java.lang.String code)
Decodes an NES game genie code.

Parameters:
code - The NES game genie code String.

encodeNES

public void encodeNES(java.lang.String code)
Encodes an NES game genie code.

Parameters:
code - The NES raw code String.

decodeSNES

public void decodeSNES(java.lang.String code)
Decodes an SNES game genie code.

Parameters:
code - The SNES game genie code String.

encodeSNES

public void encodeSNES(java.lang.String code)
Encodes an SNES game genie code.

Parameters:
code - The SNES raw code String.

decodeGenesis

public void decodeGenesis(java.lang.String code)
Decodes a Genesis game genie code.

Parameters:
code - The Genesis game genie code String.

encodeGenesis

public void encodeGenesis(java.lang.String code)
Encodes a Genesis game genie code.

Parameters:
code - The Genesis raw code String.

decodeGBGG

public void decodeGBGG(java.lang.String code)
Decodes a GameBoy/GameGear game genie code.

Parameters:
code - The GameBoy/GameGear game genie code String.

encodeGBGG

public void encodeGBGG(java.lang.String code)
Encodes a GameBoy/GameGear game genie code.

Parameters:
code - The GameBoy/GameGear raw code String.

startTextMode

public void startTextMode(java.lang.String[] args)
Runs the program in TEXT mode.

Parameters:
args - The program arguments.

main

public static void main(java.lang.String[] args)
Called to start the program.

Parameters:
args - The program arguments. Use --help for information.