game.multiplayer.containers
Class Game

java.lang.Object
  extended by game.multiplayer.containers.Game
All Implemented Interfaces:
java.io.Serializable

public class Game
extends java.lang.Object
implements java.io.Serializable

Game container class for the multiplayer

Author:
Chris Barton
See Also:
Serialized Form

Constructor Summary
Game(Client[] players)
          Constructor
 
Method Summary
 int getNumPlayers()
          Gets the number of players in the game.
 Client[] getPlayers()
          Gets the game players.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Game

public Game(Client[] players)
Constructor

Parameters:
players - - Client[] - The players playing in the game.
Method Detail

getPlayers

public Client[] getPlayers()
Gets the game players.

Returns:
players - Client []

getNumPlayers

public int getNumPlayers()
Gets the number of players in the game.

Returns:
int