cz.cuni.amis.pogamut.ut3.communication.messages.gbcommands
Class Teleport

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

public class Teleport
extends CommandMessage

Representation of the GameBotsUT3 command TELEPORT. Use this to teleport the bot to another location.


Field Summary
protected  cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Id
          ID of the bot to be teleported
static String PROTOTYPE
          Example how the message looks like - used during parser tests.
protected  Location TargetLocation
          Where the bot teleports to.
protected  Rotation TargetRotation
          Rotation after teleportation.
 
Constructor Summary
Teleport()
          Creates new instance of command Teleport.
Teleport(Teleport original)
          Cloning constructor.
Teleport(cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Id, Location TargetLocation, Rotation TargetRotation)
          Creates new instance of command Teleport.
 
Method Summary
 cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId getId()
          ID of the bot to be teleported
 Location getTargetLocation()
          Where the bot teleports to.
 Rotation getTargetRotation()
          Rotation after teleportation.
 Teleport setId(cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Id)
          ID of the bot to be teleported
 Teleport setTargetLocation(Location TargetLocation)
          Where the bot teleports to.
 Teleport setTargetRotation(Rotation TargetRotation)
          Rotation after teleportation.
 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 cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Id
ID of the bot to be teleported


TargetLocation

protected Location TargetLocation
Where the bot teleports to.


TargetRotation

protected Rotation TargetRotation
Rotation after teleportation.

Constructor Detail

Teleport

public Teleport(cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Id,
                Location TargetLocation,
                Rotation TargetRotation)
Creates new instance of command Teleport. Use this to teleport the bot to another location. Corresponding GameBots message for this command is TELEPORT.

Parameters:
Id - ID of the bot to be teleported
TargetLocation - Where the bot teleports to.
TargetRotation - Rotation after teleportation.

Teleport

public Teleport()
Creates new instance of command Teleport. Use this to teleport the bot to another location. Corresponding GameBots message for this command is TELEPORT.

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


Teleport

public Teleport(Teleport original)
Cloning constructor.

Parameters:
original -
Method Detail

getId

public cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId getId()
ID of the bot to be teleported


setId

public Teleport setId(cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Id)
ID of the bot to be teleported


getTargetLocation

public Location getTargetLocation()
Where the bot teleports to.


setTargetLocation

public Teleport setTargetLocation(Location TargetLocation)
Where the bot teleports to.


getTargetRotation

public Rotation getTargetRotation()
Rotation after teleportation.


setTargetRotation

public Teleport setTargetRotation(Rotation TargetRotation)
Rotation after teleportation.


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.