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.ObjectDisappeared
IWorldObjectUpdatedEvent.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, toJsonLiteral
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getSimTime
protected 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()
BombInfo
getId
in interface IWorldObjectUpdatedEvent
getId
in interface IWorldObject
getId
in interface ICompositeWorldObjectUpdatedEvent
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 BombInfoLocal getLocal()
getLocal
in interface ICompositeWorldObject
public BombInfoShared getShared()
getShared
in interface ICompositeWorldObject
public BombInfoStatic getStatic()
getStatic
in interface ICompositeWorldObject
public IWorldObjectUpdateResult<IWorldObject> update(IWorldObject object)
update
in interface IWorldObjectUpdatedEvent
public ILocalWorldObjectUpdatedEvent getLocalEvent()
getLocalEvent
in interface ICompositeWorldObjectUpdatedEvent
public ISharedWorldObjectUpdatedEvent getSharedEvent()
getSharedEvent
in interface ICompositeWorldObjectUpdatedEvent
public IStaticWorldObjectUpdatedEvent getStaticEvent()
getStaticEvent
in interface ICompositeWorldObjectUpdatedEvent
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.