|
||||||||||
| 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
cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.EntityMessage
public class EntityMessage
Implementation of the GameBots2004 message ENT contains also its Local/Shared/Static subpart class definitions..
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 | |
|---|---|
class |
EntityMessage.EntityLocalMessage
Implementation of the local part of the GameBots2004 message ENT, used to facade ENTMessage. |
class |
EntityMessage.EntitySharedMessage
Implementation of the shared part of the GameBots2004 message ENT, used to facade ENTMessage. |
class |
EntityMessage.EntityStaticMessage
Implementation of the static part of the GameBots2004 message ENT, used to facade ENTMessage. |
| Nested classes/interfaces inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.Entity |
|---|
Entity.EntityUpdate, Entity.ObjectDisappeared |
| Nested classes/interfaces inherited from interface cz.cuni.amis.pogamut.base.communication.translator.event.IWorldObjectUpdatedEvent |
|---|
IWorldObjectUpdatedEvent.DestroyWorldObject |
| Field Summary | |
|---|---|
protected String |
EntityClass
Type (category) of the entity. |
protected boolean |
EntityClass_Set
Whether property 'EntityClass' was received from GB2004. |
protected UnrealId |
Id
Unique Id of the item. |
protected boolean |
Id_Set
Whether property 'Id' was received from GB2004. |
protected Location |
Location
Location of the item. |
protected boolean |
Location_Set
Whether property 'Location' was received from GB2004. |
protected Rotation |
Rotation
Rotation of the item. |
protected boolean |
Rotation_Set
Whether property 'Rotation' was received from GB2004. |
protected ITeamId |
TeamId
|
protected String |
Type
Type (category) of the entity. |
protected boolean |
Type_Set
Whether property 'Type' was received from GB2004. |
protected Velocity |
Velocity
Velocity of the item. |
protected boolean |
Velocity_Set
Whether property 'Velocity' was received from GB2004. |
protected boolean |
Visible
If the item is in the field of view of the bot. |
protected boolean |
Visible_Set
Whether property 'Visible' was received from GB2004. |
| Fields inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.Entity |
|---|
PROTOTYPE, SimTime |
| Constructor Summary | |
|---|---|
EntityMessage()
Parameter-less contructor for the message. |
|
EntityMessage(EntityMessage original)
Cloning constructor from the full message. |
|
EntityMessage(UnrealId Id,
boolean Visible,
Location Location,
Rotation Rotation,
Velocity Velocity,
String Type,
String EntityClass)
Creates new instance of the message Entity. |
|
| Method Summary | |
|---|---|
String |
getEntityClass()
Type (category) of the entity. |
UnrealId |
getId()
Unique Id of the item. |
EntityLocal |
getLocal()
|
ILocalWorldObjectUpdatedEvent |
getLocalEvent()
|
Location |
getLocation()
Location of the item. |
Rotation |
getRotation()
Rotation of the item. |
EntityShared |
getShared()
|
ISharedWorldObjectUpdatedEvent |
getSharedEvent()
|
EntityStatic |
getStatic()
|
IStaticWorldObjectUpdatedEvent |
getStaticEvent()
|
ITeamId |
getTeamId()
|
String |
getType()
Type (category) of the entity. |
Velocity |
getVelocity()
Velocity of the item. |
boolean |
isVisible()
If the item is in the field of view of the bot. |
protected void |
setTeamId(ITeamId TeamId)
Used by Yylex to slip corretn TeamId. |
String |
toHtmlString()
|
String |
toString()
|
IWorldObjectUpdateResult<IWorldObject> |
update(IWorldObject object)
|
| Methods inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.Entity |
|---|
createDisappearEvent, getSimTime, setSimTime, toJsonLiteral |
| 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.base.communication.translator.event.IWorldChangeEvent |
|---|
getSimTime |
| Field Detail |
|---|
protected ITeamId TeamId
protected UnrealId Id
protected boolean Id_Set
protected boolean Visible
protected boolean Visible_Set
protected Location Location
protected boolean Location_Set
protected Rotation Rotation
protected boolean Rotation_Set
protected Velocity Velocity
protected boolean Velocity_Set
protected String Type
protected boolean Type_Set
protected String EntityClass
protected boolean EntityClass_Set
| Constructor Detail |
|---|
public EntityMessage()
public EntityMessage(UnrealId Id,
boolean Visible,
Location Location,
Rotation Rotation,
Velocity Velocity,
String Type,
String EntityClass)
Id - Unique Id of the item. This Id represents some entity in the world.Visible - If the item is in the field of view of the bot.Location - Location of the item.Rotation - Rotation of the item.Velocity - Velocity of the item.Type - Type (category) of the entity.EntityClass - Type (category) of the entity.public EntityMessage(EntityMessage original)
original - | Method Detail |
|---|
protected void setTeamId(ITeamId TeamId)
public ITeamId getTeamId()
public UnrealId getId()
Entity
getId in interface IWorldObjectUpdatedEventgetId in interface IWorldObjectgetId in interface ICompositeWorldObjectUpdatedEventgetId in class Entitypublic boolean isVisible()
Entity
isVisible in interface IViewableisVisible in class Entitypublic Location getLocation()
Entity
getLocation in interface ILocatedgetLocation in class Entitypublic Rotation getRotation()
Entity
getRotation in class Entitypublic Velocity getVelocity()
Entity
getVelocity in class Entitypublic String getType()
Entity
getType in class Entitypublic String getEntityClass()
Entity
getEntityClass in class Entitypublic EntityLocal getLocal()
getLocal in interface ICompositeWorldObjectpublic EntityShared getShared()
getShared in interface ICompositeWorldObjectpublic EntityStatic getStatic()
getStatic in interface ICompositeWorldObjectpublic IWorldObjectUpdateResult<IWorldObject> update(IWorldObject object)
update in interface IWorldObjectUpdatedEventpublic ILocalWorldObjectUpdatedEvent getLocalEvent()
getLocalEvent in interface ICompositeWorldObjectUpdatedEventpublic ISharedWorldObjectUpdatedEvent getSharedEvent()
getSharedEvent in interface ICompositeWorldObjectUpdatedEventpublic IStaticWorldObjectUpdatedEvent getStaticEvent()
getStaticEvent in interface ICompositeWorldObjectUpdatedEventpublic String toString()
toString in class Entitypublic String toHtmlString()
toHtmlString in class Entity
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||