public class FlagInfoMessage extends FlagInfo implements cz.cuni.amis.pogamut.base.communication.translator.event.IWorldObjectUpdatedEvent, cz.cuni.amis.pogamut.multi.communication.translator.event.ICompositeWorldObjectUpdatedEvent
Modifier and Type | Class and Description |
---|---|
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.
|
FlagInfo.FlagInfoUpdate, FlagInfo.ObjectDisappeared
Modifier and Type | Field and Description |
---|---|
protected cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId |
Holder
Id of player/bot holding the flag.
|
protected boolean |
Holder_Set
Whether property 'Holder' was received from GB2004.
|
protected cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId |
Id
An unique Id for this flag, assigned by the game.
|
protected boolean |
Id_Set
Whether property 'Id' was received from GB2004.
|
protected cz.cuni.amis.pogamut.base3d.worldview.object.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 cz.cuni.amis.pogamut.multi.agent.ITeamId |
TeamId |
protected boolean |
Visible
True if the bot can see the flag.
|
protected boolean |
Visible_Set
Whether property 'Visible' was received from GB2004.
|
Constructor and Description |
---|
FlagInfoMessage()
Parameter-less contructor for the message.
|
FlagInfoMessage(FlagInfoMessage original)
Cloning constructor from the full message.
|
FlagInfoMessage(cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Id,
cz.cuni.amis.pogamut.base3d.worldview.object.Location Location,
cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Holder,
Integer Team,
boolean Visible,
String State)
Creates new instance of the message FlagInfo.
|
Modifier and Type | Method and Description |
---|---|
cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId |
getHolder()
Id of player/bot holding the flag.
|
cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId |
getId()
An unique Id for this flag, assigned by the game.
|
FlagInfoLocal |
getLocal() |
cz.cuni.amis.pogamut.multi.communication.translator.event.ILocalWorldObjectUpdatedEvent |
getLocalEvent() |
cz.cuni.amis.pogamut.base3d.worldview.object.Location |
getLocation()
An absolute location of the flag (Sent if we can actually
see the flag).
|
FlagInfoShared |
getShared() |
cz.cuni.amis.pogamut.multi.communication.translator.event.ISharedWorldObjectUpdatedEvent |
getSharedEvent() |
String |
getState()
Represents the state the flag is in.
|
FlagInfoStatic |
getStatic() |
cz.cuni.amis.pogamut.multi.communication.translator.event.IStaticWorldObjectUpdatedEvent |
getStaticEvent() |
Integer |
getTeam()
The owner team of this flag.
|
cz.cuni.amis.pogamut.multi.agent.ITeamId |
getTeamId() |
boolean |
isVisible()
True if the bot can see the flag.
|
protected void |
setTeamId(cz.cuni.amis.pogamut.multi.agent.ITeamId TeamId)
Used by Yylex to slip corretn TeamId.
|
String |
toHtmlString() |
String |
toString() |
cz.cuni.amis.pogamut.base.communication.translator.event.IWorldObjectUpdateResult<cz.cuni.amis.pogamut.base.communication.worldview.object.IWorldObject> |
update(cz.cuni.amis.pogamut.base.communication.worldview.object.IWorldObject object) |
createDisappearEvent, getSimTime, setSimTime
protected cz.cuni.amis.pogamut.multi.agent.ITeamId TeamId
protected cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Id
protected boolean Id_Set
protected cz.cuni.amis.pogamut.base3d.worldview.object.Location Location
protected boolean Location_Set
protected cz.cuni.amis.pogamut.unreal.communication.messages.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
public FlagInfoMessage()
public FlagInfoMessage(cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Id, cz.cuni.amis.pogamut.base3d.worldview.object.Location Location, cz.cuni.amis.pogamut.unreal.communication.messages.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
- protected void setTeamId(cz.cuni.amis.pogamut.multi.agent.ITeamId TeamId)
public cz.cuni.amis.pogamut.multi.agent.ITeamId getTeamId()
public cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId getId()
FlagInfo
getId
in interface cz.cuni.amis.pogamut.base.communication.translator.event.IWorldObjectUpdatedEvent
getId
in interface cz.cuni.amis.pogamut.base.communication.worldview.object.IWorldObject
getId
in interface cz.cuni.amis.pogamut.multi.communication.translator.event.ICompositeWorldObjectUpdatedEvent
getId
in class FlagInfo
public cz.cuni.amis.pogamut.base3d.worldview.object.Location getLocation()
FlagInfo
getLocation
in class FlagInfo
public cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId getHolder()
FlagInfo
public Integer getTeam()
FlagInfo
public boolean isVisible()
FlagInfo
public String getState()
FlagInfo
public FlagInfoLocal getLocal()
getLocal
in interface cz.cuni.amis.pogamut.multi.communication.worldview.object.ICompositeWorldObject
public FlagInfoShared getShared()
getShared
in interface cz.cuni.amis.pogamut.multi.communication.worldview.object.ICompositeWorldObject
public FlagInfoStatic getStatic()
getStatic
in interface cz.cuni.amis.pogamut.multi.communication.worldview.object.ICompositeWorldObject
public cz.cuni.amis.pogamut.base.communication.translator.event.IWorldObjectUpdateResult<cz.cuni.amis.pogamut.base.communication.worldview.object.IWorldObject> update(cz.cuni.amis.pogamut.base.communication.worldview.object.IWorldObject object)
update
in interface cz.cuni.amis.pogamut.base.communication.translator.event.IWorldObjectUpdatedEvent
public cz.cuni.amis.pogamut.multi.communication.translator.event.ILocalWorldObjectUpdatedEvent getLocalEvent()
getLocalEvent
in interface cz.cuni.amis.pogamut.multi.communication.translator.event.ICompositeWorldObjectUpdatedEvent
public cz.cuni.amis.pogamut.multi.communication.translator.event.ISharedWorldObjectUpdatedEvent getSharedEvent()
getSharedEvent
in interface cz.cuni.amis.pogamut.multi.communication.translator.event.ICompositeWorldObjectUpdatedEvent
public cz.cuni.amis.pogamut.multi.communication.translator.event.IStaticWorldObjectUpdatedEvent getStaticEvent()
getStaticEvent
in interface cz.cuni.amis.pogamut.multi.communication.translator.event.ICompositeWorldObjectUpdatedEvent
public String toHtmlString()
toHtmlString
in class FlagInfo
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.