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

Package class diagram package EntityStaticImpl
java.lang.Object
  extended by cz.cuni.amis.pogamut.base.communication.messages.InfoMessage
      extended by cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.EntityStatic
          extended by cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.EntityStaticImpl
All Implemented Interfaces:
IWorldObject, IStaticWorldObject

public class EntityStaticImpl
extends EntityStatic

Implementation of the static 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 EntityStaticImpl.EntityStaticUpdate
           
 
Field Summary
protected  String EntityClass
          Type (category) of the entity.
protected  UnrealId Id
          Unique Id of the item.
protected  String Type
          Type (category) of the entity.
 
Fields inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.EntityStatic
SimTime
 
Constructor Summary
EntityStaticImpl()
          Parameter-less contructor for the message.
EntityStaticImpl(Entity original)
          Cloning constructor from the full message.
EntityStaticImpl(EntityStatic original)
          Cloning constructor from the message part.
EntityStaticImpl(EntityStaticImpl original)
          Cloning constructor from the full message.
EntityStaticImpl(UnrealId Id, String Type, String EntityClass)
          Creates new instance of the message Entity.
 
Method Summary
 EntityStaticImpl clone()
           
 String getEntityClass()
          Type (category) of the entity.
 UnrealId getId()
          Unique Id of the item.
 String getType()
          Type (category) of the entity.
 boolean isDifferentFrom(IStaticWorldObject other)
           
 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.EntityStatic
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.


Type

protected String Type
Type (category) of the entity.


EntityClass

protected String EntityClass
Type (category) of the entity.

Constructor Detail

EntityStaticImpl

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


EntityStaticImpl

public EntityStaticImpl(UnrealId Id,
                        String Type,
                        String EntityClass)
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 (static part) is ENT.

Parameters:
Id - Unique Id of the item. This Id represents some entity in the world.
Type - Type (category) of the entity.
EntityClass - Type (category) of the entity.

EntityStaticImpl

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

Parameters:
original -

EntityStaticImpl

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

Parameters:
original -

EntityStaticImpl

public EntityStaticImpl(EntityStatic original)
Cloning constructor from the message part.

Parameters:
original -
Method Detail

setSimTime

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

Overrides:
setSimTime in class EntityStatic

clone

public EntityStaticImpl clone()
Specified by:
clone in class EntityStatic

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 EntityStatic

getType

public String getType()
Type (category) of the entity.

Specified by:
getType in class EntityStatic

getEntityClass

public String getEntityClass()
Type (category) of the entity.

Specified by:
getEntityClass in class EntityStatic

isDifferentFrom

public boolean isDifferentFrom(IStaticWorldObject other)
Specified by:
isDifferentFrom in interface IStaticWorldObject
Overrides:
isDifferentFrom in class EntityStatic

toString

public String toString()
Overrides:
toString in class EntityStatic

toHtmlString

public String toHtmlString()
Overrides:
toHtmlString in class EntityStatic


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