public class Snapshot
extends Object
Represents a snapshot of the game state at a specific point in time.
-
Constructor Summary
Constructors
Creates a snapshot of the provided Map.
-
Method Summary
Gets the
Map that is being stored in this Snapshot
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Snapshot
public Snapshot(Map originalMap)
Creates a snapshot of the provided Map.
- Parameters:
originalMap - The map to snapshot.
-
Method Details
-
getSnapshotMap
public Map getSnapshotMap()
Gets the
Map that is being stored in this Snapshot
- Returns:
- The
Map