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]


Variable Index

 o game
The game actual implementation

Constructor Index

 o GameHandler(Game, GameServer)
Creates a new GameHandler, based on the code found in the Game object.

Method Index

 o getGame()
Returns the underlying game object.
 o getGameName()
Returns the name of the game currently played.
 o getId()
Returns the id of the game.
 o getMaximumPlayers()
Returns this game maximum number of players
 o getPlayerCount()
Returns the number of players playing this game
 o run()
Runs this GameHandler.
 o setId(Object)
Sets the id of the game.
 o toString()
Returns a string representation of the object.

Variables

 o game
 Game game
The game actual implementation

Constructors

 o 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.

Methods

 o getGame
 public Game getGame()
Returns the underlying game object.

 o getGameName
 public String getGameName()
Returns the name of the game currently played.

 o getMaximumPlayers
 public int getMaximumPlayers()
Returns this game maximum number of players

 o getPlayerCount
 public int getPlayerCount()
Returns the number of players playing this game

 o getId
 public Object getId()
Returns the id of the game.

 o setId
 public void setId(Object id)
Sets the id of the game.

 o toString
 public String toString()
Returns a string representation of the object.

Overrides:
toString in class Object
 o run
 public void run()
Runs this GameHandler.


All Packages  Class Hierarchy  This Package  Previous  Next  Index