cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages
Class IncomingProjectileMessage

Package class diagram package IncomingProjectileMessage
java.lang.Object
  extended by cz.cuni.amis.pogamut.base.communication.messages.InfoMessage
      extended by cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.IncomingProjectile
          extended by cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.IncomingProjectileMessage
All Implemented Interfaces:
IWorldChangeEvent, IWorldObjectUpdatedEvent, IWorldEvent, IWorldObject, ILocated, IViewable, ICompositeWorldObjectUpdatedEvent, ICompositeWorldObject, IGBViewable, cz.cuni.amis.utils.listener.Event

public class IncomingProjectileMessage
extends IncomingProjectile
implements IWorldObjectUpdatedEvent, ICompositeWorldObjectUpdatedEvent

Implementation of the GameBots2004 message PRJ contains also its Local/Shared/Static subpart class definitions..

Complete message documentation: Both asynchronous and synchronous message. Incoming projectile that we can see.


Nested Class Summary
 class IncomingProjectileMessage.IncomingProjectileLocalMessage
          Implementation of the local part of the GameBots2004 message PRJ, used to facade PRJMessage.
 class IncomingProjectileMessage.IncomingProjectileSharedMessage
          Implementation of the shared part of the GameBots2004 message PRJ, used to facade PRJMessage.
 class IncomingProjectileMessage.IncomingProjectileStaticMessage
          Implementation of the static part of the GameBots2004 message PRJ, used to facade PRJMessage.
 
Nested classes/interfaces inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.IncomingProjectile
IncomingProjectile.IncomingProjectileUpdate, IncomingProjectile.ObjectDisappeared
 
Nested classes/interfaces inherited from interface cz.cuni.amis.pogamut.base.communication.translator.event.IWorldObjectUpdatedEvent
IWorldObjectUpdatedEvent.DestroyWorldObject
 
Field Summary
protected  double DamageRadius
          If the projectile has splash damage, how big it is – in ut units.
protected  boolean DamageRadius_Set
          Whether property 'DamageRadius' was received from GB2004.
protected  javax.vecmath.Vector3d Direction
          Which direction projectile is heading to -> orientation vector.
protected  boolean Direction_Set
          Whether property 'Direction' was received from GB2004.
protected  UnrealId Id
          Unique Id of the projectile.
protected  boolean Id_Set
          Whether property 'Id' was received from GB2004.
protected  double ImpactTime
          Estimated time till impact.
protected  boolean ImpactTime_Set
          Whether property 'ImpactTime' was received from GB2004.
protected  Location Location
          Current location of the projectile.
protected  boolean Location_Set
          Whether property 'Location' was received from GB2004.
protected  Location Origin
          Possition of the origin, when combined with direction can define the line of fire.
protected  boolean Origin_Set
          Whether property 'Origin' was received from GB2004.
protected  double Speed
          Current speed of the projectile.
protected  boolean Speed_Set
          Whether property 'Speed' was received from GB2004.
protected  ITeamId TeamId
           
protected  String Type
          The class of the projectile (so you know what is flying against you).
protected  boolean Type_Set
          Whether property 'Type' was received from GB2004.
protected  Velocity Velocity
          Current velocity vector of the projectile.
protected  boolean Velocity_Set
          Whether property 'Velocity' was received from GB2004.
protected  boolean Visible
          The class of the projectile (so you know what is flying against you).
protected  boolean Visible_Set
          Whether property 'Visible' was received from GB2004.
 
Fields inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.IncomingProjectile
PROTOTYPE, SimTime
 
Constructor Summary
IncomingProjectileMessage()
          Parameter-less contructor for the message.
IncomingProjectileMessage(IncomingProjectileMessage original)
          Cloning constructor from the full message.
IncomingProjectileMessage(UnrealId Id, double ImpactTime, javax.vecmath.Vector3d Direction, Location Location, Velocity Velocity, double Speed, Location Origin, double DamageRadius, String Type, boolean Visible)
          Creates new instance of the message IncomingProjectile.
 
Method Summary
 double getDamageRadius()
          If the projectile has splash damage, how big it is – in ut units.
 javax.vecmath.Vector3d getDirection()
          Which direction projectile is heading to -> orientation vector.
 UnrealId getId()
          Unique Id of the projectile.
 double getImpactTime()
          Estimated time till impact.
 IncomingProjectileLocal getLocal()
           
 ILocalWorldObjectUpdatedEvent getLocalEvent()
           
 Location getLocation()
          Current location of the projectile.
 Location getOrigin()
          Possition of the origin, when combined with direction can define the line of fire.
 IncomingProjectileShared getShared()
           
 ISharedWorldObjectUpdatedEvent getSharedEvent()
           
 double getSpeed()
          Current speed of the projectile.
 IncomingProjectileStatic getStatic()
           
 IStaticWorldObjectUpdatedEvent getStaticEvent()
           
 ITeamId getTeamId()
           
 String getType()
          The class of the projectile (so you know what is flying against you).
 Velocity getVelocity()
          Current velocity vector of the projectile.
 boolean isVisible()
          The class of the projectile (so you know what is flying against you).
protected  void setTeamId(ITeamId TeamId)
          Used by Yylex to slip corretn TeamId.
 String toHtmlString()
           
 String toString()
           
 IWorldObjectUpdateResult<IWorldObject> update(IWorldObject object)
           
 
Methods inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.IncomingProjectile
createDisappearEvent, getSimTime, setSimTime, toJsonLiteral
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface cz.cuni.amis.pogamut.base.communication.translator.event.IWorldChangeEvent
getSimTime
 

Field Detail

TeamId

protected ITeamId TeamId

Id

protected UnrealId Id
Unique Id of the projectile.


Id_Set

protected boolean Id_Set
Whether property 'Id' was received from GB2004.


ImpactTime

protected double ImpactTime
Estimated time till impact.


ImpactTime_Set

protected boolean ImpactTime_Set
Whether property 'ImpactTime' was received from GB2004.


Direction

protected javax.vecmath.Vector3d Direction
Which direction projectile is heading to -> orientation vector.


Direction_Set

protected boolean Direction_Set
Whether property 'Direction' was received from GB2004.


Location

protected Location Location
Current location of the projectile.


Location_Set

protected boolean Location_Set
Whether property 'Location' was received from GB2004.


Velocity

protected Velocity Velocity
Current velocity vector of the projectile.


Velocity_Set

protected boolean Velocity_Set
Whether property 'Velocity' was received from GB2004.


Speed

protected double Speed
Current speed of the projectile.


Speed_Set

protected boolean Speed_Set
Whether property 'Speed' was received from GB2004.


Origin

protected Location Origin
Possition of the origin, when combined with direction can define the line of fire.


Origin_Set

protected boolean Origin_Set
Whether property 'Origin' was received from GB2004.


DamageRadius

protected double DamageRadius
If the projectile has splash damage, how big it is – in ut units.


DamageRadius_Set

protected boolean DamageRadius_Set
Whether property 'DamageRadius' was received from GB2004.


Type

protected String Type
The class of the projectile (so you know what is flying against you).


Type_Set

protected boolean Type_Set
Whether property 'Type' was received from GB2004.


Visible

protected boolean Visible
The class of the projectile (so you know what is flying against you).


Visible_Set

protected boolean Visible_Set
Whether property 'Visible' was received from GB2004.

Constructor Detail

IncomingProjectileMessage

public IncomingProjectileMessage()
Parameter-less contructor for the message.


IncomingProjectileMessage

public IncomingProjectileMessage(UnrealId Id,
                                 double ImpactTime,
                                 javax.vecmath.Vector3d Direction,
                                 Location Location,
                                 Velocity Velocity,
                                 double Speed,
                                 Location Origin,
                                 double DamageRadius,
                                 String Type,
                                 boolean Visible)
Creates new instance of the message IncomingProjectile. Both asynchronous and synchronous message. Incoming projectile that we can see. Corresponding GameBots message is PRJ.

Parameters:
Id - Unique Id of the projectile.
ImpactTime - Estimated time till impact.
Direction - Which direction projectile is heading to -> orientation vector.
Location - Current location of the projectile.
Velocity - Current velocity vector of the projectile.
Speed - Current speed of the projectile.
Origin - Possition of the origin, when combined with direction can define the line of fire.
DamageRadius - If the projectile has splash damage, how big it is – in ut units.
Type - The class of the projectile (so you know what is flying against you).
Visible - The class of the projectile (so you know what is flying against you).

IncomingProjectileMessage

public IncomingProjectileMessage(IncomingProjectileMessage original)
Cloning constructor from the full message.

Parameters:
original -
Method Detail

setTeamId

protected void setTeamId(ITeamId TeamId)
Used by Yylex to slip corretn TeamId.


getTeamId

public ITeamId getTeamId()

getId

public UnrealId getId()
Description copied from class: IncomingProjectile
Unique Id of the projectile.

Specified by:
getId in interface IWorldObjectUpdatedEvent
Specified by:
getId in interface IWorldObject
Specified by:
getId in interface ICompositeWorldObjectUpdatedEvent
Specified by:
getId in class IncomingProjectile

getImpactTime

public double getImpactTime()
Description copied from class: IncomingProjectile
Estimated time till impact.

Specified by:
getImpactTime in class IncomingProjectile

getDirection

public javax.vecmath.Vector3d getDirection()
Description copied from class: IncomingProjectile
Which direction projectile is heading to -> orientation vector.

Specified by:
getDirection in class IncomingProjectile

getLocation

public Location getLocation()
Description copied from class: IncomingProjectile
Current location of the projectile.

Specified by:
getLocation in interface ILocated
Specified by:
getLocation in class IncomingProjectile

getVelocity

public Velocity getVelocity()
Description copied from class: IncomingProjectile
Current velocity vector of the projectile.

Specified by:
getVelocity in class IncomingProjectile

getSpeed

public double getSpeed()
Description copied from class: IncomingProjectile
Current speed of the projectile.

Specified by:
getSpeed in class IncomingProjectile

getOrigin

public Location getOrigin()
Description copied from class: IncomingProjectile
Possition of the origin, when combined with direction can define the line of fire.

Specified by:
getOrigin in class IncomingProjectile

getDamageRadius

public double getDamageRadius()
Description copied from class: IncomingProjectile
If the projectile has splash damage, how big it is – in ut units.

Specified by:
getDamageRadius in class IncomingProjectile

getType

public String getType()
Description copied from class: IncomingProjectile
The class of the projectile (so you know what is flying against you).

Specified by:
getType in class IncomingProjectile

isVisible

public boolean isVisible()
Description copied from class: IncomingProjectile
The class of the projectile (so you know what is flying against you).

Specified by:
isVisible in interface IViewable
Specified by:
isVisible in class IncomingProjectile

getLocal

public IncomingProjectileLocal getLocal()
Specified by:
getLocal in interface ICompositeWorldObject

getShared

public IncomingProjectileShared getShared()
Specified by:
getShared in interface ICompositeWorldObject

getStatic

public IncomingProjectileStatic getStatic()
Specified by:
getStatic in interface ICompositeWorldObject

update

public IWorldObjectUpdateResult<IWorldObject> update(IWorldObject object)
Specified by:
update in interface IWorldObjectUpdatedEvent

getLocalEvent

public ILocalWorldObjectUpdatedEvent getLocalEvent()
Specified by:
getLocalEvent in interface ICompositeWorldObjectUpdatedEvent

getSharedEvent

public ISharedWorldObjectUpdatedEvent getSharedEvent()
Specified by:
getSharedEvent in interface ICompositeWorldObjectUpdatedEvent

getStaticEvent

public IStaticWorldObjectUpdatedEvent getStaticEvent()
Specified by:
getStaticEvent in interface ICompositeWorldObjectUpdatedEvent

toString

public String toString()
Overrides:
toString in class IncomingProjectile

toHtmlString

public String toHtmlString()
Overrides:
toHtmlString in class IncomingProjectile


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