package com.cardshifter.api.incoming;

import com.cardshifter.api.messages.Message;

public class StartGameRequest extends Message {

	private final int opponent;
	private final String gameType;
	
	public StartGameRequest() {
		this(-1, "");
	}
	
	public StartGameRequest(int opponent, String gameType) {
		super("startgame");
		this.opponent = opponent;
		this.gameType = gameType;
	}

	public int getOpponent() {
		return opponent;
	}
	
	public String getGameType() {
		return gameType;
	}
	
}

@@ -78,16 +78,202 @@
 ssage;%0A%0A
+/**%0A * Request to start a new game.%0A * %3Cp%3E%0A * This is sent from the Client to the Server when this player invites another player (including AI) to start a new game of a chosen type.%0A */%0A
 public c
@@ -376,16 +376,49 @@
 Type;%0A%09%0A
+%09/** Constructor. (no params) */%0A
 %09public 
@@ -462,200 +462,510 @@
 %09%7D%0A%09
-%0A%09public StartGameRequest(int opponent, String gameType) %7B%0A%09%09super(%22startgame%22);%0A%09%09this.opponent = opponent;%0A%09%09this.gameType = gameType;%0A%09%7D%0A%0A%09public int getOpponent() %7B%0A%09%09return opponent;%0A%09%7D%0A%09
+/**%0A%09 * Constructor.%0A%09 * @param opponent  The Id of the player entity being invited by this player%0A%09 * @param gameType  The type / mod of the game chosen by this player%0A%09 */%0A%09public StartGameRequest(int opponent, String gameType) %7B%0A%09%09super(%22startgame%22);%0A%09%09this.opponent = opponent;%0A%09%09this.gameType = gameType;%0A%09%7D%0A%09/** @return  The Id of the player entity being invited by this player */%0A%09public int getOpponent() %7B%0A%09%09return opponent;%0A%09%7D%0A%09/** @return  The type / mod of the game chosen by this player */
 %0A%09pu

Update StartGameRequest.java