|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.monkeycoder.monkeynes.hardware.GameGenie
This class acts like the Game Genie (™ of Galoob) game enhancement device.
Please note that MemoryFilters apply ONLY to single byte reads and writes or
byte range reads and writes. No filtering is done for "word" reads or writes.
Originally part of the MonkeyNES project.
| Constructor Summary | |
GameGenie()
Creates a new GameGenie. |
|
| Method Summary | |
void |
addCode(GameGenieCode inCode)
Adds a code to the list of active codes. |
int |
getFilteredReadValue(int inAddress,
int inValue)
This function will mutate values read from memory according to the active GameGenieCode rules. |
int |
getFilteredWriteValue(int inAddress,
int inValue)
This function is not used by the GameGenie so it will always return the value passed in with no further processing. |
void |
removeCode(GameGenieCode inCode)
Removes a code from the list of active codes. |
void |
removeCode(int inIndex)
Removes a code from the list of active codes. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public GameGenie()
| Method Detail |
public void addCode(GameGenieCode inCode)
inCode - The code to add to the list of active codes.public void removeCode(int inIndex)
inIndex - The index of the code to remove.public void removeCode(GameGenieCode inCode)
inCode - The exact code object to remove.
public int getFilteredReadValue(int inAddress,
int inValue)
getFilteredReadValue in interface MemoryFilterinAddress - The address from which the value was read.inValue - A value already read from memory.
public int getFilteredWriteValue(int inAddress,
int inValue)
getFilteredWriteValue in interface MemoryFilterinAddress - The address of the requested value.inValue - The value that was going to be written.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||