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

java.lang.Object
  extended by cz.cuni.amis.pogamut.base.communication.messages.CommandMessage
      extended by cz.cuni.amis.pogamut.ut2004.communication.messages.gbcommands.PasswordReply

public class PasswordReply
extends CommandMessage

Representation of the GameBots2004 command PASSWORD. Send password to the server. For more information see command SETPASS.


Field Summary
protected  java.lang.String Password
          The password.
static java.lang.String PROTOTYPE
          Example how the message looks like - used during parser tests.
 
Constructor Summary
PasswordReply()
          Creates new instance of command PasswordReply.
PasswordReply(PasswordReply original)
          Cloning constructor.
PasswordReply(java.lang.String Password)
          Creates new instance of command PasswordReply.
 
Method Summary
 java.lang.String getPassword()
          The password.
 PasswordReply setPassword(java.lang.String Password)
          The password.
 java.lang.String toHtmlString()
           
 java.lang.String toMessage()
           
 java.lang.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 java.lang.String PROTOTYPE
Example how the message looks like - used during parser tests.

See Also:
Constant Field Values

Password

protected java.lang.String Password
The password.

Constructor Detail

PasswordReply

public PasswordReply(java.lang.String Password)
Creates new instance of command PasswordReply. Send password to the server. For more information see command SETPASS. Corresponding GameBots message for this command is PASSWORD.

Parameters:
Password - The password.

PasswordReply

public PasswordReply()
Creates new instance of command PasswordReply. Send password to the server. For more information see command SETPASS. Corresponding GameBots message for this command is PASSWORD.

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


PasswordReply

public PasswordReply(PasswordReply original)
Cloning constructor.

Parameters:
original -
Method Detail

getPassword

public java.lang.String getPassword()
The password.


setPassword

public PasswordReply setPassword(java.lang.String Password)
The password.


toString

public java.lang.String toString()
Overrides:
toString in class CommandMessage

toHtmlString

public java.lang.String toHtmlString()

toMessage

public java.lang.String toMessage()