|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.zmpp.vm.PortableGameState
public class PortableGameState
This class represents the state of the Z machine in an external format, so it can be exchanged using the Quetzal IFF format.
Nested Class Summary | |
---|---|
static class |
PortableGameState.StackFrame
This class represents a stack frame in the portable game state model. |
Constructor Summary | |
---|---|
PortableGameState()
Constructor. |
Method Summary | |
---|---|
void |
captureMachineState(Machine machine,
int savePc)
Makes a snapshot of the current machine state. |
int |
getChecksum()
Returns the game checksum. |
byte[] |
getDeltaBytes()
Returns the delta bytes. |
byte[] |
getDynamicMemoryDump()
Returns the current dump of dynamic memory captured from a Machine object. |
int |
getProgramCounter()
Returns the program counter. |
int |
getRelease()
Returns the game release number. |
String |
getSerialNumber()
Returns the game serial number. |
List<PortableGameState.StackFrame> |
getStackFrames()
Returns the list of stack frames. |
boolean |
readSaveGame(FormChunk formChunk)
Initialize the state from an IFF form. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PortableGameState()
Method Detail |
---|
public int getRelease()
public int getChecksum()
public String getSerialNumber()
public int getProgramCounter()
public List<PortableGameState.StackFrame> getStackFrames()
public byte[] getDeltaBytes()
public byte[] getDynamicMemoryDump()
public boolean readSaveGame(FormChunk formChunk)
formChunk
- the IFF form
public void captureMachineState(Machine machine, int savePc)
machine
- a MachinesavePc
- the program counter restore value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |