|
||||||||||
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 | |
---|---|
cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId |
getHolder()
Id of player/bot holding the bomb. |
Integer |
getHolderTeam()
The team of the current holder (if any). |
cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId |
getId()
An unique Id for this bomb, assigned by the game. |
BombInfoLocal |
getLocal()
|
cz.cuni.amis.pogamut.base3d.worldview.object.Location |
getLocation()
An absolute location of the bomb (Sent if we can actually see the flag). |
BombInfoShared |
getShared()
|
String |
getState()
Represents the state the bomb is in. |
BombInfoStatic |
getStatic()
|
cz.cuni.amis.pogamut.base3d.worldview.object.Velocity |
getVelocity()
Current velocity of the bomb. |
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. |
String |
toHtmlString()
|
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 cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId getId()
BombInfo
getId
in interface cz.cuni.amis.pogamut.base.communication.worldview.object.IWorldObject
getId
in class BombInfo
public cz.cuni.amis.pogamut.base3d.worldview.object.Velocity getVelocity()
BombInfo
getVelocity
in class BombInfo
public cz.cuni.amis.pogamut.base3d.worldview.object.Location getLocation()
BombInfo
getLocation
in class BombInfo
public cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId getHolder()
BombInfo
getHolder
in class BombInfo
public Integer getHolderTeam()
BombInfo
getHolderTeam
in class BombInfo
public boolean isVisible()
BombInfo
isVisible
in interface cz.cuni.amis.pogamut.base3d.worldview.object.IViewable
isVisible
in class BombInfo
public String getState()
BombInfo
getState
in class BombInfo
public String toString()
toString
in class BombInfo
public String toHtmlString()
toHtmlString
in class BombInfo
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |