org.jogre.common
Class GameSnapshot

java.lang.Object
  extended byorg.jogre.common.GameSnapshot
All Implemented Interfaces:
ITransmittable

public class GameSnapshot
extends Object
implements ITransmittable

Data structure showing a snapshot of a game.

Version:
Alpha 0.2.1
Author:
Bob Marks

Field Summary
static String XML_NAME
          Name of the game snapshot.
 
Constructor Summary
GameSnapshot(Game game)
          Constructor for a game state.
GameSnapshot(XMLElement message)
          Constructor which takes in an XML element.
 
Method Summary
 XMLElement flatten()
          Flatten into an XML element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

XML_NAME

public static final String XML_NAME
Name of the game snapshot.

See Also:
Constant Field Values
Constructor Detail

GameSnapshot

public GameSnapshot(Game game)
Constructor for a game state.

Parameters:
game -

GameSnapshot

public GameSnapshot(XMLElement message)
Constructor which takes in an XML element.

Parameters:
message -
Method Detail

flatten

public XMLElement flatten()
Flatten into an XML element.

Specified by:
flatten in interface ITransmittable
Returns:
XML version of the state of an object which can be constructed again.
See Also:
ITransmittable.flatten()