All Packages Class Hierarchy This Package Previous Next Index
Class game.GameHandler
java.lang.Object
|
+----game.GameHandler
- public class GameHandler
- extends Object
- implements Runnable
GameHandler.java [DESCRIBE ME]
-
game
- The game actual implementation
-
GameHandler(Game, GameServer)
- Creates a new GameHandler, based on the code found in
the Game object.
-
getGame()
- Returns the underlying game object.
-
getGameName()
- Returns the name of the game currently played.
-
getId()
- Returns the id of the game.
-
getMaximumPlayers()
- Returns this game maximum number of players
-
getPlayerCount()
- Returns the number of players playing this game
-
run()
- Runs this GameHandler.
-
setId(Object)
- Sets the id of the game.
-
toString()
- Returns a string representation of the object.
game
Game game
- The game actual implementation
GameHandler
public GameHandler(Game game,
GameServer server)
- Creates a new GameHandler, based on the code found in
the Game object.
- Parameters:
- game - the actual game implementation.
- server - the server in which the game has been created.
getGame
public Game getGame()
- Returns the underlying game object.
getGameName
public String getGameName()
- Returns the name of the game currently played.
getMaximumPlayers
public int getMaximumPlayers()
- Returns this game maximum number of players
getPlayerCount
public int getPlayerCount()
- Returns the number of players playing this game
getId
public Object getId()
- Returns the id of the game.
setId
public void setId(Object id)
- Sets the id of the game.
toString
public String toString()
- Returns a string representation of the object.
- Overrides:
- toString in class Object
run
public void run()
- Runs this GameHandler.
All Packages Class Hierarchy This Package Previous Next Index