|
|||||||||
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.FlagInfoShared
cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.FlagInfoMessage.FlagInfoSharedMessage
public class FlagInfoMessage.FlagInfoSharedMessage
Implementation of the shared part of the GameBots2004 message FLG, used to facade FLGMessage.
Complete message documentation: Synchronous message. FlagInfo contains all info about the flag in the CTF game mode. Is not sent in other game types.
Field Summary | |
---|---|
protected UnrealIdProperty |
myHolder
Id of player/bot holding the flag. |
protected LocationProperty |
myLocation
An absolute location of the flag (Sent if we can actually see the flag). |
protected StringProperty |
myState
Represents the state the flag is in. |
protected IntegerProperty |
myTeam
The owner team of this flag. |
protected java.util.HashMap<PropertyId,ISharedProperty> |
propertyMap
|
Fields inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.FlagInfoShared |
---|
HolderPropertyToken, LocationPropertyToken, SharedPropertyTokens, SimTime, StatePropertyToken, TeamPropertyToken |
Constructor Summary | |
---|---|
FlagInfoMessage.FlagInfoSharedMessage()
|
Method Summary | |
---|---|
FlagInfoMessage.FlagInfoSharedMessage |
clone()
|
UnrealId |
getHolder()
Id of player/bot holding the flag. |
UnrealId |
getId()
An unique Id for this flag, assigned by the game. |
Location |
getLocation()
An absolute location of the flag (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 flag is in. |
java.lang.Integer |
getTeam()
The owner team of this flag. |
java.lang.String |
toHtmlString()
|
java.lang.String |
toString()
|
Methods inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.FlagInfoShared |
---|
getCompositeClass, getSimTime, setSimTime |
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 LocationProperty myLocation
protected UnrealIdProperty myHolder
protected IntegerProperty myTeam
protected StringProperty myState
Constructor Detail |
---|
public FlagInfoMessage.FlagInfoSharedMessage()
Method Detail |
---|
public FlagInfoMessage.FlagInfoSharedMessage clone()
clone
in interface ISharedWorldObject
clone
in class FlagInfoShared
public ISharedProperty getProperty(PropertyId id)
public java.util.Map<PropertyId,ISharedProperty> getProperties()
public UnrealId getId()
getId
in interface IWorldObject
getId
in class FlagInfoShared
public Location getLocation()
getLocation
in class FlagInfoShared
public UnrealId getHolder()
getHolder
in class FlagInfoShared
public java.lang.Integer getTeam()
getTeam
in class FlagInfoShared
public java.lang.String getState()
getState
in class FlagInfoShared
public java.lang.String toString()
toString
in class FlagInfoShared
public java.lang.String toHtmlString()
toHtmlString
in class FlagInfoShared
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |