|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcz.cuni.amis.pogamut.base.communication.messages.CommandMessage
cz.cuni.amis.pogamut.defcon.communication.messages.commands.DefConCommand
cz.cuni.amis.pogamut.defcon.communication.messages.commands.SetActionTarget
public class SetActionTarget
Sets action target of a unit.
Constructor Summary | |
---|---|
SetActionTarget(int unitId,
int targetUnitId,
DefConLocation location)
Creates new instance of command SetActionTarget. |
|
SetActionTarget(SetActionTarget original)
Cloning constructor... |
Method Summary | |
---|---|
DefConLocation |
getLocation()
Attack target of the unit. |
int |
getTargetUnitId()
Target of the unit. |
int |
getUnitId()
Id of unit to set target of. |
void |
perform()
Performs the command - to be used only by the DefConCommandExecutor . |
SetActionTarget |
setLocation(DefConLocation location)
Attack target of the unit. |
SetActionTarget |
setTargetUnitId(int targetUnitId)
Target of the unit. |
SetActionTarget |
setUnitId(int unitId)
Id of unit to set target of. |
String |
toHtmlString()
Returns message in html format. |
String |
toString()
Returns human readable serialization of the message. |
Methods inherited from class cz.cuni.amis.pogamut.defcon.communication.messages.commands.DefConCommand |
---|
getStringizedFields, toMessage |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SetActionTarget(int unitId, int targetUnitId, DefConLocation location)
unitId
- Id of unit to set target of.targetUnitId
- Target of the unit.location
- Attack target of the unit.public SetActionTarget(SetActionTarget original)
original
- Method Detail |
---|
public int getUnitId()
public SetActionTarget setUnitId(int unitId)
unitId
-
public int getTargetUnitId()
public SetActionTarget setTargetUnitId(int targetUnitId)
targetUnitId
-
public DefConLocation getLocation()
public SetActionTarget setLocation(DefConLocation location)
location
-
public void perform()
DefConCommandExecutor
.
perform
in class DefConCommand
public String toString()
toString
in class CommandMessage
public String toHtmlString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |