cz.cuni.amis.pogamut.udk.communication.messages.gbcommands
Class SetCrouch

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

public class SetCrouch
extends CommandMessage

Will crouch/uncrouch the bot. If crouched you cannot jump. If killed, this will be reset. Corresponding GameBots command is SETCROUCH.


Field Summary
protected  boolean Crouch
          True or false to crouch or unrouch.
 
Constructor Summary
SetCrouch()
          Creates new instance of command SetCrouch.
SetCrouch(boolean Crouch)
          Creates new instance of command SetCrouch.
SetCrouch(SetCrouch original)
          Cloning constructor.
 
Method Summary
 boolean isCrouch()
          True or false to crouch or unrouch.
 SetCrouch setCrouch(boolean Crouch)
          True or false to crouch or unrouch.
 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

Crouch

protected boolean Crouch
True or false to crouch or unrouch.

Constructor Detail

SetCrouch

public SetCrouch(boolean Crouch)
Creates new instance of command SetCrouch. Will crouch/uncrouch the bot. If crouched you cannot jump. If killed, this will be reset. Corresponding GameBots message for this command is SETCROUCH.

Parameters:
Crouch - True or false to crouch or unrouch.

SetCrouch

public SetCrouch()
Creates new instance of command SetCrouch. Will crouch/uncrouch the bot. If crouched you cannot jump. If killed, this will be reset. Corresponding GameBots message for this command is SETCROUCH.

WARNING: this is empty-command constructor, you have to use setters to fill it up!


SetCrouch

public SetCrouch(SetCrouch original)
Cloning constructor.

Method Detail

isCrouch

public boolean isCrouch()
True or false to crouch or unrouch.


setCrouch

public SetCrouch setCrouch(boolean Crouch)
True or false to crouch or unrouch.


toString

public String toString()
Overrides:
toString in class CommandMessage

toHtmlString

public String toHtmlString()

toMessage

public String toMessage()


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