|
||||||||||
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.BombInfoMessage
public class BombInfoMessage
Implementation of the GameBots2004 message BOM contains also its Local/Shared/Static subpart class definitions..
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 | |
---|---|
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. |
Nested classes/interfaces inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.BombInfo |
---|
BombInfo.BombInfoUpdate, BombInfo.ObjectDisappeared |
Nested classes/interfaces inherited from interface cz.cuni.amis.pogamut.base.communication.translator.event.IWorldObjectUpdatedEvent |
---|
IWorldObjectUpdatedEvent.DestroyWorldObject |
Field Summary | |
---|---|
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. |
Fields inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.BombInfo |
---|
PROTOTYPE, SimTime |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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)
|
Methods inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.BombInfo |
---|
createDisappearEvent, getSimTime, setSimTime, toJsonLiteral |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface cz.cuni.amis.pogamut.base.communication.translator.event.IWorldChangeEvent |
---|
getSimTime |
Field Detail |
---|
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
Constructor Detail |
---|
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
- Method Detail |
---|
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
getHolder
in class BombInfo
public Integer getHolderTeam()
BombInfo
getHolderTeam
in class BombInfo
public boolean isVisible()
BombInfo
isVisible
in interface IViewable
isVisible
in class BombInfo
public String getState()
BombInfo
getState
in class 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 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 |