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

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

public class Record
extends CommandMessage

Representation of the GameBots2004 command REC. Server will start recording demo of current game. Command is confirmed by RECSTART message.


Field Summary
protected  String FileName
          Name of the saved demo file.
static String PROTOTYPE
          Example how the message looks like - used during parser tests.
 
Constructor Summary
Record()
          Creates new instance of command Record.
Record(Record original)
          Cloning constructor.
Record(String FileName)
          Creates new instance of command Record.
 
Method Summary
 String getFileName()
          Name of the saved demo file.
 Record setFileName(String FileName)
          Name of the saved demo file.
 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

FileName

protected String FileName
Name of the saved demo file. The file will be located on the server.

Constructor Detail

Record

public Record(String FileName)
Creates new instance of command Record. Server will start recording demo of current game. Command is confirmed by RECSTART message. Corresponding GameBots message for this command is REC.

Parameters:
FileName - Name of the saved demo file. The file will be located on the server.

Record

public Record()
Creates new instance of command Record. Server will start recording demo of current game. Command is confirmed by RECSTART message. Corresponding GameBots message for this command is REC.

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


Record

public Record(Record original)
Cloning constructor.

Parameters:
original -
Method Detail

getFileName

public String getFileName()
Name of the saved demo file. The file will be located on the server.


setFileName

public Record setFileName(String FileName)
Name of the saved demo file. The file will be located on the server.


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.