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

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

public class Bumped
extends GBEvent
implements IWorldEvent, IWorldChangeEvent

Asynchronous message. Bot bumped into another actor. Corresponding GameBots message is BMP.


Field Summary
protected  UnrealId Id
          Unique Id of the actor we have bumped to (actors include other players or bots and other physical objects that can block your path).
protected  Location Location
          Location of thing you've rammed into.
static String PROTOTYPE
          Example how the message looks like - used during parser tests.
 
Constructor Summary
Bumped()
          Used by Yylex to create empty message then to fill it's protected fields (Yylex is in the same package).
Bumped(Bumped original)
          Cloning constructor.
Bumped(UnrealId Id, Location Location)
          Creates new instance of command Bumped.
 
Method Summary
 UnrealId getId()
          Unique Id of the actor we have bumped to (actors include other players or bots and other physical objects that can block your path).
 Location getLocation()
          Location of thing you've rammed into.
 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

Id

protected UnrealId Id
Unique Id of the actor we have bumped to (actors include other players or bots and other physical objects that can block your path).


Location

protected Location Location
Location of thing you've rammed into.

Constructor Detail

Bumped

public Bumped(UnrealId Id,
              Location Location)
Creates new instance of command Bumped. Asynchronous message. Bot bumped into another actor. Corresponding GameBots message for this command is .

Parameters:
Id - Unique Id of the actor we have bumped to (actors include other players or bots and other physical objects that can block your path).
Location - Location of thing you've rammed into.

Bumped

public Bumped(Bumped original)
Cloning constructor.


Bumped

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

Method Detail

getId

public UnrealId getId()
Unique Id of the actor we have bumped to (actors include other players or bots and other physical objects that can block your path).


getLocation

public Location getLocation()
Location of thing you've rammed into.


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.