|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cz.cuni.amis.pogamut.base.communication.messages.InfoMessage cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.IncomingProjectile cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.IncomingProjectileMessage
public class IncomingProjectileMessage
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 |
Field Summary | |
---|---|
protected double |
DamageRadius
If the projectile has splash damage, how big it is – in ut units. |
protected Vector3d |
Direction
Which direction projectile is heading to -> orientation vector. |
protected UnrealId |
Id
Unique Id of the projectile. |
protected double |
ImpactTime
Estimated time till impact. |
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. |
protected double |
Speed
Current speed of the projectile. |
protected ITeamId |
TeamId
|
protected java.lang.String |
Type
The class of the projectile (so you know what is flying against you). |
protected Velocity |
Velocity
Current velocity vector of the projectile. |
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,
Vector3d Direction,
Location Location,
Velocity Velocity,
double Speed,
Location Origin,
double DamageRadius,
java.lang.String Type)
Creates new instance of the message IncomingProjectile. |
Method Summary | |
---|---|
double |
getDamageRadius()
If the projectile has splash damage, how big it is – in ut units. |
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()
|
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()
|
double |
getSpeed()
Current speed of the projectile. |
IncomingProjectileStatic |
getStatic()
|
ITeamId |
getTeamId()
|
java.lang.String |
getType()
The class of the projectile (so you know what is flying against you). |
Velocity |
getVelocity()
Current velocity vector of the projectile. |
protected void |
setTeamId(ITeamId TeamId)
Used by Yylex to slip corretn TeamId. |
java.lang.String |
toHtmlString()
|
java.lang.String |
toString()
|
IWorldObjectUpdateResult<IWorldObject> |
update(IWorldObject object)
|
Methods inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.IncomingProjectile |
---|
getSimTime, setSimTime |
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 |
---|
protected ITeamId TeamId
protected UnrealId Id
protected double ImpactTime
protected Vector3d Direction
protected Location Location
protected Velocity Velocity
protected double Speed
protected Location Origin
protected double DamageRadius
protected java.lang.String Type
Constructor Detail |
---|
public IncomingProjectileMessage()
public IncomingProjectileMessage(UnrealId Id, double ImpactTime, Vector3d Direction, Location Location, Velocity Velocity, double Speed, Location Origin, double DamageRadius, java.lang.String Type)
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).public IncomingProjectileMessage(IncomingProjectileMessage original)
original
- Method Detail |
---|
protected void setTeamId(ITeamId TeamId)
public ITeamId getTeamId()
public UnrealId getId()
IncomingProjectile
getId
in interface IWorldObjectUpdatedEvent
getId
in interface IWorldObject
getId
in class IncomingProjectile
public double getImpactTime()
IncomingProjectile
getImpactTime
in class IncomingProjectile
public Vector3d getDirection()
IncomingProjectile
getDirection
in class IncomingProjectile
public Location getLocation()
IncomingProjectile
getLocation
in class IncomingProjectile
public Velocity getVelocity()
IncomingProjectile
getVelocity
in class IncomingProjectile
public double getSpeed()
IncomingProjectile
getSpeed
in class IncomingProjectile
public Location getOrigin()
IncomingProjectile
getOrigin
in class IncomingProjectile
public double getDamageRadius()
IncomingProjectile
getDamageRadius
in class IncomingProjectile
public java.lang.String getType()
IncomingProjectile
getType
in class IncomingProjectile
public IncomingProjectileLocal getLocal()
getLocal
in interface ICompositeWorldObject
public IncomingProjectileShared getShared()
getShared
in interface ICompositeWorldObject
public IncomingProjectileStatic getStatic()
getStatic
in interface ICompositeWorldObject
public IWorldObjectUpdateResult<IWorldObject> update(IWorldObject object)
update
in interface IWorldObjectUpdatedEvent
public java.lang.String toString()
toString
in class IncomingProjectile
public java.lang.String toHtmlString()
toHtmlString
in class IncomingProjectile
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |