|
||||||||||
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 |
Field Summary | |
---|---|
protected cz.cuni.amis.pogamut.unreal.communication.messages.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 cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId |
Id
An unique Id for this bomb, assigned by the game. |
protected boolean |
Id_Set
Whether property 'Id' was received from GB2004. |
protected cz.cuni.amis.pogamut.base3d.worldview.object.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 cz.cuni.amis.pogamut.multi.agent.ITeamId |
TeamId
|
protected cz.cuni.amis.pogamut.base3d.worldview.object.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(cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Id,
cz.cuni.amis.pogamut.base3d.worldview.object.Velocity Velocity,
cz.cuni.amis.pogamut.base3d.worldview.object.Location Location,
cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Holder,
Integer HolderTeam,
boolean Visible,
String State)
Creates new instance of the message BombInfo. |
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.multi.communication.translator.event.ILocalWorldObjectUpdatedEvent |
getLocalEvent()
|
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()
|
cz.cuni.amis.pogamut.multi.communication.translator.event.ISharedWorldObjectUpdatedEvent |
getSharedEvent()
|
String |
getState()
Represents the state the bomb is in. |
BombInfoStatic |
getStatic()
|
cz.cuni.amis.pogamut.multi.communication.translator.event.IStaticWorldObjectUpdatedEvent |
getStaticEvent()
|
cz.cuni.amis.pogamut.multi.agent.ITeamId |
getTeamId()
|
cz.cuni.amis.pogamut.base3d.worldview.object.Velocity |
getVelocity()
Current velocity of the bomb. |
boolean |
isVisible()
True if the bot can see the bomb. |
protected void |
setTeamId(cz.cuni.amis.pogamut.multi.agent.ITeamId TeamId)
Used by Yylex to slip corretn TeamId. |
String |
toHtmlString()
|
String |
toString()
|
cz.cuni.amis.pogamut.base.communication.translator.event.IWorldObjectUpdateResult<cz.cuni.amis.pogamut.base.communication.worldview.object.IWorldObject> |
update(cz.cuni.amis.pogamut.base.communication.worldview.object.IWorldObject object)
|
Methods inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.BombInfo |
---|
createDisappearEvent, getSimTime, setSimTime |
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 cz.cuni.amis.pogamut.multi.agent.ITeamId TeamId
protected cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Id
protected boolean Id_Set
protected cz.cuni.amis.pogamut.base3d.worldview.object.Velocity Velocity
protected boolean Velocity_Set
protected cz.cuni.amis.pogamut.base3d.worldview.object.Location Location
protected boolean Location_Set
protected cz.cuni.amis.pogamut.unreal.communication.messages.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(cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Id, cz.cuni.amis.pogamut.base3d.worldview.object.Velocity Velocity, cz.cuni.amis.pogamut.base3d.worldview.object.Location Location, cz.cuni.amis.pogamut.unreal.communication.messages.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(cz.cuni.amis.pogamut.multi.agent.ITeamId TeamId)
public cz.cuni.amis.pogamut.multi.agent.ITeamId getTeamId()
public cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId getId()
BombInfo
getId
in interface cz.cuni.amis.pogamut.base.communication.translator.event.IWorldObjectUpdatedEvent
getId
in interface cz.cuni.amis.pogamut.base.communication.worldview.object.IWorldObject
getId
in interface cz.cuni.amis.pogamut.multi.communication.translator.event.ICompositeWorldObjectUpdatedEvent
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 BombInfoLocal getLocal()
getLocal
in interface cz.cuni.amis.pogamut.multi.communication.worldview.object.ICompositeWorldObject
public BombInfoShared getShared()
getShared
in interface cz.cuni.amis.pogamut.multi.communication.worldview.object.ICompositeWorldObject
public BombInfoStatic getStatic()
getStatic
in interface cz.cuni.amis.pogamut.multi.communication.worldview.object.ICompositeWorldObject
public cz.cuni.amis.pogamut.base.communication.translator.event.IWorldObjectUpdateResult<cz.cuni.amis.pogamut.base.communication.worldview.object.IWorldObject> update(cz.cuni.amis.pogamut.base.communication.worldview.object.IWorldObject object)
update
in interface cz.cuni.amis.pogamut.base.communication.translator.event.IWorldObjectUpdatedEvent
public cz.cuni.amis.pogamut.multi.communication.translator.event.ILocalWorldObjectUpdatedEvent getLocalEvent()
getLocalEvent
in interface cz.cuni.amis.pogamut.multi.communication.translator.event.ICompositeWorldObjectUpdatedEvent
public cz.cuni.amis.pogamut.multi.communication.translator.event.ISharedWorldObjectUpdatedEvent getSharedEvent()
getSharedEvent
in interface cz.cuni.amis.pogamut.multi.communication.translator.event.ICompositeWorldObjectUpdatedEvent
public cz.cuni.amis.pogamut.multi.communication.translator.event.IStaticWorldObjectUpdatedEvent getStaticEvent()
getStaticEvent
in interface cz.cuni.amis.pogamut.multi.communication.translator.event.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 |