|
|||||||||
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.BombInfo cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.BombInfoCompositeImpl
public class BombInfoCompositeImpl
Composite implementation of the BOM abstract message. It wraps Local/Shared/Static parts in single object allowing to presenting a nice facade for users.
Complete message documentation: Synchronous message. BombInfo contains all info about the bomb in the BotBombingRun game mode. Is not sent in other game types.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.BombInfo |
---|
BombInfo.BombInfoUpdate, BombInfo.ObjectDisappeared |
Field Summary | |
---|---|
protected BombInfoLocalImpl |
partLocal
|
protected BombInfoStaticImpl |
partStatic
|
Fields inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.BombInfo |
---|
PROTOTYPE, SimTime |
Constructor Summary | |
---|---|
BombInfoCompositeImpl()
Parameter-less contructor for the message. |
|
BombInfoCompositeImpl(BombInfoCompositeImpl original)
Cloning constructor. |
|
BombInfoCompositeImpl(BombInfoLocalImpl partLocal,
BombInfoSharedImpl partShared,
BombInfoStaticImpl partStatic)
Composite-impl constructor. |
Method Summary | |
---|---|
UnrealId |
getHolder()
Id of player/bot holding the bomb. |
java.lang.Integer |
getHolderTeam()
The team of the current holder (if any). |
UnrealId |
getId()
An unique Id for this bomb, assigned by the game. |
BombInfoLocal |
getLocal()
|
Location |
getLocation()
An absolute location of the bomb (Sent if we can actually see the flag). |
BombInfoShared |
getShared()
|
java.lang.String |
getState()
Represents the state the bomb is in. |
BombInfoStatic |
getStatic()
|
Velocity |
getVelocity()
Current velocity of the bomb. |
boolean |
isReachable()
True if the bot can run here directly, false otherwise. |
boolean |
isVisible()
True if the bot can see the bomb. |
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.BombInfo |
---|
createDisappearEvent, getSimTime |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected BombInfoStaticImpl partStatic
protected BombInfoLocalImpl partLocal
Constructor Detail |
---|
public BombInfoCompositeImpl()
public BombInfoCompositeImpl(BombInfoLocalImpl partLocal, BombInfoSharedImpl partShared, BombInfoStaticImpl partStatic)
partLocal
- local-part of the messagepartShared
- shared-part of the messagepartStatic
- static-part of the messagepublic BombInfoCompositeImpl(BombInfoCompositeImpl original)
original
- Method Detail |
---|
public void setSimTime(long SimTime)
BombInfo
setSimTime
in class BombInfo
public BombInfoStatic getStatic()
public BombInfoLocal getLocal()
public BombInfoShared getShared()
public UnrealId getId()
BombInfo
getId
in interface IWorldObject
getId
in class BombInfo
public Velocity getVelocity()
BombInfo
getVelocity
in class BombInfo
public Location getLocation()
BombInfo
getLocation
in class BombInfo
public UnrealId getHolder()
BombInfo
getHolder
in class BombInfo
public java.lang.Integer getHolderTeam()
BombInfo
getHolderTeam
in class BombInfo
public boolean isReachable()
BombInfo
isReachable
in class BombInfo
public boolean isVisible()
BombInfo
isVisible
in interface IViewable
isVisible
in class BombInfo
public java.lang.String getState()
BombInfo
getState
in class BombInfo
public java.lang.String toString()
toString
in class BombInfo
public java.lang.String toHtmlString()
toHtmlString
in class BombInfo
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |