|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectFileSaver
public class FileSaver
FileSaver writes the state of a game to a file.
| Constructor Summary | |
|---|---|
FileSaver()
|
|
| Method Summary | |
|---|---|
boolean |
saveGameFile(java.lang.String filename)
Saves the state of the game to a file, reading from the Grid objects for the CPU and human players and the Game object as needed. |
void |
setCPUPlayerBoard(Grid g)
Sets the Grid for the CPU player. |
void |
setGame(Game g)
Sets the Game to reconstitute moves into. |
void |
setHumanPlayerBoard(Grid g)
Sets the Grid for the human player. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileSaver()
| Method Detail |
|---|
public void setHumanPlayerBoard(Grid g)
g - public void setCPUPlayerBoard(Grid g)
g - public void setGame(Game g)
g - public boolean saveGameFile(java.lang.String filename)
filename -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||