|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cz.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 |
Field Summary | |
---|---|
protected UnrealId |
Holder
Id of player/bot holding the flag. |
protected UnrealId |
Id
An unique Id for this flag, assigned by the game. |
protected Location |
Location
An absolute location of the flag (Sent if we can actually see the flag). |
protected boolean |
Reachable
True if the bot can run here directly, false otherwise. |
protected java.lang.String |
State
Represents the state the flag is in. |
protected java.lang.Integer |
Team
The owner team of this flag. |
protected ITeamId |
TeamId
|
protected boolean |
Visible
True if the bot can see the flag. |
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,
java.lang.Integer Team,
boolean Reachable,
boolean Visible,
java.lang.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()
|
Location |
getLocation()
An absolute location of the flag (Sent if we can actually see the flag). |
FlagInfoShared |
getShared()
|
java.lang.String |
getState()
Represents the state the flag is in. |
FlagInfoStatic |
getStatic()
|
java.lang.Integer |
getTeam()
The owner team of this flag. |
ITeamId |
getTeamId()
|
boolean |
isReachable()
True if the bot can run here directly, false otherwise. |
boolean |
isVisible()
True if the bot can see the flag. |
protected void |
setTeamId(ITeamId TeamId)
Used by Yylex to slip corretn TeamId. |
java.lang.String |
toHtmlString()
|
java.lang.String |
toString()
|
IWorldObjectUpdateResult<IWorldObject> |
update(IWorldObject object)
|
Methods inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.FlagInfo |
---|
createDisappearEvent, getSimTime, setSimTime |
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 Location Location
protected UnrealId Holder
protected java.lang.Integer Team
protected boolean Reachable
protected boolean Visible
protected java.lang.String State
Constructor Detail |
---|
public FlagInfoMessage()
public FlagInfoMessage(UnrealId Id, Location Location, UnrealId Holder, java.lang.Integer Team, boolean Reachable, boolean Visible, java.lang.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.Reachable
- True if the bot can run here directly, false otherwise.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 IWorldObjectUpdatedEvent
getId
in interface IWorldObject
getId
in class FlagInfo
public Location getLocation()
FlagInfo
getLocation
in class FlagInfo
public UnrealId getHolder()
FlagInfo
getHolder
in class FlagInfo
public java.lang.Integer getTeam()
FlagInfo
getTeam
in class FlagInfo
public boolean isReachable()
FlagInfo
isReachable
in class FlagInfo
public boolean isVisible()
FlagInfo
isVisible
in interface IViewable
isVisible
in class FlagInfo
public java.lang.String getState()
FlagInfo
getState
in class FlagInfo
public FlagInfoLocal getLocal()
getLocal
in interface ICompositeWorldObject
public FlagInfoShared getShared()
getShared
in interface ICompositeWorldObject
public FlagInfoStatic getStatic()
getStatic
in interface ICompositeWorldObject
public IWorldObjectUpdateResult<IWorldObject> update(IWorldObject object)
update
in interface IWorldObjectUpdatedEvent
public java.lang.String toString()
toString
in class FlagInfo
public java.lang.String toHtmlString()
toHtmlString
in class FlagInfo
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |