|
||||||||||
| 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.FlagInfo
cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.FlagInfoMessage
public class FlagInfoMessage
Implementation of the GameBots2004 message FLG contains also its Local/Shared/Static subpart class definitions..
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 | |
|---|---|
class |
FlagInfoMessage.FlagInfoLocalMessage
Implementation of the local part of the GameBots2004 message FLG, used to facade FLGMessage. |
class |
FlagInfoMessage.FlagInfoSharedMessage
Implementation of the shared part of the GameBots2004 message FLG, used to facade FLGMessage. |
class |
FlagInfoMessage.FlagInfoStaticMessage
Implementation of the static part of the GameBots2004 message FLG, used to facade FLGMessage. |
| Nested classes/interfaces inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.FlagInfo |
|---|
FlagInfo.FlagInfoUpdate, FlagInfo.ObjectDisappeared |
| Nested classes/interfaces inherited from interface cz.cuni.amis.pogamut.base.communication.translator.event.IWorldObjectUpdatedEvent |
|---|
IWorldObjectUpdatedEvent.DestroyWorldObject |
| Field Summary | |
|---|---|
protected UnrealId |
Holder
Id of player/bot holding the flag. |
protected boolean |
Holder_Set
Whether property 'Holder' was received from GB2004. |
protected UnrealId |
Id
An unique Id for this flag, assigned by the game. |
protected boolean |
Id_Set
Whether property 'Id' was received from GB2004. |
protected Location |
Location
An absolute location of the flag (Sent if we can actually see the flag). |
protected boolean |
Location_Set
Whether property 'Location' was received from GB2004. |
protected String |
State
Represents the state the flag is in. |
protected boolean |
State_Set
Whether property 'State' was received from GB2004. |
protected Integer |
Team
The owner team of this flag. |
protected boolean |
Team_Set
Whether property 'Team' was received from GB2004. |
protected ITeamId |
TeamId
|
protected boolean |
Visible
True if the bot can see the flag. |
protected boolean |
Visible_Set
Whether property 'Visible' was received from GB2004. |
| Fields inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.FlagInfo |
|---|
PROTOTYPE, SimTime |
| Constructor Summary | |
|---|---|
FlagInfoMessage()
Parameter-less contructor for the message. |
|
FlagInfoMessage(FlagInfoMessage original)
Cloning constructor from the full message. |
|
FlagInfoMessage(UnrealId Id,
Location Location,
UnrealId Holder,
Integer Team,
boolean Visible,
String State)
Creates new instance of the message FlagInfo. |
|
| Method Summary | |
|---|---|
UnrealId |
getHolder()
Id of player/bot holding the flag. |
UnrealId |
getId()
An unique Id for this flag, assigned by the game. |
FlagInfoLocal |
getLocal()
|
ILocalWorldObjectUpdatedEvent |
getLocalEvent()
|
Location |
getLocation()
An absolute location of the flag (Sent if we can actually see the flag). |
FlagInfoShared |
getShared()
|
ISharedWorldObjectUpdatedEvent |
getSharedEvent()
|
String |
getState()
Represents the state the flag is in. |
FlagInfoStatic |
getStatic()
|
IStaticWorldObjectUpdatedEvent |
getStaticEvent()
|
Integer |
getTeam()
The owner team of this flag. |
ITeamId |
getTeamId()
|
boolean |
isVisible()
True if the bot can see the flag. |
protected void |
setTeamId(ITeamId TeamId)
Used by Yylex to slip corretn TeamId. |
String |
toHtmlString()
|
String |
toString()
|
IWorldObjectUpdateResult<IWorldObject> |
update(IWorldObject object)
|
| Methods inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.FlagInfo |
|---|
createDisappearEvent, getSimTime, setSimTime, toJsonLiteral |
| 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 boolean Id_Set
protected Location Location
protected boolean Location_Set
protected UnrealId Holder
protected boolean Holder_Set
protected Integer Team
protected boolean Team_Set
protected boolean Visible
protected boolean Visible_Set
protected String State
protected boolean State_Set
| Constructor Detail |
|---|
public FlagInfoMessage()
public FlagInfoMessage(UnrealId Id,
Location Location,
UnrealId Holder,
Integer Team,
boolean Visible,
String State)
Id - An unique Id for this flag, assigned by the game.Location - An absolute location of the flag (Sent if we can actually
see the flag).Holder - Id of player/bot holding the flag. (Sent if we can actually
see the flag and the flag is being carried, or if the flag
is being carried by us).Team - The owner team of this flag.Visible - True if the bot can see the flag.State - Represents the state the flag is in. Can be "Held",
"Dropped" or "Home" (note that the first letter does not have to be in upper case!).public FlagInfoMessage(FlagInfoMessage original)
original - | Method Detail |
|---|
protected void setTeamId(ITeamId TeamId)
public ITeamId getTeamId()
public UnrealId getId()
FlagInfo
getId in interface IWorldObjectUpdatedEventgetId in interface IWorldObjectgetId in interface ICompositeWorldObjectUpdatedEventgetId in class FlagInfopublic Location getLocation()
FlagInfo
getLocation in class FlagInfopublic UnrealId getHolder()
FlagInfo
getHolder in class FlagInfopublic Integer getTeam()
FlagInfo
getTeam in class FlagInfopublic boolean isVisible()
FlagInfo
isVisible in interface IViewableisVisible in class FlagInfopublic String getState()
FlagInfo
getState in class FlagInfopublic FlagInfoLocal getLocal()
getLocal in interface ICompositeWorldObjectpublic FlagInfoShared getShared()
getShared in interface ICompositeWorldObjectpublic FlagInfoStatic getStatic()
getStatic in interface ICompositeWorldObjectpublic IWorldObjectUpdateResult<IWorldObject> update(IWorldObject object)
update in interface IWorldObjectUpdatedEventpublic ILocalWorldObjectUpdatedEvent getLocalEvent()
getLocalEvent in interface ICompositeWorldObjectUpdatedEventpublic ISharedWorldObjectUpdatedEvent getSharedEvent()
getSharedEvent in interface ICompositeWorldObjectUpdatedEventpublic IStaticWorldObjectUpdatedEvent getStaticEvent()
getStaticEvent in interface ICompositeWorldObjectUpdatedEventpublic String toString()
toString in class FlagInfopublic String toHtmlString()
toHtmlString in class FlagInfo
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||