|
||||||||||
| 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.SetState
public class SetState
Changes state of a unit.
| Constructor Summary | |
|---|---|
SetState(int unitId,
int stateId)
Creates new instance of command SetState. |
|
SetState(SetState original)
Cloning constructor... |
|
| Method Summary | |
|---|---|
int |
getStateId()
Id of the target state. |
int |
getUnitId()
Id of unit to change state of. |
void |
perform()
Performs the command - to be used only by the DefConCommandExecutor. |
SetState |
setStateId(int stateId)
Id of the target state. |
SetState |
setUnitId(int unitId)
Id of unit to change state 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 SetState(int unitId,
int stateId)
unitId - Id of unit to change state of.stateId - Id of the target state.public SetState(SetState original)
original - | Method Detail |
|---|
public int getUnitId()
public SetState setUnitId(int unitId)
unitId -
public int getStateId()
public SetState setStateId(int stateId)
stateId -
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 | |||||||||