|
||||||||||
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, IncomingProjectile.ObjectDisappeared |
Nested classes/interfaces inherited from interface cz.cuni.amis.pogamut.base.communication.translator.event.IWorldObjectUpdatedEvent |
---|
IWorldObjectUpdatedEvent.DestroyWorldObject |
Field Summary | |
---|---|
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. |
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,
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. |
Method Summary | |
---|---|
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)
|
Methods inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.IncomingProjectile |
---|
createDisappearEvent, getSimTime, setSimTime, toJsonLiteral |
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 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
Constructor Detail |
---|
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
- Method Detail |
---|
protected void setTeamId(ITeamId TeamId)
public ITeamId getTeamId()
public UnrealId getId()
IncomingProjectile
getId
in interface IWorldObjectUpdatedEvent
getId
in interface IWorldObject
getId
in interface ICompositeWorldObjectUpdatedEvent
getId
in class IncomingProjectile
public double getImpactTime()
IncomingProjectile
getImpactTime
in class IncomingProjectile
public javax.vecmath.Vector3d getDirection()
IncomingProjectile
getDirection
in class IncomingProjectile
public Location getLocation()
IncomingProjectile
getLocation
in interface ILocated
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 String getType()
IncomingProjectile
getType
in class IncomingProjectile
public boolean isVisible()
IncomingProjectile
isVisible
in interface IViewable
isVisible
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 ILocalWorldObjectUpdatedEvent getLocalEvent()
getLocalEvent
in interface ICompositeWorldObjectUpdatedEvent
public ISharedWorldObjectUpdatedEvent getSharedEvent()
getSharedEvent
in interface ICompositeWorldObjectUpdatedEvent
public IStaticWorldObjectUpdatedEvent getStaticEvent()
getStaticEvent
in interface ICompositeWorldObjectUpdatedEvent
public String toString()
toString
in class IncomingProjectile
public String toHtmlString()
toHtmlString
in class IncomingProjectile
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |