|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcz.cuni.amis.pogamut.base.communication.messages.InfoMessage
cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.BombInfoShared
cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.BombInfoSharedImpl
public class BombInfoSharedImpl

Implementation of the shared part of the GameBots2004 message BOM.
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 | |
|---|---|
static class |
BombInfoSharedImpl.BombInfoSharedUpdate
|
| Field Summary | |
|---|---|
protected UnrealId |
Id
An unique Id for this bomb, assigned by the game. |
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 java.util.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 | |
|---|---|
BombInfoSharedImpl(BombInfoSharedImpl source)
|
|
BombInfoSharedImpl(WorldObjectId objectId,
java.util.Collection<ISharedProperty> properties)
|
|
| Method Summary | |
|---|---|
BombInfoSharedImpl |
clone()
|
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. |
Location |
getLocation()
An absolute location of the bomb (Sent if we can actually see the flag). |
java.util.Map<PropertyId,ISharedProperty> |
getProperties()
|
ISharedProperty |
getProperty(PropertyId id)
|
java.lang.String |
getState()
Represents the state the bomb is in. |
Velocity |
getVelocity()
Current velocity of the bomb. |
void |
setSimTime(long SimTime)
Used by Yylex to slip correct time of the object or programmatically. |
java.lang.String |
toHtmlString()
|
java.lang.String |
toString()
|
| Methods inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.BombInfoShared |
|---|
getCompositeClass, getSimTime |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.util.HashMap<PropertyId,ISharedProperty> propertyMap
protected UnrealId Id
protected VelocityProperty myVelocity
protected LocationProperty myLocation
protected UnrealIdProperty myHolder
protected IntegerProperty myHolderTeam
protected StringProperty myState
| Constructor Detail |
|---|
public BombInfoSharedImpl(BombInfoSharedImpl source)
public BombInfoSharedImpl(WorldObjectId objectId,
java.util.Collection<ISharedProperty> properties)
| Method Detail |
|---|
public void setSimTime(long SimTime)
BombInfoShared
setSimTime in class BombInfoSharedpublic BombInfoSharedImpl clone()
clone in interface ISharedWorldObjectclone in class BombInfoSharedpublic ISharedProperty getProperty(PropertyId id)
public java.util.Map<PropertyId,ISharedProperty> getProperties()
public UnrealId getId()
getId in interface IWorldObjectgetId in class BombInfoSharedpublic Velocity getVelocity()
getVelocity in class BombInfoSharedpublic Location getLocation()
getLocation in class BombInfoSharedpublic UnrealId getHolder()
getHolder in class BombInfoSharedpublic java.lang.Integer getHolderTeam()
getHolderTeam in class BombInfoSharedpublic java.lang.String getState()
getState in class BombInfoSharedpublic java.lang.String toString()
toString in class BombInfoSharedpublic java.lang.String toHtmlString()
toHtmlString in class BombInfoShared
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||