vooga.network.gamelobby
Class VoogaLobbyServerRequest

java.lang.Object
  extended by vooga.network.gamelobby.VoogaLobbyServerRequest
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
GetLobbiesRequest, JoinLobbyRequest, LeaveLobbyRequest, NewLobbyRequest, StartGameRequest

public abstract class VoogaLobbyServerRequest
extends java.lang.Object
implements java.io.Serializable

A VoogaLobbyServerRequest is sent to the server by the client, and then executes the appropriate method calls on the server.

Author:
tanner schmidt
See Also:
Serialized Form

Field Summary
protected  java.lang.String myGame
           
protected  java.lang.String myLobby
           
protected  long myLobbyID
           
protected  java.lang.String myName
           
protected  int myOccupancy
           
 
Constructor Summary
VoogaLobbyServerRequest(java.lang.String userName, java.lang.String gameName, java.lang.String lobbyName, long lobbyID, int occupancy)
           
 
Method Summary
abstract  void execute(VoogaLobbyServer server)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

myName

protected java.lang.String myName

myGame

protected java.lang.String myGame

myLobby

protected java.lang.String myLobby

myLobbyID

protected long myLobbyID

myOccupancy

protected int myOccupancy
Constructor Detail

VoogaLobbyServerRequest

public VoogaLobbyServerRequest(java.lang.String userName,
                               java.lang.String gameName,
                               java.lang.String lobbyName,
                               long lobbyID,
                               int occupancy)
Method Detail

execute

public abstract void execute(VoogaLobbyServer server)