|
||||||||||
| 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.FlagInfoSharedImpl
public class FlagInfoSharedImpl
Implementation of the shared part of the GameBots2004 message FLG.
Complete message documentation: Synchronous message. FlagInfo contains all info about the flag in the CTF game mode. Is not sent in other game types.
| Nested Class Summary | |
|---|---|
static class |
FlagInfoSharedImpl.FlagInfoSharedUpdate
|
| Field Summary | |
|---|---|
protected UnrealId |
Id
An unique Id for this flag, assigned by the game. |
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 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 | |
|---|---|
FlagInfoSharedImpl(FlagInfoSharedImpl source)
|
|
FlagInfoSharedImpl(WorldObjectId objectId,
Collection<ISharedProperty> properties)
|
|
| Method Summary | |
|---|---|
FlagInfoSharedImpl |
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). |
Map<PropertyId,ISharedProperty> |
getProperties()
|
ISharedProperty |
getProperty(PropertyId id)
|
String |
getState()
Represents the state the flag is in. |
Integer |
getTeam()
The owner team of this flag. |
void |
setSimTime(long SimTime)
Used by Yylex to slip correct time of the object or programmatically. |
String |
toHtmlString()
|
String |
toString()
|
| Methods inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.FlagInfoShared |
|---|
getCompositeClass, getSimTime |
| 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 UnrealId Id
protected LocationProperty myLocation
protected UnrealIdProperty myHolder
protected IntegerProperty myTeam
protected StringProperty myState
| Constructor Detail |
|---|
public FlagInfoSharedImpl(FlagInfoSharedImpl source)
public FlagInfoSharedImpl(WorldObjectId objectId,
Collection<ISharedProperty> properties)
| Method Detail |
|---|
public void setSimTime(long SimTime)
FlagInfoShared
setSimTime in class FlagInfoSharedpublic FlagInfoSharedImpl clone()
clone in interface ISharedWorldObjectclone in class FlagInfoSharedpublic ISharedProperty getProperty(PropertyId id)
public Map<PropertyId,ISharedProperty> getProperties()
public UnrealId getId()
getId in interface IWorldObjectgetId in class FlagInfoSharedpublic Location getLocation()
getLocation in class FlagInfoSharedpublic UnrealId getHolder()
getHolder in class FlagInfoSharedpublic Integer getTeam()
getTeam in class FlagInfoSharedpublic String getState()
getState in class FlagInfoSharedpublic String toString()
toString in class FlagInfoSharedpublic String toHtmlString()
toHtmlString in class FlagInfoShared
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||