|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.hagenah.diplomacy.game.GameGroup
public class GameGroup
This is the standard implementation for the GameHandler interface.
| Constructor Summary | |
|---|---|
GameGroup()
|
|
| Method Summary | |
|---|---|
Game |
createGame(java.lang.String name,
java.lang.String judge,
java.lang.String map)
Retrieves the specified game. |
protected MapData |
createMap(java.lang.String name)
Retrieves the specified map. |
Game |
getGame(java.lang.String name,
java.lang.String judge)
Retrieves the game. |
int |
getGameIndex(java.lang.String name,
java.lang.String judge)
Retrieves the index of a game. |
java.util.Collection |
getGames()
Retrieves all games. |
java.lang.String |
getMapPath()
Returns the map path. |
java.lang.String |
getMapURL(java.lang.String name)
Returns the URL for the map name. |
protected Game |
internCreateGame(java.lang.String name,
java.lang.String judge,
MapData map)
Creates a Game object |
void |
processGames()
Calculates all data that can be calculated from the existing data. |
void |
removeGame(java.lang.String name,
java.lang.String judge)
Removes the game |
void |
renameGame(java.lang.String oldname,
java.lang.String oldjudge,
java.lang.String newname,
java.lang.String newjudge)
Renames a game |
void |
setMapPath(java.lang.String mappath)
Sets the map path. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GameGroup()
| Method Detail |
|---|
protected Game internCreateGame(java.lang.String name,
java.lang.String judge,
MapData map)
protected MapData createMap(java.lang.String name)
throws java.lang.Exception
java.lang.Exception
public java.lang.String getMapURL(java.lang.String name)
throws java.io.IOException
java.io.IOExceptionpublic final java.lang.String getMapPath()
public final void setMapPath(java.lang.String mappath)
public java.util.Collection getGames()
public Game getGame(java.lang.String name,
java.lang.String judge)
public int getGameIndex(java.lang.String name,
java.lang.String judge)
public Game createGame(java.lang.String name,
java.lang.String judge,
java.lang.String map)
throws java.lang.Exception
createGame in interface GameHandlername - The name of the game (!=null).judge - The name of the judge (!=null).map - The name of the map.
java.lang.Exceptionpublic void processGames()
public void removeGame(java.lang.String name,
java.lang.String judge)
public void renameGame(java.lang.String oldname,
java.lang.String oldjudge,
java.lang.String newname,
java.lang.String newjudge)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||