public class IncomingProjectileMessage extends IncomingProjectile implements IWorldObjectUpdatedEvent, ICompositeWorldObjectUpdatedEvent
| Modifier and Type | Class and Description |
|---|---|
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.
|
IncomingProjectile.IncomingProjectileUpdate, IncomingProjectile.ObjectDisappearedIWorldObjectUpdatedEvent.DestroyWorldObject| Modifier and Type | Field and Description |
|---|---|
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.
|
PROTOTYPE, SimTime| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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) |
createDisappearEvent, getSimTime, setSimTime, toJsonLiteralclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetSimTimeprotected ITeamId TeamId
protected UnrealId Id
protected boolean Id_Set
protected double ImpactTime
protected boolean ImpactTime_Set
protected javax.vecmath.Vector3d Direction
protected boolean Direction_Set
protected Location Location
protected boolean Location_Set
protected Velocity Velocity
protected boolean Velocity_Set
protected double Speed
protected boolean Speed_Set
protected Location Origin
protected boolean Origin_Set
protected double DamageRadius
protected boolean DamageRadius_Set
protected String Type
protected boolean Type_Set
protected boolean Visible
protected boolean Visible_Set
public 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)
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).public IncomingProjectileMessage(IncomingProjectileMessage original)
original - protected void setTeamId(ITeamId TeamId)
public ITeamId getTeamId()
public UnrealId getId()
IncomingProjectilegetId in interface IWorldObjectUpdatedEventgetId in interface IWorldObjectgetId in interface ICompositeWorldObjectUpdatedEventgetId in class IncomingProjectilepublic double getImpactTime()
IncomingProjectilegetImpactTime in class IncomingProjectilepublic javax.vecmath.Vector3d getDirection()
IncomingProjectilegetDirection in class IncomingProjectilepublic Location getLocation()
IncomingProjectilegetLocation in interface ILocatedgetLocation in class IncomingProjectilepublic Velocity getVelocity()
IncomingProjectilegetVelocity in class IncomingProjectilepublic double getSpeed()
IncomingProjectilegetSpeed in class IncomingProjectilepublic Location getOrigin()
IncomingProjectilegetOrigin in class IncomingProjectilepublic double getDamageRadius()
IncomingProjectilegetDamageRadius in class IncomingProjectilepublic String getType()
IncomingProjectilegetType in class IncomingProjectilepublic boolean isVisible()
IncomingProjectileisVisible in interface IViewableisVisible in class IncomingProjectilepublic IncomingProjectileLocal getLocal()
getLocal in interface ICompositeWorldObjectpublic IncomingProjectileShared getShared()
getShared in interface ICompositeWorldObjectpublic IncomingProjectileStatic getStatic()
getStatic in interface ICompositeWorldObjectpublic IWorldObjectUpdateResult<IWorldObject> update(IWorldObject object)
update in interface IWorldObjectUpdatedEventpublic ILocalWorldObjectUpdatedEvent getLocalEvent()
getLocalEvent in interface ICompositeWorldObjectUpdatedEventpublic ISharedWorldObjectUpdatedEvent getSharedEvent()
getSharedEvent in interface ICompositeWorldObjectUpdatedEventpublic IStaticWorldObjectUpdatedEvent getStaticEvent()
getStaticEvent in interface ICompositeWorldObjectUpdatedEventpublic String toString()
toString in class IncomingProjectilepublic String toHtmlString()
toHtmlString in class IncomingProjectileCopyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.