package com.cardshifter.api.incoming;

import com.cardshifter.api.messages.Message;

public class RequestTargetsMessage extends Message {

	private final int gameId;
	private final int id;
	private final String action;

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

	public RequestTargetsMessage(int gameId, int id, String action) {
		super("requestTargets");
		this.gameId = gameId;
		this.id = id;
		this.action = action;
	}
	
	public String getAction() {
		return action;
	}
	
	public int getGameId() {
		return gameId;
	}
	
	public int getId() {
		return id;
	}


}

@@ -78,16 +78,450 @@
 ssage;%0A%0A
+/**%0A * Request available targets for a specific action to be performed by an entity.%0A * %3Cp%3E%0A * These in-game messages request a list of al available targets for a given action and entity.%0A * The client uses this request in order to point out targets (hopefully with a visual aid such as highlighting targets)%0A * that an entity (such as a creature card, or a player) can perform an action on (for example attack or enchant a card.%0A */%0A
 public c
@@ -565,16 +565,17 @@
 ssage %7B%0A
+%09
 %0A%09privat
@@ -648,16 +648,49 @@
 ction;%0A%0A
+%09/** Constructor. (no params) */%0A
 %09public 
@@ -736,16 +736,248 @@
 %22%22);%0A%09%7D%0A
+%09%0A%09/**%0A%09 * Constructor.%0A%09 * @param gameId  The Id of this game currently being played%0A%09 * @param id  The Id of this entity which requests to perform an action%0A%09 * @param action  The name of this action requested to be performed%0A%09 */
 %0A%09public
@@ -1132,24 +1132,84 @@
 n;%0A%09%7D%0A%09%0A
+%09/** @return  The Id of this game currently being played */%0A
 %09public 
 String g
@@ -1204,24 +1204,21 @@
 lic 
-Str
 in
-g
+t
  get
-Action
+GameId
 () %7B
@@ -1227,28 +1227,101 @@
 %09return 
-action;%0A%09%7D%0A%09
+gameId;%0A%09%7D%0A%09/** @return  The Id of this entity which requests to perform an action */
 %0A%09public
@@ -1320,36 +1320,32 @@
 %0A%09public int get
-Game
 Id() %7B%0A%09%09return 
@@ -1344,28 +1344,89 @@
 %09return 
-gameI
+i
 d;%0A%09%7D%0A%09
+/** @return  The name of this action requested to be performed */
 %0A%09public
@@ -1422,33 +1422,40 @@
  */%0A%09public 
+Str
 in
-t
+g
  get
-Id
+Action
 () %7B%0A%09%09retur
@@ -1460,15 +1460,17 @@
 urn 
-id
+action
 ;%0A%09%7D%0A
-%0A%0A
 %7D%0A

Update RequestTargetsMessage.java