package com.cardshifter.api.outgoing;

import com.cardshifter.api.messages.Message;

public class ClientDisconnectedMessage extends Message {

	private String name;
	private int playerIndex;

	public ClientDisconnectedMessage() {
		this("", 0);
	}

	public ClientDisconnectedMessage(String name, int playerIndex) {
		super("disconnect");
		this.name = name;
		this.playerIndex = playerIndex;
	}
	
	public String getName() {
		return name;
	}
	
	public int getPlayerIndex() {
		return playerIndex;
	}

}

@@ -78,16 +78,69 @@
 ssage;%0A%0A
+/** Inform that a player client has disconnected. */%0A
 public c
@@ -237,17 +237,49 @@
 rIndex;%0A
+%09/** Constructor. (no params) */
 %0A
-
 %09public 
@@ -326,17 +326,125 @@
  0);%0A%09%7D%0A
+%09/**%0A%09 * Constructor.%0A%09 * @param name  Name of this player%0A%09 * @param playerIndex  Index of this player%0A%09 */
 %0A
-
 %09public 
@@ -578,24 +578,59 @@
 rIndex;%0A%09%7D%0A%09
+/** @return  Name of this player */
 %0A%09public Str
@@ -663,17 +663,54 @@
 ame;%0A%09%7D%0A
-
 %09
+/** @return  Index of this player  */
 %0A%09public

Update ClientDisconnectedMessage.java