cz.cuni.amis.pogamut.ut2004.communication.messages.gbcommands
Class ShowAction

Package class diagram package ShowAction
java.lang.Object
  extended by cz.cuni.amis.pogamut.base.communication.messages.CommandMessage
      extended by cz.cuni.amis.pogamut.ut2004.communication.messages.gbcommands.ShowAction

public class ShowAction
extends CommandMessage

Representation of the GameBots2004 command SHACT. Show current action the player is performing.


Field Summary
protected  String Action
          The action that should be shown.
protected  Boolean Completed
          Whether the current action is completed or not.
static String PROTOTYPE
          Example how the message looks like - used during parser tests.
 
Constructor Summary
ShowAction()
          Creates new instance of command ShowAction.
ShowAction(ShowAction original)
          Cloning constructor.
ShowAction(String Action, Boolean Completed)
          Creates new instance of command ShowAction.
 
Method Summary
 String getAction()
          The action that should be shown.
 Boolean isCompleted()
          Whether the current action is completed or not.
 ShowAction setAction(String Action)
          The action that should be shown.
 ShowAction setCompleted(Boolean Completed)
          Whether the current action is completed or not.
 String toHtmlString()
           
 String toMessage()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PROTOTYPE

public static final String PROTOTYPE
Example how the message looks like - used during parser tests.

See Also:
Constant Field Values

Action

protected String Action
The action that should be shown.


Completed

protected Boolean Completed
Whether the current action is completed or not.

Constructor Detail

ShowAction

public ShowAction(String Action,
                  Boolean Completed)
Creates new instance of command ShowAction. Show current action the player is performing. Corresponding GameBots message for this command is SHACT.

Parameters:
Action - The action that should be shown.
Completed - Whether the current action is completed or not.

ShowAction

public ShowAction()
Creates new instance of command ShowAction. Show current action the player is performing. Corresponding GameBots message for this command is SHACT.

WARNING: this is empty-command constructor, you have to use setters to fill it up with data that should be sent to GameBots2004!


ShowAction

public ShowAction(ShowAction original)
Cloning constructor.

Parameters:
original -
Method Detail

getAction

public String getAction()
The action that should be shown.


setAction

public ShowAction setAction(String Action)
The action that should be shown.


isCompleted

public Boolean isCompleted()
Whether the current action is completed or not.


setCompleted

public ShowAction setCompleted(Boolean Completed)
Whether the current action is completed or not.


toString

public String toString()
Overrides:
toString in class CommandMessage

toHtmlString

public String toHtmlString()

toMessage

public String toMessage()


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