public class IncomingProjectile extends GBObjectUpdate implements IGBWorldObjectEvent, IWorldObject
IWorldObjectUpdatedEvent.DestroyWorldObject| Modifier and Type | Field and Description |
|---|---|
protected double |
DamageRadius
If the projectile has splash damage, how big it is – in ut
units.
|
protected javax.vecmath.Vector3d |
Direction
Which direction projectile is heading to -> orientation
vector.
|
protected UnrealId |
Id
Unique Id of the projectile.
|
protected Location |
Location
Current location of the projectile.
|
protected Location |
Origin
Possition of the origin, when combined with direction can
define the line of fire.
|
static String |
PROTOTYPE
Example how the message looks like - used during parser tests.
|
protected double |
Speed
Current speed of the projectile.
|
protected double |
Time
Estimated time till impact.
|
protected String |
Type
The class of the projectile (so you know what is flying
against you).
|
protected Velocity |
Velocity
Current velocity vector of the projectile.
|
| Constructor and Description |
|---|
IncomingProjectile()
Used by Yylex to create empty message then to fill it's protected fields (Yylex is in the same package).
|
IncomingProjectile(IncomingProjectile original)
Cloning constructor.
|
IncomingProjectile(UnrealId Id,
double Time,
javax.vecmath.Vector3d Direction,
Location Location,
Velocity Velocity,
double Speed,
Location Origin,
double DamageRadius,
String Type)
Creates new instance of command IncomingProjectile.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
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 |
getLastSeenTime() |
ILocalWorldObject |
getLocal() |
Location |
getLocation()
Current location of the projectile.
|
IWorldObject |
getObject()
Returns original object (if method update() has already been called, for bot-programmer that is always true
as the original object is updated and then the event is propagated).
|
Location |
getOrigin()
Possition of the origin, when combined with direction can
define the line of fire.
|
ISharedWorldObject |
getShared() |
long |
getSimTime() |
double |
getSpeed()
Current speed of the projectile.
|
IStaticWorldObject |
getStatic() |
double |
getTime()
Estimated time till impact.
|
String |
getType()
The class of the projectile (so you know what is flying
against you).
|
Velocity |
getVelocity()
Current velocity vector of the projectile.
|
int |
hashCode() |
protected void |
setTime(double time) |
String |
toHtmlString() |
String |
toString() |
IWorldObjectUpdateResult |
update(IWorldObject obj) |
toJsonLiteralpublic static final String PROTOTYPE
protected UnrealId Id
protected double Time
protected javax.vecmath.Vector3d Direction
protected Location Location
protected Velocity Velocity
protected double Speed
protected Location Origin
protected double DamageRadius
protected String Type
public IncomingProjectile(UnrealId Id, double Time, javax.vecmath.Vector3d Direction, Location Location, Velocity Velocity, double Speed, Location Origin, double DamageRadius, String Type)
Id - Unique Id of the projectile.Time - 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).public IncomingProjectile(IncomingProjectile original)
public IncomingProjectile()
public UnrealId getId()
getId in interface IWorldObjectUpdatedEventgetId in interface IWorldObjectpublic double getTime()
public javax.vecmath.Vector3d getDirection()
public Location getLocation()
public Velocity getVelocity()
public double getSpeed()
public Location getOrigin()
public double getDamageRadius()
public String getType()
protected void setTime(double time)
public double getLastSeenTime()
public ILocalWorldObject getLocal()
public ISharedWorldObject getShared()
public IStaticWorldObject getStatic()
public long getSimTime()
getSimTime in interface IWorldChangeEventgetSimTime in interface IWorldObjectpublic IWorldObjectUpdateResult update(IWorldObject obj)
update in interface IWorldObjectUpdatedEventpublic IWorldObject getObject()
public String toString()
toString in class InfoMessagepublic String toHtmlString()
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.