net.bluebones.boggle
Class GameInfo

java.lang.Object
  extended by net.bluebones.boggle.GameInfo

public class GameInfo
extends Object

Data holder class that holds the information necessary to join or host a game.

Version:
0.3 $Revision: 1.3 $
Author:
Thomas David Baker, bakert@gmail.com>

Constructor Summary
GameInfo(String name, HostInfo hostInfo)
          Initialises new GameInfo with the specified values.
 
Method Summary
 HostInfo hostInfo()
          HostInfo of this game.
static void main(String[] args)
          Simple commandline test of GameInfo.
 String name()
          Name of the player.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GameInfo

public GameInfo(String name,
                HostInfo hostInfo)
Initialises new GameInfo with the specified values.

Parameters:
name - Name of the player.
hostInfo - HostInfo of the host of the game.
Method Detail

name

public String name()
Name of the player.

Returns:
Player's name.

hostInfo

public HostInfo hostInfo()
HostInfo of this game.

Returns:
HostInfo of this game.

main

public static void main(String[] args)
Simple commandline test of GameInfo.

Parameters:
args - Commandline arguments.