game.multiplayer.containers
Class Invite

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

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

Invite container class for the multiplayer.

Author:
Chris Barton
See Also:
Serialized Form

Constructor Summary
Invite(Client host, Client[] invitees)
          Constructor
 
Method Summary
 Client getHost()
          Returns the host of the Invite.
 Client[] getInvitees()
          Returns the invitees.
 int getNumInvitees()
          Returns the number of invitees on the Invite
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Invite

public Invite(Client host,
              Client[] invitees)
Constructor

Parameters:
host - - Client of the host
invitees - - Client [] of the invitees
Method Detail

getNumInvitees

public int getNumInvitees()
Returns the number of invitees on the Invite

Returns:
int - Number of invitees

getInvitees

public Client[] getInvitees()
Returns the invitees.

Returns:
Client[] - The invitees

getHost

public Client getHost()
Returns the host of the Invite.

Returns:
Client - The host.