org.jogre.common.comm
Class CommStartGame
java.lang.Object
org.jogre.common.comm.CommGameMessage
org.jogre.common.comm.CommTableMessage
org.jogre.common.comm.CommStartGame
- All Implemented Interfaces:
- ITransmittable
- public class CommStartGame
- extends CommTableMessage
Small communication object for starting a game
- Version:
- Alpha 0.2.3
- Author:
- Bob Marks
CommStartGame
public CommStartGame(String currentPlayer,
int tableNum)
- Constructor for requesting joining an existing table.
- Parameters:
tableNum
- Table number of table where game is starting
CommStartGame
public CommStartGame(XMLElement message)
- Constructor which takes an XMLElement.
- Parameters:
message
-
getCurrentPlayer
public String getCurrentPlayer()
- Return the current player.
- Returns:
- Current player.
flatten
public XMLElement flatten()
- Flatten the String for transmission purposes.
- Returns:
- XML version of the state of an object which can be constructed again.
- See Also:
ITransmittable.flatten()