ggencoder.encoder
Interface GameGenieDecoder

All Known Implementing Classes:
AbstractGameGenieDecoder

public interface GameGenieDecoder

An interface for decoding game genie codes into "raw" format.

Version:
1.1, 07/14/04
Author:
John David Ratliff

Method Summary
 GBGGRawCode decodeGBGG(GameGenieCode code)
          Decodes a GameBoy/GameGear game genie code.
 GenesisRawCode decodeGenesis(GameGenieCode code)
          Decodes a Genesis game genie code.
 NESRawCode decodeNES(GameGenieCode code)
          Decodes an NES game genie code.
 SNESRawCode decodeSNES(GameGenieCode code)
          Decodes an SNES game genie code.
 

Method Detail

decodeNES

public NESRawCode decodeNES(GameGenieCode code)
                     throws InvalidGameGenieCodeException
Decodes an NES game genie code.

Parameters:
code - The NES GameGenieCode to decode.
Returns:
The NES code in "raw" format.
Throws:
InvalidGameGenieCodeException - if the code is not a valid NES GameGenieCode.

decodeSNES

public SNESRawCode decodeSNES(GameGenieCode code)
                       throws InvalidGameGenieCodeException
Decodes an SNES game genie code.

Parameters:
code - The SNES GameGenieCode to decode.
Returns:
The SNES code in "raw" format.
Throws:
InvalidGameGenieCodeException - if the code is not a valid SNES GameGenieCode.

decodeGenesis

public GenesisRawCode decodeGenesis(GameGenieCode code)
                             throws InvalidGameGenieCodeException
Decodes a Genesis game genie code.

Parameters:
code - The Genesis GameGenieCode to decode.
Returns:
The Genesis code in "raw" format.
Throws:
InvalidGameGenieCodeException - if the code is not a valid Genesis GameGenieCode.

decodeGBGG

public GBGGRawCode decodeGBGG(GameGenieCode code)
                       throws InvalidGameGenieCodeException
Decodes a GameBoy/GameGear game genie code.

Parameters:
code - The GameBoy/GameGear GameGenieCode to decode.
Returns:
The GameBoy/GameGear code in "raw" format.
Throws:
InvalidGameGenieCodeException - if the code is not a valid GameBoy/GameGear GameGenieCode.