public class FlagInfoCompositeImpl extends FlagInfo
FlagInfo.FlagInfoUpdate, FlagInfo.ObjectDisappeared
Modifier and Type | Field and Description |
---|---|
protected FlagInfoLocalImpl |
partLocal |
protected FlagInfoStaticImpl |
partStatic |
Constructor and Description |
---|
FlagInfoCompositeImpl()
Parameter-less contructor for the message.
|
FlagInfoCompositeImpl(FlagInfoCompositeImpl original)
Cloning constructor.
|
FlagInfoCompositeImpl(FlagInfoLocalImpl partLocal,
FlagInfoSharedImpl partShared,
FlagInfoStaticImpl partStatic)
Composite-impl constructor.
|
Modifier and Type | Method and Description |
---|---|
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() |
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() |
createDisappearEvent, getSimTime, toJsonLiteral
protected FlagInfoStaticImpl partStatic
protected FlagInfoLocalImpl partLocal
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
- public void setSimTime(long SimTime)
FlagInfo
setSimTime
in class FlagInfo
public FlagInfoStatic getStatic()
public FlagInfoLocal getLocal()
public FlagInfoShared getShared()
public UnrealId getId()
FlagInfo
getId
in interface IWorldObject
getId
in class FlagInfo
public Location getLocation()
FlagInfo
getLocation
in class FlagInfo
public UnrealId getHolder()
FlagInfo
public Integer getTeam()
FlagInfo
public boolean isVisible()
FlagInfo
public String getState()
FlagInfo
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.