|
||||||||||
| 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.Entity
public abstract class Entity
Abstract definition of the GameBots2004 message ENT.
Complete message documentation: Generic physical entity that may be present in the world. Works as a hook for custom objects, such as new items from EmohawkRPG extension.
| Nested Class Summary | |
|---|---|
static class |
Entity.EntityUpdate
|
static class |
Entity.ObjectDisappeared
|
| Field Summary | |
|---|---|
static String |
PROTOTYPE
Example how the message looks like - used during parser tests. |
protected long |
SimTime
|
| Constructor Summary | |
|---|---|
Entity()
Parameter-less contructor for the message. |
|
| Method Summary | |
|---|---|
IWorldObjectUpdatedEvent |
createDisappearEvent()
Creates an update event that has to update visibility to false. |
abstract String |
getEntityClass()
Type (category) of the entity. |
abstract UnrealId |
getId()
Unique Id of the item. |
abstract Location |
getLocation()
Location of the item. |
abstract Rotation |
getRotation()
Rotation of the item. |
long |
getSimTime()
Simulation time in MILLI SECONDS !!! |
abstract String |
getType()
Type (category) of the entity. |
abstract Velocity |
getVelocity()
Velocity of the item. |
abstract boolean |
isVisible()
If the item is in the field of view of the bot. |
protected void |
setSimTime(long SimTime)
Used by Yylex to slip correct time of the object or programmatically. |
String |
toHtmlString()
|
String |
toJsonLiteral()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface cz.cuni.amis.pogamut.multi.communication.worldview.object.ICompositeWorldObject |
|---|
getLocal, getShared, getStatic |
| Field Detail |
|---|
public static final String PROTOTYPE
protected long SimTime
| Constructor Detail |
|---|
public Entity()
| Method Detail |
|---|
public long getSimTime()
getSimTime in interface IWorldChangeEventgetSimTime in interface IWorldEventgetSimTime in interface IWorldObjectprotected void setSimTime(long SimTime)
public abstract UnrealId getId()
getId in interface IWorldObjectpublic abstract boolean isVisible()
isVisible in interface IViewablepublic abstract Location getLocation()
getLocation in interface ILocatedpublic abstract Rotation getRotation()
public abstract Velocity getVelocity()
public abstract String getType()
public abstract String getEntityClass()
public IWorldObjectUpdatedEvent createDisappearEvent()
IGBViewable
createDisappearEvent in interface IGBViewablepublic String toString()
toString in class InfoMessagepublic String toHtmlString()
public String toJsonLiteral()
toJsonLiteral in class InfoMessage
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||