cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages
Class EntityLocalImpl

Package class diagram package EntityLocalImpl
java.lang.Object
  extended by cz.cuni.amis.pogamut.base.communication.messages.InfoMessage
      extended by cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.EntityLocal
          extended by cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.EntityLocalImpl
All Implemented Interfaces:
IWorldObject, ILocalViewable, ILocalWorldObject, ILocalGBViewable, Cloneable

public class EntityLocalImpl
extends EntityLocal

Implementation of the local part 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 EntityLocalImpl.EntityLocalUpdate
           
 
Nested classes/interfaces inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.EntityLocal
EntityLocal.ObjectDisappeared
 
Field Summary
protected  UnrealId Id
          Unique Id of the item.
protected  boolean Visible
          If the item is in the field of view of the bot.
 
Fields inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.EntityLocal
SimTime
 
Constructor Summary
EntityLocalImpl()
          Parameter-less contructor for the message.
EntityLocalImpl(Entity original)
          Cloning constructor from the full message.
EntityLocalImpl(EntityLocal original)
          Cloning constructor from the message part.
EntityLocalImpl(EntityLocalImpl original)
          Cloning constructor from the full message.
EntityLocalImpl(UnrealId Id, boolean Visible)
          Creates new instance of the message Entity.
 
Method Summary
 EntityLocalImpl clone()
           
 UnrealId getId()
          Unique Id of the item.
 EntityLocalImpl getLocal()
           
 ISharedWorldObject getShared()
           
 IStaticWorldObject getStatic()
           
 boolean isVisible()
          If the item is in the field of view of the bot.
 void setSimTime(long SimTime)
          Used by Yylex to slip correct time of the object or programmatically.
 String toHtmlString()
           
 String toString()
           
 
Methods inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.EntityLocal
createDisappearEvent, getCompositeClass, getSimTime
 
Methods inherited from class cz.cuni.amis.pogamut.base.communication.messages.InfoMessage
toJsonLiteral
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

Id

protected UnrealId Id
Unique Id of the item. This Id represents some entity in the world.


Visible

protected boolean Visible
If the item is in the field of view of the bot.

Constructor Detail

EntityLocalImpl

public EntityLocalImpl()
Parameter-less contructor for the message.


EntityLocalImpl

public EntityLocalImpl(UnrealId Id,
                       boolean Visible)
Creates new instance of the message Entity. Generic physical entity that may be present in the world. Works as a hook for custom objects, such as new items from EmohawkRPG extension. Corresponding GameBots message (local part) is ENT.

Parameters:
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.

EntityLocalImpl

public EntityLocalImpl(Entity original)
Cloning constructor from the full message.

Parameters:
original -

EntityLocalImpl

public EntityLocalImpl(EntityLocalImpl original)
Cloning constructor from the full message.

Parameters:
original -

EntityLocalImpl

public EntityLocalImpl(EntityLocal original)
Cloning constructor from the message part.

Parameters:
original -
Method Detail

setSimTime

public void setSimTime(long SimTime)
Description copied from class: EntityLocal
Used by Yylex to slip correct time of the object or programmatically.

Overrides:
setSimTime in class EntityLocal

clone

public EntityLocalImpl clone()
Specified by:
clone in interface ILocalWorldObject
Specified by:
clone in class EntityLocal

getId

public UnrealId getId()
Unique Id of the item. This Id represents some entity in the world.

Specified by:
getId in interface IWorldObject
Specified by:
getId in class EntityLocal

isVisible

public boolean isVisible()
If the item is in the field of view of the bot.

Specified by:
isVisible in interface ILocalViewable
Specified by:
isVisible in class EntityLocal

getLocal

public EntityLocalImpl getLocal()
Overrides:
getLocal in class EntityLocal

getShared

public ISharedWorldObject getShared()
Overrides:
getShared in class EntityLocal

getStatic

public IStaticWorldObject getStatic()
Overrides:
getStatic in class EntityLocal

toString

public String toString()
Overrides:
toString in class EntityLocal

toHtmlString

public String toHtmlString()
Overrides:
toHtmlString in class EntityLocal


Copyright © 2014 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.