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

Package class diagram package Landed
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.Landed
All Implemented Interfaces:
IWorldChangeEvent, IWorldEventWrapper, IWorldEvent, IGBWorldEvent, cz.cuni.amis.utils.listener.Event

public class Landed
extends GBEvent
implements IWorldEvent, IWorldChangeEvent

Asynchronous message. Sent when the bot lands on the ground after falling. Received also after respawn. Corresponding GameBots message is LAND.


Field Summary
protected  javax.vecmath.Vector3d HitNormal
          Normal of the plane we have landed on.
static String PROTOTYPE
          Example how the message looks like - used during parser tests.
 
Constructor Summary
Landed()
          Used by Yylex to create empty message then to fill it's protected fields (Yylex is in the same package).
Landed(Landed original)
          Cloning constructor.
Landed(javax.vecmath.Vector3d HitNormal)
          Creates new instance of command Landed.
 
Method Summary
 javax.vecmath.Vector3d getHitNormal()
          Normal of the plane we have landed on.
 long getSimTime()
           
 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

HitNormal

protected javax.vecmath.Vector3d HitNormal
Normal of the plane we have landed on.

Constructor Detail

Landed

public Landed(javax.vecmath.Vector3d HitNormal)
Creates new instance of command Landed. Asynchronous message. Sent when the bot lands on the ground after falling. Received also after respawn. Corresponding GameBots message for this command is .

Parameters:
HitNormal - Normal of the plane we have landed on.

Landed

public Landed(Landed original)
Cloning constructor.


Landed

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

Method Detail

getHitNormal

public javax.vecmath.Vector3d getHitNormal()
Normal of the plane we have landed on.


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.