cz.cuni.amis.pogamut.defcon.communication.messages.commands
Class RequestCeaseFire

Package class diagram package RequestCeaseFire
java.lang.Object
  extended by cz.cuni.amis.pogamut.base.communication.messages.CommandMessage
      extended by cz.cuni.amis.pogamut.defcon.communication.messages.commands.DefConCommand
          extended by cz.cuni.amis.pogamut.defcon.communication.messages.commands.RequestCeaseFire

public class RequestCeaseFire
extends DefConCommand

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

RequestCeaseFire

public RequestCeaseFire(int teamId)
Creates new instance of command RequestCeaseFire. Requests a cease fire from a player.

Parameters:
teamId - Id of team to request a cease fire from.

RequestCeaseFire

public RequestCeaseFire(RequestCeaseFire original)
Cloning constructor...

Parameters:
original -
Method Detail

getTeamId

public int getTeamId()
Id of team to request a cease fire from.

Returns:
int

setTeamId

public RequestCeaseFire setTeamId(int teamId)
Id of team to request a cease fire from.

Parameters:
teamId -
Returns:
this object, allows you to chain setters

perform

public void perform()
Performs the command - to be used only by the DefConCommandExecutor.

Specified by:
perform in class DefConCommand

toString

public String toString()
Returns human readable serialization of the message.

Overrides:
toString in class CommandMessage
Returns:
human readable string

toHtmlString

public String toHtmlString()
Returns message in html format.

Returns:
html message


Copyright © 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.