|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cz.cuni.amis.pogamut.base.communication.messages.CommandMessage cz.cuni.amis.pogamut.defcon.communication.messages.commands.DefConCommand cz.cuni.amis.pogamut.defcon.communication.messages.commands.RequestCeaseFire
public class RequestCeaseFire
Requests a cease fire from a player.
Constructor Summary | |
---|---|
RequestCeaseFire(int teamId)
Creates new instance of command RequestCeaseFire. |
|
RequestCeaseFire(RequestCeaseFire original)
Cloning constructor... |
Method Summary | |
---|---|
int |
getTeamId()
Id of team to request a cease fire from. |
void |
perform()
Performs the command - to be used only by the DefConCommandExecutor . |
RequestCeaseFire |
setTeamId(int teamId)
Id of team to request a cease fire from. |
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 RequestCeaseFire(int teamId)
teamId
- Id of team to request a cease fire from.public RequestCeaseFire(RequestCeaseFire original)
original
- Method Detail |
---|
public int getTeamId()
public RequestCeaseFire setTeamId(int teamId)
teamId
-
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 |