|
|||||||||
| 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.FlagInfoCompositeImpl
public class FlagInfoCompositeImpl

Composite implementation of the FLG abstract message. It wraps Local/Shared/Static parts in single object allowing to presenting a nice facade for users.
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 |
|---|
| Nested classes/interfaces inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.FlagInfo |
|---|
FlagInfo.FlagInfoUpdate, FlagInfo.ObjectDisappeared |
| Field Summary | |
|---|---|
protected FlagInfoLocalImpl |
partLocal
|
protected FlagInfoStaticImpl |
partStatic
|
| Fields inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.FlagInfo |
|---|
PROTOTYPE, SimTime |
| Constructor Summary | |
|---|---|
FlagInfoCompositeImpl()
Parameter-less contructor for the message. |
|
FlagInfoCompositeImpl(FlagInfoCompositeImpl original)
Cloning constructor. |
|
FlagInfoCompositeImpl(FlagInfoLocalImpl partLocal,
FlagInfoSharedImpl partShared,
FlagInfoStaticImpl partStatic)
Composite-impl constructor. |
|
| 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. |
boolean |
isReachable()
True if the bot can run here directly, false otherwise. |
boolean |
isVisible()
True if the bot can see the flag. |
void |
setSimTime(long SimTime)
Used by Yylex to slip correct time of the object or programmatically. |
java.lang.String |
toHtmlString()
|
java.lang.String |
toString()
|
| Methods inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.FlagInfo |
|---|
createDisappearEvent, getSimTime |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected FlagInfoStaticImpl partStatic
protected FlagInfoLocalImpl partLocal
| Constructor Detail |
|---|
public FlagInfoCompositeImpl()
public FlagInfoCompositeImpl(FlagInfoLocalImpl partLocal,
FlagInfoSharedImpl partShared,
FlagInfoStaticImpl partStatic)
partLocal - local-part of the messagepartShared - shared-part of the messagepartStatic - static-part of the messagepublic FlagInfoCompositeImpl(FlagInfoCompositeImpl original)
original - | Method Detail |
|---|
public void setSimTime(long SimTime)
FlagInfo
setSimTime in class FlagInfopublic FlagInfoStatic getStatic()
public FlagInfoLocal getLocal()
public FlagInfoShared getShared()
public UnrealId getId()
FlagInfo
getId in interface IWorldObjectgetId in class FlagInfopublic Location getLocation()
FlagInfo
getLocation in class FlagInfopublic UnrealId getHolder()
FlagInfo
getHolder in class FlagInfopublic java.lang.Integer getTeam()
FlagInfo
getTeam in class FlagInfopublic boolean isReachable()
FlagInfo
isReachable in class FlagInfopublic boolean isVisible()
FlagInfo
isVisible in interface IViewableisVisible in class FlagInfopublic java.lang.String getState()
FlagInfo
getState in class FlagInfopublic java.lang.String toString()
toString in class FlagInfopublic java.lang.String toHtmlString()
toHtmlString in class FlagInfo
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||