cz.cuni.amis.pogamut.udk.communication.messages.gbinfomessages
Class FastTraceResponse

Package class diagram package FastTraceResponse
java.lang.Object
  extended by cz.cuni.amis.pogamut.base.communication.messages.InfoMessage
      extended by cz.cuni.amis.pogamut.udk.communication.messages.GBEvent
          extended by cz.cuni.amis.pogamut.udk.communication.messages.gbinfomessages.FastTraceResponse
All Implemented Interfaces:
IWorldChangeEvent, IWorldEventWrapper, IWorldEvent, IGBWorldEvent, cz.cuni.amis.utils.listener.Event

public class FastTraceResponse
extends GBEvent
implements IWorldEvent, IWorldChangeEvent

Asynchronous message. Response of the FASTTRACE command. Note that trace commands are computationally expensive. Corresponding GameBots message is FTR.


Field Summary
protected  Location From
          Location from which the ray is emitted.
protected  String Id
          An Id matching the one sent by client.
static String PROTOTYPE
          Example how the message looks like - used during parser tests.
protected  boolean Result
          True if it hit something, false if not.
protected  Location To
          Location to which the ray is sent.
 
Constructor Summary
FastTraceResponse()
          Used by Yylex to create empty message then to fill it's protected fields (Yylex is in the same package).
FastTraceResponse(FastTraceResponse original)
          Cloning constructor.
FastTraceResponse(String Id, Location From, Location To, boolean Result)
          Creates new instance of command FastTraceResponse.
 
Method Summary
 Location getFrom()
          Location from which the ray is emitted.
 String getId()
          An Id matching the one sent by client.
 long getSimTime()
           
 Location getTo()
          Location to which the ray is sent.
 boolean isResult()
          True if it hit something, false if not.
 String toHtmlString()
           
 String toString()
           
 
Methods inherited from class cz.cuni.amis.pogamut.udk.communication.messages.GBEvent
getWorldEvent
 
Methods inherited from class cz.cuni.amis.pogamut.base.communication.messages.InfoMessage
toJsonLiteral
 
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
An Id matching the one sent by client. Allows bot to match answer with right query.


From

protected Location From
Location from which the ray is emitted.


To

protected Location To
Location to which the ray is sent.


Result

protected boolean Result
True if it hit something, false if not.

Constructor Detail

FastTraceResponse

public FastTraceResponse(String Id,
                         Location From,
                         Location To,
                         boolean Result)
Creates new instance of command FastTraceResponse. Asynchronous message. Response of the FASTTRACE command. Note that trace commands are computationally expensive. Corresponding GameBots message for this command is .

Parameters:
Id - An Id matching the one sent by client. Allows bot to match answer with right query.
From - Location from which the ray is emitted.
To - Location to which the ray is sent.
Result - True if it hit something, false if not.

FastTraceResponse

public FastTraceResponse(FastTraceResponse original)
Cloning constructor.


FastTraceResponse

public FastTraceResponse()
Used by Yylex to create empty message then to fill it's protected fields (Yylex is in the same package).

Method Detail

getId

public String getId()
An Id matching the one sent by client. Allows bot to match answer with right query.


getFrom

public Location getFrom()
Location from which the ray is emitted.


getTo

public Location getTo()
Location to which the ray is sent.


isResult

public boolean isResult()
True if it hit something, false if not.


getSimTime

public long getSimTime()
Specified by:
getSimTime in interface IWorldChangeEvent
Specified by:
getSimTime in interface IWorldEvent
Overrides:
getSimTime in class GBEvent

toString

public String toString()
Overrides:
toString in class InfoMessage

toHtmlString

public String toHtmlString()


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