public class BombInfoMessage extends BombInfo implements IWorldObjectUpdatedEvent, ICompositeWorldObjectUpdatedEvent
| Modifier and Type | Class and Description |
|---|---|
class |
BombInfoMessage.BombInfoLocalMessage
Implementation of the local part of the GameBots2004 message BOM, used
to facade BOMMessage.
|
class |
BombInfoMessage.BombInfoSharedMessage
Implementation of the shared part of the GameBots2004 message BOM, used
to facade BOMMessage.
|
class |
BombInfoMessage.BombInfoStaticMessage
Implementation of the static part of the GameBots2004 message BOM, used
to facade BOMMessage.
|
BombInfo.BombInfoUpdate, BombInfo.ObjectDisappearedIWorldObjectUpdatedEvent.DestroyWorldObject| Modifier and Type | Field and Description |
|---|---|
protected UnrealId |
Holder
Id of player/bot holding the bomb.
|
protected boolean |
Holder_Set
Whether property 'Holder' was received from GB2004.
|
protected Integer |
HolderTeam
The team of the current holder (if any).
|
protected boolean |
HolderTeam_Set
Whether property 'HolderTeam' was received from GB2004.
|
protected UnrealId |
Id
An unique Id for this bomb, assigned by the game.
|
protected boolean |
Id_Set
Whether property 'Id' was received from GB2004.
|
protected Location |
Location
An absolute location of the bomb (Sent if we can actually
see the flag).
|
protected boolean |
Location_Set
Whether property 'Location' was received from GB2004.
|
protected String |
State
Represents the state the bomb is in.
|
protected boolean |
State_Set
Whether property 'State' was received from GB2004.
|
protected ITeamId |
TeamId |
protected Velocity |
Velocity
Current velocity of the bomb.
|
protected boolean |
Velocity_Set
Whether property 'Velocity' was received from GB2004.
|
protected boolean |
Visible
True if the bot can see the bomb.
|
protected boolean |
Visible_Set
Whether property 'Visible' was received from GB2004.
|
| Constructor and Description |
|---|
BombInfoMessage()
Parameter-less contructor for the message.
|
BombInfoMessage(BombInfoMessage original)
Cloning constructor from the full message.
|
BombInfoMessage(UnrealId Id,
Velocity Velocity,
Location Location,
UnrealId Holder,
Integer HolderTeam,
boolean Visible,
String State)
Creates new instance of the message BombInfo.
|
| 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() |
ILocalWorldObjectUpdatedEvent |
getLocalEvent() |
Location |
getLocation()
An absolute location of the bomb (Sent if we can actually
see the flag).
|
BombInfoShared |
getShared() |
ISharedWorldObjectUpdatedEvent |
getSharedEvent() |
String |
getState()
Represents the state the bomb is in.
|
BombInfoStatic |
getStatic() |
IStaticWorldObjectUpdatedEvent |
getStaticEvent() |
ITeamId |
getTeamId() |
Velocity |
getVelocity()
Current velocity of the bomb.
|
boolean |
isVisible()
True if the bot can see the bomb.
|
protected void |
setTeamId(ITeamId TeamId)
Used by Yylex to slip corretn TeamId.
|
String |
toHtmlString() |
String |
toString() |
IWorldObjectUpdateResult<IWorldObject> |
update(IWorldObject object) |
createDisappearEvent, getSimTime, setSimTime, toJsonLiteralclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetSimTimeprotected ITeamId TeamId
protected UnrealId Id
protected boolean Id_Set
protected Velocity Velocity
protected boolean Velocity_Set
protected Location Location
protected boolean Location_Set
protected UnrealId Holder
protected boolean Holder_Set
protected Integer HolderTeam
protected boolean HolderTeam_Set
protected boolean Visible
protected boolean Visible_Set
protected String State
protected boolean State_Set
public BombInfoMessage()
public BombInfoMessage(UnrealId Id, Velocity Velocity, Location Location, UnrealId Holder, Integer HolderTeam, boolean Visible, String State)
Id - An unique Id for this bomb, assigned by the game.Velocity - Current velocity of the bomb. TODO not sure if this actually does smthingLocation - An absolute location of the bomb (Sent if we can actually
see the flag).Holder - Id of player/bot holding the bomb. (Sent if we can actually
see the bomb and the bomb is being carried, or if the bomb
is being carried by us).HolderTeam - The team of the current holder (if any).Visible - True if the bot can see the bomb.State - Represents the state the bomb is in. Can be "Held",
"Dropped" or "Home".public BombInfoMessage(BombInfoMessage original)
original - protected void setTeamId(ITeamId TeamId)
public ITeamId getTeamId()
public UnrealId getId()
BombInfogetId in interface IWorldObjectUpdatedEventgetId in interface IWorldObjectgetId in interface ICompositeWorldObjectUpdatedEventgetId in class BombInfopublic Velocity getVelocity()
BombInfogetVelocity in class BombInfopublic Location getLocation()
BombInfogetLocation in class BombInfopublic UnrealId getHolder()
BombInfopublic Integer getHolderTeam()
BombInfogetHolderTeam in class BombInfopublic boolean isVisible()
BombInfopublic String getState()
BombInfopublic BombInfoLocal getLocal()
getLocal in interface ICompositeWorldObjectpublic BombInfoShared getShared()
getShared in interface ICompositeWorldObjectpublic BombInfoStatic getStatic()
getStatic in interface ICompositeWorldObjectpublic IWorldObjectUpdateResult<IWorldObject> update(IWorldObject object)
update in interface IWorldObjectUpdatedEventpublic ILocalWorldObjectUpdatedEvent getLocalEvent()
getLocalEvent in interface ICompositeWorldObjectUpdatedEventpublic ISharedWorldObjectUpdatedEvent getSharedEvent()
getSharedEvent in interface ICompositeWorldObjectUpdatedEventpublic IStaticWorldObjectUpdatedEvent getStaticEvent()
getStaticEvent in interface ICompositeWorldObjectUpdatedEventpublic String toHtmlString()
toHtmlString in class BombInfoCopyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.