package com.cardshifter.api.outgoing;

import com.cardshifter.api.messages.Message;

public class NewGameMessage extends Message {

	private int gameId;
	private int playerIndex;

	public NewGameMessage() {
		this(0, 0);
	}

	public NewGameMessage(int gameId, int playerIndex) {
		super("newgame");
		this.gameId = gameId;
		this.playerIndex = playerIndex;
	}
	
	public int getGameId() {
		return gameId;
	}
	
	public int getPlayerIndex() {
		return playerIndex;
	}

}

@@ -77,17 +77,66 @@
 essage;%0A
+/** Message stating that a new game has begun. */
 %0A
-
 public c
@@ -221,17 +221,49 @@
 rIndex;%0A
+%09/** Constructor. (no params) */
 %0A
-
 %09public 
@@ -298,17 +298,132 @@
  0);%0A%09%7D%0A
+%09/**%0A%09 * Constructor. %0A%09 * @param gameId  The Id of this game%0A%09 * @param playerIndex  The index of this player%0A%09 */
 %0A
-
 %09public 
@@ -546,24 +546,59 @@
 rIndex;%0A%09%7D%0A%09
+/** @return  The Id of this game */
 %0A%09public int
@@ -632,17 +632,57 @@
 eId;%0A%09%7D%0A
-
 %09
+/** @return  The index of this player */
 %0A%09public

Update NewGameMessage.java