public class AliveMessage extends GBObjectUpdate implements IGBWorldObjectEvent, IWorldObject
IWorldObjectUpdatedEvent.DestroyWorldObject| Modifier and Type | Field and Description |
|---|---|
static UnrealId |
AliveMessageId |
static String |
PROTOTYPE
Example how the message looks like - used during parser tests.
|
protected double |
Time
Game time when this message was send.
|
| Constructor and Description |
|---|
AliveMessage()
Used by Yylex to create empty message then to fill it's protected fields (Yylex is in the same package).
|
AliveMessage(AliveMessage original)
Cloning constructor.
|
AliveMessage(double Time)
Creates new instance of command AliveMessage.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
UnrealId |
getId() |
double |
getLastSeenTime() |
ILocalWorldObject |
getLocal() |
IWorldObject |
getObject()
Returns original object (if method update() has already been called, for bot-programmer that is always true
as the original object is updated and then the event is propagated).
|
ISharedWorldObject |
getShared() |
long |
getSimTime() |
IStaticWorldObject |
getStatic() |
double |
getTime()
Game time when this message was send.
|
int |
hashCode() |
protected void |
setTime(double time) |
String |
toHtmlString() |
String |
toString() |
IWorldObjectUpdateResult |
update(IWorldObject obj) |
toJsonLiteralpublic static final String PROTOTYPE
protected double Time
public static final UnrealId AliveMessageId
public AliveMessage(double Time)
Time - Game time when this message was send.public AliveMessage(AliveMessage original)
public AliveMessage()
public double getTime()
public UnrealId getId()
getId in interface IWorldObjectUpdatedEventgetId in interface IWorldObjectprotected void setTime(double time)
public double getLastSeenTime()
public ILocalWorldObject getLocal()
public ISharedWorldObject getShared()
public IStaticWorldObject getStatic()
public long getSimTime()
getSimTime in interface IWorldChangeEventgetSimTime in interface IWorldObjectpublic IWorldObjectUpdateResult update(IWorldObject obj)
update in interface IWorldObjectUpdatedEventpublic IWorldObject getObject()
public String toString()
toString in class InfoMessagepublic String toHtmlString()
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.