public class IncomingProjectileSharedImpl extends IncomingProjectileShared
Modifier and Type | Class and Description |
---|---|
static class |
IncomingProjectileSharedImpl.IncomingProjectileSharedUpdate |
Modifier and Type | Field and Description |
---|---|
protected UnrealId |
Id
Unique Id of the projectile.
|
protected DoubleProperty |
myDamageRadius
If the projectile has splash damage, how big it is – in ut
units.
|
protected Vector3dProperty |
myDirection
Which direction projectile is heading to -> orientation
vector.
|
protected LocationProperty |
myLocation
Current location of the projectile.
|
protected LocationProperty |
myOrigin
Possition of the origin, when combined with direction can
define the line of fire.
|
protected DoubleProperty |
mySpeed
Current speed of the projectile.
|
protected StringProperty |
myType
The class of the projectile (so you know what is flying
against you).
|
protected VelocityProperty |
myVelocity
Current velocity vector of the projectile.
|
protected HashMap<PropertyId,ISharedProperty> |
propertyMap |
DamageRadiusPropertyToken, DirectionPropertyToken, LocationPropertyToken, OriginPropertyToken, SharedPropertyTokens, SimTime, SpeedPropertyToken, TypePropertyToken, VelocityPropertyToken
Constructor and Description |
---|
IncomingProjectileSharedImpl(IncomingProjectileSharedImpl source) |
IncomingProjectileSharedImpl(WorldObjectId objectId,
Collection<ISharedProperty> properties) |
Modifier and Type | Method and Description |
---|---|
IncomingProjectileSharedImpl |
clone() |
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.
|
Location |
getLocation()
Current location of the projectile.
|
Location |
getOrigin()
Possition of the origin, when combined with direction can
define the line of fire.
|
Map<PropertyId,ISharedProperty> |
getProperties() |
ISharedProperty |
getProperty(PropertyId id) |
double |
getSpeed()
Current speed of the projectile.
|
String |
getType()
The class of the projectile (so you know what is flying
against you).
|
Velocity |
getVelocity()
Current velocity vector of the projectile.
|
void |
setSimTime(long SimTime)
Used by Yylex to slip correct time of the object or programmatically.
|
String |
toHtmlString() |
String |
toString() |
getCompositeClass, getSimTime
toJsonLiteral
protected HashMap<PropertyId,ISharedProperty> propertyMap
protected UnrealId Id
protected Vector3dProperty myDirection
protected LocationProperty myLocation
protected VelocityProperty myVelocity
protected DoubleProperty mySpeed
protected LocationProperty myOrigin
protected DoubleProperty myDamageRadius
protected StringProperty myType
public IncomingProjectileSharedImpl(IncomingProjectileSharedImpl source)
public IncomingProjectileSharedImpl(WorldObjectId objectId, Collection<ISharedProperty> properties)
public void setSimTime(long SimTime)
IncomingProjectileShared
setSimTime
in class IncomingProjectileShared
public IncomingProjectileSharedImpl clone()
clone
in interface ISharedWorldObject
clone
in class IncomingProjectileShared
public ISharedProperty getProperty(PropertyId id)
public Map<PropertyId,ISharedProperty> getProperties()
public UnrealId getId()
getId
in interface IWorldObject
getId
in class IncomingProjectileShared
public javax.vecmath.Vector3d getDirection()
getDirection
in class IncomingProjectileShared
public Location getLocation()
getLocation
in interface ILocated
getLocation
in class IncomingProjectileShared
public Velocity getVelocity()
getVelocity
in class IncomingProjectileShared
public double getSpeed()
getSpeed
in class IncomingProjectileShared
public Location getOrigin()
getOrigin
in class IncomingProjectileShared
public double getDamageRadius()
getDamageRadius
in class IncomingProjectileShared
public String getType()
getType
in class IncomingProjectileShared
public String toString()
toString
in class IncomingProjectileShared
public String toHtmlString()
toHtmlString
in class IncomingProjectileShared
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.