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

Package class diagram package EntitySharedImpl
java.lang.Object
  extended by cz.cuni.amis.pogamut.base.communication.messages.InfoMessage
      extended by cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.EntityShared
          extended by cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.EntitySharedImpl
All Implemented Interfaces:
IWorldObject, ILocated, ISharedWorldObject, Cloneable

public class EntitySharedImpl
extends EntityShared

Implementation of the shared 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 EntitySharedImpl.EntitySharedUpdate
           
 
Field Summary
protected  UnrealId Id
          Unique Id of the item.
protected  LocationProperty myLocation
          Location of the item.
protected  RotationProperty myRotation
          Rotation of the item.
protected  VelocityProperty myVelocity
          Velocity of the item.
protected  HashMap<PropertyId,ISharedProperty> propertyMap
           
 
Fields inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.EntityShared
LocationPropertyToken, RotationPropertyToken, SharedPropertyTokens, SimTime, VelocityPropertyToken
 
Constructor Summary
EntitySharedImpl(EntitySharedImpl source)
           
EntitySharedImpl(WorldObjectId objectId, Collection<ISharedProperty> properties)
           
 
Method Summary
 EntitySharedImpl clone()
           
 UnrealId getId()
          Unique Id of the item.
 Location getLocation()
          Location of the item.
 Map<PropertyId,ISharedProperty> getProperties()
           
 ISharedProperty getProperty(PropertyId id)
           
 Rotation getRotation()
          Rotation of the item.
 Velocity getVelocity()
          Velocity of the item.
 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.EntityShared
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

propertyMap

protected HashMap<PropertyId,ISharedProperty> propertyMap

Id

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


myLocation

protected LocationProperty myLocation
Location of the item.


myRotation

protected RotationProperty myRotation
Rotation of the item.


myVelocity

protected VelocityProperty myVelocity
Velocity of the item.

Constructor Detail

EntitySharedImpl

public EntitySharedImpl(EntitySharedImpl source)

EntitySharedImpl

public EntitySharedImpl(WorldObjectId objectId,
                        Collection<ISharedProperty> properties)
Method Detail

setSimTime

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

Overrides:
setSimTime in class EntityShared

clone

public EntitySharedImpl clone()
Specified by:
clone in interface ISharedWorldObject
Specified by:
clone in class EntityShared

getProperty

public ISharedProperty getProperty(PropertyId id)

getProperties

public Map<PropertyId,ISharedProperty> getProperties()

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 EntityShared

getLocation

public Location getLocation()
Location of the item.

Specified by:
getLocation in interface ILocated
Specified by:
getLocation in class EntityShared

getRotation

public Rotation getRotation()
Rotation of the item.

Specified by:
getRotation in class EntityShared

getVelocity

public Velocity getVelocity()
Velocity of the item.

Specified by:
getVelocity in class EntityShared

toString

public String toString()
Overrides:
toString in class EntityShared

toHtmlString

public String toHtmlString()
Overrides:
toHtmlString in class EntityShared


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