|
|||||||||
| 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.IncomingProjectile
cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.IncomingProjectileCompositeImpl
public class IncomingProjectileCompositeImpl

Composite implementation of the PRJ abstract message. It wraps Local/Shared/Static parts in single object allowing to presenting a nice facade for users.
Complete message documentation: Both asynchronous and synchronous message. Incoming projectile that we can see.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.IncomingProjectile |
|---|
IncomingProjectile.IncomingProjectileUpdate |
| Field Summary | |
|---|---|
protected IncomingProjectileLocalImpl |
partLocal
|
protected IncomingProjectileStaticImpl |
partStatic
|
| Fields inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.IncomingProjectile |
|---|
PROTOTYPE, SimTime |
| Constructor Summary | |
|---|---|
IncomingProjectileCompositeImpl()
Parameter-less contructor for the message. |
|
IncomingProjectileCompositeImpl(IncomingProjectileCompositeImpl original)
Cloning constructor. |
|
IncomingProjectileCompositeImpl(IncomingProjectileLocalImpl partLocal,
IncomingProjectileSharedImpl partShared,
IncomingProjectileStaticImpl partStatic)
Composite-impl constructor. |
|
| 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()
|
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. |
void |
setSimTime(long SimTime)
Used by Yylex to slip correct time of the object or programmatically. |
java.lang.String |
toHtmlString()
|
java.lang.String |
toString()
|
| Methods inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.IncomingProjectile |
|---|
getSimTime |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected IncomingProjectileStaticImpl partStatic
protected IncomingProjectileLocalImpl partLocal
| Constructor Detail |
|---|
public IncomingProjectileCompositeImpl()
public IncomingProjectileCompositeImpl(IncomingProjectileLocalImpl partLocal,
IncomingProjectileSharedImpl partShared,
IncomingProjectileStaticImpl partStatic)
partLocal - local-part of the messagepartShared - shared-part of the messagepartStatic - static-part of the messagepublic IncomingProjectileCompositeImpl(IncomingProjectileCompositeImpl original)
original - | Method Detail |
|---|
public void setSimTime(long SimTime)
IncomingProjectile
setSimTime in class IncomingProjectilepublic IncomingProjectileStatic getStatic()
public IncomingProjectileLocal getLocal()
public IncomingProjectileShared getShared()
public UnrealId getId()
IncomingProjectile
getId in interface IWorldObjectgetId in class IncomingProjectilepublic double getImpactTime()
IncomingProjectile
getImpactTime in class IncomingProjectilepublic Vector3d getDirection()
IncomingProjectile
getDirection in class IncomingProjectilepublic Location getLocation()
IncomingProjectile
getLocation in class IncomingProjectilepublic Velocity getVelocity()
IncomingProjectile
getVelocity in class IncomingProjectilepublic double getSpeed()
IncomingProjectile
getSpeed in class IncomingProjectilepublic Location getOrigin()
IncomingProjectile
getOrigin in class IncomingProjectilepublic double getDamageRadius()
IncomingProjectile
getDamageRadius in class IncomingProjectilepublic java.lang.String getType()
IncomingProjectile
getType in class IncomingProjectilepublic java.lang.String toString()
toString in class IncomingProjectilepublic java.lang.String toHtmlString()
toHtmlString in class IncomingProjectile
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||