|
||||||||||
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.BombInfoShared cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.BombInfoMessage.BombInfoSharedMessage
public class BombInfoMessage.BombInfoSharedMessage
Implementation of the shared part of the GameBots2004 message BOM, used to facade BOMMessage.
Complete message documentation: Synchronous message. BombInfo contains all info about the bomb in the BotBombingRun game mode. Is not sent in other game types.
Field Summary | |
---|---|
protected UnrealIdProperty |
myHolder
Id of player/bot holding the bomb. |
protected IntegerProperty |
myHolderTeam
The team of the current holder (if any). |
protected LocationProperty |
myLocation
An absolute location of the bomb (Sent if we can actually see the flag). |
protected StringProperty |
myState
Represents the state the bomb is in. |
protected VelocityProperty |
myVelocity
Current velocity of the bomb. |
protected HashMap<PropertyId,ISharedProperty> |
propertyMap
|
Fields inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.BombInfoShared |
---|
HolderPropertyToken, HolderTeamPropertyToken, LocationPropertyToken, SharedPropertyTokens, SimTime, StatePropertyToken, VelocityPropertyToken |
Constructor Summary | |
---|---|
BombInfoMessage.BombInfoSharedMessage()
|
Method Summary | |
---|---|
BombInfoMessage.BombInfoSharedMessage |
clone()
|
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. |
Location |
getLocation()
An absolute location of the bomb (Sent if we can actually see the flag). |
Map<PropertyId,ISharedProperty> |
getProperties()
|
ISharedProperty |
getProperty(PropertyId id)
|
String |
getState()
Represents the state the bomb is in. |
Velocity |
getVelocity()
Current velocity of the bomb. |
String |
toHtmlString()
|
String |
toString()
|
Methods inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.BombInfoShared |
---|
getCompositeClass, getSimTime, setSimTime |
Methods inherited from class cz.cuni.amis.pogamut.base.communication.messages.InfoMessage |
---|
toJsonLiteral |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected HashMap<PropertyId,ISharedProperty> propertyMap
protected VelocityProperty myVelocity
protected LocationProperty myLocation
protected UnrealIdProperty myHolder
protected IntegerProperty myHolderTeam
protected StringProperty myState
Constructor Detail |
---|
public BombInfoMessage.BombInfoSharedMessage()
Method Detail |
---|
public BombInfoMessage.BombInfoSharedMessage clone()
clone
in interface ISharedWorldObject
clone
in class BombInfoShared
public ISharedProperty getProperty(PropertyId id)
public Map<PropertyId,ISharedProperty> getProperties()
public UnrealId getId()
getId
in interface IWorldObject
getId
in class BombInfoShared
public Velocity getVelocity()
getVelocity
in class BombInfoShared
public Location getLocation()
getLocation
in class BombInfoShared
public UnrealId getHolder()
getHolder
in class BombInfoShared
public Integer getHolderTeam()
getHolderTeam
in class BombInfoShared
public String getState()
getState
in class BombInfoShared
public String toString()
toString
in class BombInfoShared
public String toHtmlString()
toHtmlString
in class BombInfoShared
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |