|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcz.cuni.amis.pogamut.base.communication.messages.InfoMessage
cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.IncomingProjectileShared
cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.IncomingProjectileMessage.IncomingProjectileSharedMessage
public class IncomingProjectileMessage.IncomingProjectileSharedMessage
Implementation of the shared part of the GameBots2004 message PRJ, used to facade PRJMessage.
Complete message documentation: Both asynchronous and synchronous message. Incoming projectile that we can see.
Field Summary | |
---|---|
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
|
Fields inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.IncomingProjectileShared |
---|
DamageRadiusPropertyToken, DirectionPropertyToken, LocationPropertyToken, OriginPropertyToken, SharedPropertyTokens, SimTime, SpeedPropertyToken, TypePropertyToken, VelocityPropertyToken |
Constructor Summary | |
---|---|
IncomingProjectileMessage.IncomingProjectileSharedMessage()
|
Method Summary | |
---|---|
IncomingProjectileMessage.IncomingProjectileSharedMessage |
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. |
String |
toHtmlString()
|
String |
toString()
|
Methods inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.IncomingProjectileShared |
---|
getCompositeClass, getSimTime, setSimTime |
Methods inherited from class cz.cuni.amis.pogamut.base.communication.messages.InfoMessage |
---|
toJsonLiteral |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected HashMap<PropertyId,ISharedProperty> propertyMap
protected Vector3dProperty myDirection
protected LocationProperty myLocation
protected VelocityProperty myVelocity
protected DoubleProperty mySpeed
protected LocationProperty myOrigin
protected DoubleProperty myDamageRadius
protected StringProperty myType
Constructor Detail |
---|
public IncomingProjectileMessage.IncomingProjectileSharedMessage()
Method Detail |
---|
public IncomingProjectileMessage.IncomingProjectileSharedMessage 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |