public class BombInfoCompositeImpl extends BombInfo
BombInfo.BombInfoUpdate, BombInfo.ObjectDisappeared
Modifier and Type | Field and Description |
---|---|
protected BombInfoLocalImpl |
partLocal |
protected BombInfoStaticImpl |
partStatic |
Constructor and Description |
---|
BombInfoCompositeImpl()
Parameter-less contructor for the message.
|
BombInfoCompositeImpl(BombInfoCompositeImpl original)
Cloning constructor.
|
BombInfoCompositeImpl(BombInfoLocalImpl partLocal,
BombInfoSharedImpl partShared,
BombInfoStaticImpl partStatic)
Composite-impl constructor.
|
Modifier and Type | Method and Description |
---|---|
UnrealId |
getHolder()
Id of player/bot holding the bomb.
|
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() |
String |
getState()
Represents the state the bomb is in.
|
BombInfoStatic |
getStatic() |
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() |
createDisappearEvent, getSimTime, toJsonLiteral
protected BombInfoStaticImpl partStatic
protected BombInfoLocalImpl partLocal
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
- 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
public Integer getHolderTeam()
BombInfo
getHolderTeam
in class BombInfo
public boolean isVisible()
BombInfo
public String getState()
BombInfo
public String toHtmlString()
toHtmlString
in class BombInfo
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.