JavaScript is disabled on your browser.
All Implemented Interfaces:
Save
This classes only job is to save data about the state of the game in some sort of "database"
This class is the Facade class that uses others savers to save info about the game
Constructor Summary
Constructors
Creates a new instance of saver
Method Summary
All Methods Instance Methods Concrete Methods
void
Save the current state of the game to a "database"
Methods inherited from class java.lang.Object
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
Constructor Details
Saver
public Saver (@NotNull
@NotNull Save [] savers)
Creates a new instance of saver
Parameters:
savers
- a group of object that can be used to save piece of the game state's data
Method Details
save
public void save ()
Save the current state of the game to a "database"
Specified by:
save
in interface Save