jfreerails.network
Interface SavedGamesManager

All Known Implementing Classes:
SavedGamesManager4UnitTests, SavedGamesManagerImpl

public interface SavedGamesManager

Defines methods that let the server load and save game states, and get blank maps for new games.

Author:
Luke

Method Summary
 java.lang.String[] getNewMapNames()
           
 java.lang.String[] getSaveGameNames()
           
 java.io.Serializable loadGame(java.lang.String name)
           
 java.io.Serializable newMap(java.lang.String name)
           
 void saveGame(java.io.Serializable w, java.lang.String s)
           
 

Method Detail

getSaveGameNames

java.lang.String[] getSaveGameNames()

getNewMapNames

java.lang.String[] getNewMapNames()

saveGame

void saveGame(java.io.Serializable w,
              java.lang.String s)
              throws java.io.IOException
Throws:
java.io.IOException

loadGame

java.io.Serializable loadGame(java.lang.String name)
                              throws java.io.IOException
Throws:
java.io.IOException

newMap

java.io.Serializable newMap(java.lang.String name)
                            throws java.io.IOException
Throws:
java.io.IOException