org.globalse.arena.frag.game
Class GameManagerRegistry
java.lang.Object
|
+--org.globalse.arena.frag.game.GameManagerRegistry
- public class GameManagerRegistry
- extends java.lang.Object
The GameManagerRegistry class provides an access method for several different
GameManagers running within the same Java VM. This is necessary if FRAG is
used in the context of a tournament server like the planned ARENA system that
needs to run many games in parallel within the same Java VM, for example a
servlet container like Tomcat. For the design and implementation of SWORD,
this class won't have much practical use.
$Id: GameManagerRegistry.html,v 1.1 2003/02/12 18:06:19 schoecke Exp $
Constructor Summary |
GameManagerRegistry()
|
Method Summary |
static GameManager |
createGameManager(java.lang.String gameName,
java.lang.String playerName)
Creates a new GameManager object |
static GameManager |
getGameManager(java.lang.String gameName)
Get the a specified GameManager |
static void |
removeGameManager(java.lang.String gameName)
removes a GameManager of the registry |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
GameManagerRegistry
public GameManagerRegistry()
createGameManager
public static GameManager createGameManager(java.lang.String gameName,
java.lang.String playerName)
- Creates a new GameManager object
- Parameters:
gameName
- The name of the gameplayerName
- The name of the player- Returns:
- A GameManager object
- Preconditions:
gameName != ""
playerName != ""
- See Also:
GameManager
getGameManager
public static GameManager getGameManager(java.lang.String gameName)
- Get the a specified GameManager
- Parameters:
gameName
- The name of the game- Returns:
- A GameManager object
- Preconditions:
gameName != ""
- See Also:
GameManager
removeGameManager
public static void removeGameManager(java.lang.String gameName)
- removes a GameManager of the registry
- Parameters:
gameName
- The name of the game- Preconditions:
gameName != ""
- See Also:
GameManager
This page is hosted by the Chair for Applied Software Engineering of the Technische Universität München.
Imprint (Impressum)