|
|||||||||
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 UnrealId |
Holder
Id of player/bot holding the bomb. |
protected java.lang.Integer |
HolderTeam
The team of the current holder (if any). |
protected UnrealId |
Id
An unique Id for this bomb, assigned by the game. |
protected Location |
Location
An absolute location of the bomb (Sent if we can actually see the flag). |
protected boolean |
Reachable
True if the bot can run here directly, false otherwise. |
protected java.lang.String |
State
Represents the state the bomb is in. |
protected ITeamId |
TeamId
|
protected Velocity |
Velocity
Current velocity of the bomb. |
protected boolean |
Visible
True if the bot can see the bomb. |
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,
java.lang.Integer HolderTeam,
boolean Reachable,
boolean Visible,
java.lang.String State)
Creates new instance of the message BombInfo. |
Method Summary | |
---|---|
UnrealId |
getHolder()
Id of player/bot holding the bomb. |
java.lang.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()
|
java.lang.String |
getState()
Represents the state the bomb is in. |
BombInfoStatic |
getStatic()
|
ITeamId |
getTeamId()
|
Velocity |
getVelocity()
Current velocity of the bomb. |
boolean |
isReachable()
True if the bot can run here directly, false otherwise. |
boolean |
isVisible()
True if the bot can see the bomb. |
protected void |
setTeamId(ITeamId TeamId)
Used by Yylex to slip corretn TeamId. |
java.lang.String |
toHtmlString()
|
java.lang.String |
toString()
|
IWorldObjectUpdateResult<IWorldObject> |
update(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 ITeamId TeamId
protected UnrealId Id
protected Velocity Velocity
protected Location Location
protected UnrealId Holder
protected java.lang.Integer HolderTeam
protected boolean Reachable
protected boolean Visible
protected java.lang.String State
Constructor Detail |
---|
public BombInfoMessage()
public BombInfoMessage(UnrealId Id, Velocity Velocity, Location Location, UnrealId Holder, java.lang.Integer HolderTeam, boolean Reachable, boolean Visible, java.lang.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).Reachable
- True if the bot can run here directly, false otherwise.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 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 java.lang.Integer getHolderTeam()
BombInfo
getHolderTeam
in class BombInfo
public boolean isReachable()
BombInfo
isReachable
in class BombInfo
public boolean isVisible()
BombInfo
isVisible
in interface IViewable
isVisible
in class BombInfo
public java.lang.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 java.lang.String toString()
toString
in class BombInfo
public java.lang.String toHtmlString()
toHtmlString
in class BombInfo
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |