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

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

public class FastTrace
extends cz.cuni.amis.pogamut.base.communication.messages.CommandMessage

Representation of the GameBots2004 command FTRACE. Will send a ray from specified location to specified destination, responds with FTR message. FTRACE uses FastTrace function, which is faster then Trace function, but still rather slow.


Field Summary
protected  cz.cuni.amis.pogamut.base3d.worldview.object.Location From
          Origin point of the ray.
protected  String Id
          Message Id made up by you and echoed in response so you can match up response with query.
static String PROTOTYPE
          Example how the message looks like - used during parser tests.
protected  cz.cuni.amis.pogamut.base3d.worldview.object.Location To
          Target point of the ray.
 
Constructor Summary
FastTrace()
          Creates new instance of command FastTrace.
FastTrace(FastTrace original)
          Cloning constructor.
FastTrace(String Id, cz.cuni.amis.pogamut.base3d.worldview.object.Location From, cz.cuni.amis.pogamut.base3d.worldview.object.Location To)
          Creates new instance of command FastTrace.
 
Method Summary
 cz.cuni.amis.pogamut.base3d.worldview.object.Location getFrom()
          Origin point of the ray.
 String getId()
          Message Id made up by you and echoed in response so you can match up response with query.
 cz.cuni.amis.pogamut.base3d.worldview.object.Location getTo()
          Target point of the ray.
 FastTrace setFrom(cz.cuni.amis.pogamut.base3d.worldview.object.Location From)
          Origin point of the ray.
 FastTrace setId(String Id)
          Message Id made up by you and echoed in response so you can match up response with query.
 FastTrace setTo(cz.cuni.amis.pogamut.base3d.worldview.object.Location To)
          Target point of the ray.
 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

Id

protected String Id
Message Id made up by you and echoed in response so you can match up response with query.


From

protected cz.cuni.amis.pogamut.base3d.worldview.object.Location From
Origin point of the ray. If you won't support From attribute, current bot location will be taken as From.


To

protected cz.cuni.amis.pogamut.base3d.worldview.object.Location To
Target point of the ray.

Constructor Detail

FastTrace

public FastTrace(String Id,
                 cz.cuni.amis.pogamut.base3d.worldview.object.Location From,
                 cz.cuni.amis.pogamut.base3d.worldview.object.Location To)
Creates new instance of command FastTrace. Will send a ray from specified location to specified destination, responds with FTR message. FTRACE uses FastTrace function, which is faster then Trace function, but still rather slow. Corresponding GameBots message for this command is FTRACE.

Parameters:
Id - Message Id made up by you and echoed in response so you can match up response with query.
From - Origin point of the ray. If you won't support From attribute, current bot location will be taken as From.
To - Target point of the ray.

FastTrace

public FastTrace()
Creates new instance of command FastTrace. Will send a ray from specified location to specified destination, responds with FTR message. FTRACE uses FastTrace function, which is faster then Trace function, but still rather slow. Corresponding GameBots message for this command is FTRACE.

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


FastTrace

public FastTrace(FastTrace original)
Cloning constructor.

Parameters:
original -
Method Detail

getId

public String getId()
Message Id made up by you and echoed in response so you can match up response with query.


setId

public FastTrace setId(String Id)
Message Id made up by you and echoed in response so you can match up response with query.


getFrom

public cz.cuni.amis.pogamut.base3d.worldview.object.Location getFrom()
Origin point of the ray. If you won't support From attribute, current bot location will be taken as From.


setFrom

public FastTrace setFrom(cz.cuni.amis.pogamut.base3d.worldview.object.Location From)
Origin point of the ray. If you won't support From attribute, current bot location will be taken as From.


getTo

public cz.cuni.amis.pogamut.base3d.worldview.object.Location getTo()
Target point of the ray.


setTo

public FastTrace setTo(cz.cuni.amis.pogamut.base3d.worldview.object.Location To)
Target point of the ray.


toString

public String toString()
Overrides:
toString in class cz.cuni.amis.pogamut.base.communication.messages.CommandMessage

toHtmlString

public String toHtmlString()

toMessage

public String toMessage()


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