|
||||||||||
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.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 | |
---|---|
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.base3d.worldview.object.Location |
getLocation()
An absolute location of the flag (Sent if we can actually see the flag). |
FlagInfoShared |
getShared()
|
String |
getState()
Represents the state the flag is in. |
FlagInfoStatic |
getStatic()
|
Integer |
getTeam()
The owner team of this flag. |
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. |
String |
toHtmlString()
|
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 FlagInfo
public FlagInfoStatic getStatic()
public FlagInfoLocal getLocal()
public FlagInfoShared getShared()
public cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId getId()
FlagInfo
getId
in interface cz.cuni.amis.pogamut.base.communication.worldview.object.IWorldObject
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
getHolder
in class FlagInfo
public Integer getTeam()
FlagInfo
getTeam
in class FlagInfo
public boolean isVisible()
FlagInfo
isVisible
in interface cz.cuni.amis.pogamut.base3d.worldview.object.IViewable
isVisible
in class FlagInfo
public String getState()
FlagInfo
getState
in class FlagInfo
public String toString()
toString
in class FlagInfo
public String toHtmlString()
toHtmlString
in class FlagInfo
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |