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

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

public class GetPath
extends CommandMessage

Representation of the GameBots2004 command GETPATH. Get a path to a specified location or a navigation point. An ordered list of path nodes will be returned to you by IPTH messages.


Field Summary
protected  java.lang.String Id
          Message Id made up by you and echoed in response so you can match up response with query.
protected  Location Location
          Location you want to go to.
static java.lang.String PROTOTYPE
          Example how the message looks like - used during parser tests.
protected  UnrealId Target
          UnrealId of navigation point you want to find path to.
 
Constructor Summary
GetPath()
          Creates new instance of command GetPath.
GetPath(GetPath original)
          Cloning constructor.
GetPath(java.lang.String Id, UnrealId Target, Location Location)
          Creates new instance of command GetPath.
 
Method Summary
 java.lang.String getId()
          Message Id made up by you and echoed in response so you can match up response with query.
 Location getLocation()
          Location you want to go to.
 UnrealId getTarget()
          UnrealId of navigation point you want to find path to.
 GetPath setId(java.lang.String Id)
          Message Id made up by you and echoed in response so you can match up response with query.
 GetPath setLocation(Location Location)
          Location you want to go to.
 GetPath setTarget(UnrealId Target)
          UnrealId of navigation point you want to find path to.
 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

Id

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


Target

protected UnrealId Target
UnrealId of navigation point you want to find path to. Will be parsed BEFORE Location attribute. If supported, Location attribute won't be parsed. If the point does not exists, blank path will be returned.


Location

protected Location Location
Location you want to go to.

Constructor Detail

GetPath

public GetPath(java.lang.String Id,
               UnrealId Target,
               Location Location)
Creates new instance of command GetPath. Get a path to a specified location or a navigation point. An ordered list of path nodes will be returned to you by IPTH messages. Corresponding GameBots message for this command is GETPATH.

Parameters:
Id - Message Id made up by you and echoed in response so you can match up response with query.
Target - UnrealId of navigation point you want to find path to. Will be parsed BEFORE Location attribute. If supported, Location attribute won't be parsed. If the point does not exists, blank path will be returned.
Location - Location you want to go to.

GetPath

public GetPath()
Creates new instance of command GetPath. Get a path to a specified location or a navigation point. An ordered list of path nodes will be returned to you by IPTH messages. Corresponding GameBots message for this command is GETPATH.

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


GetPath

public GetPath(GetPath original)
Cloning constructor.

Parameters:
original -
Method Detail

getId

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


setId

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


getTarget

public UnrealId getTarget()
UnrealId of navigation point you want to find path to. Will be parsed BEFORE Location attribute. If supported, Location attribute won't be parsed. If the point does not exists, blank path will be returned.


setTarget

public GetPath setTarget(UnrealId Target)
UnrealId of navigation point you want to find path to. Will be parsed BEFORE Location attribute. If supported, Location attribute won't be parsed. If the point does not exists, blank path will be returned.


getLocation

public Location getLocation()
Location you want to go to.


setLocation

public GetPath setLocation(Location Location)
Location you want to go to.


toString

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

toHtmlString

public java.lang.String toHtmlString()

toMessage

public java.lang.String toMessage()