|
||||||||||
| 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.udk.communication.messages.GBObjectUpdate
cz.cuni.amis.pogamut.udk.communication.messages.gbinfomessages.AliveMessage
public class AliveMessage
Synchronous message. Alive message are for confirmation, that the connection is still working. They are sent periodically with usual period of one second (this can change depending on the configuration of ControlServer) Corresponding GameBots message is ALIVE.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface cz.cuni.amis.pogamut.base.communication.translator.event.IWorldObjectUpdatedEvent |
|---|
cz.cuni.amis.pogamut.base.communication.translator.event.IWorldObjectUpdatedEvent.DestroyWorldObject |
| Field Summary | |
|---|---|
static cz.cuni.amis.pogamut.unreal.communication.messages.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 Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId |
getId()
|
double |
getLastSeenTime()
|
cz.cuni.amis.pogamut.multi.communication.worldview.object.ILocalWorldObject |
getLocal()
|
cz.cuni.amis.pogamut.base.communication.worldview.object.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). |
cz.cuni.amis.pogamut.multi.communication.worldview.object.ISharedWorldObject |
getShared()
|
long |
getSimTime()
|
cz.cuni.amis.pogamut.multi.communication.worldview.object.IStaticWorldObject |
getStatic()
|
double |
getTime()
Game time when this message was send. |
int |
hashCode()
|
protected void |
setTime(double time)
|
String |
toHtmlString()
|
String |
toString()
|
cz.cuni.amis.pogamut.base.communication.translator.event.IWorldObjectUpdateResult |
update(cz.cuni.amis.pogamut.base.communication.worldview.object.IWorldObject obj)
|
| Methods inherited from class cz.cuni.amis.pogamut.base.communication.messages.InfoMessage |
|---|
toJsonLiteral |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String PROTOTYPE
protected double Time
public static final cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId AliveMessageId
| Constructor Detail |
|---|
public AliveMessage(double Time)
Time - Game time when this message was send.public AliveMessage(AliveMessage original)
public AliveMessage()
| Method Detail |
|---|
public double getTime()
public cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId getId()
getId in interface cz.cuni.amis.pogamut.base.communication.translator.event.IWorldObjectUpdatedEventgetId in interface cz.cuni.amis.pogamut.base.communication.worldview.object.IWorldObjectprotected void setTime(double time)
public double getLastSeenTime()
public cz.cuni.amis.pogamut.multi.communication.worldview.object.ILocalWorldObject getLocal()
public cz.cuni.amis.pogamut.multi.communication.worldview.object.ISharedWorldObject getShared()
public cz.cuni.amis.pogamut.multi.communication.worldview.object.IStaticWorldObject getStatic()
public long getSimTime()
getSimTime in interface cz.cuni.amis.pogamut.base.communication.translator.event.IWorldChangeEventgetSimTime in interface cz.cuni.amis.pogamut.base.communication.worldview.object.IWorldObjectpublic boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic cz.cuni.amis.pogamut.base.communication.translator.event.IWorldObjectUpdateResult update(cz.cuni.amis.pogamut.base.communication.worldview.object.IWorldObject obj)
update in interface cz.cuni.amis.pogamut.base.communication.translator.event.IWorldObjectUpdatedEventpublic cz.cuni.amis.pogamut.base.communication.worldview.object.IWorldObject getObject()
public String toString()
toString in class cz.cuni.amis.pogamut.base.communication.messages.InfoMessagepublic String toHtmlString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||