|
||||||||||
| 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.SetMovementTarget
public class SetMovementTarget
Sets movement target of the unit.
| Constructor Summary | |
|---|---|
SetMovementTarget(int unitId,
DefConLocation location)
Creates new instance of command SetMovementTarget. |
|
SetMovementTarget(SetMovementTarget original)
Cloning constructor... |
|
| Method Summary | |
|---|---|
DefConLocation |
getLocation()
Movement target. |
int |
getUnitId()
Id of unit to set target of. |
void |
perform()
Performs the command - to be used only by the DefConCommandExecutor. |
SetMovementTarget |
setLocation(DefConLocation location)
Movement target. |
SetMovementTarget |
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 SetMovementTarget(int unitId,
DefConLocation location)
unitId - Id of unit to set target of.location - Movement target.public SetMovementTarget(SetMovementTarget original)
original - | Method Detail |
|---|
public int getUnitId()
public SetMovementTarget setUnitId(int unitId)
unitId -
public DefConLocation getLocation()
public SetMovementTarget setLocation(DefConLocation location)
location -
public void perform()
DefConCommandExecutor.
perform in class DefConCommandpublic String toString()
toString in class CommandMessagepublic String toHtmlString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||