cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages
Class EntityMessage.EntitySharedMessage

Package class diagram package EntityMessage.EntitySharedMessage
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.EntityMessage.EntitySharedMessage
All Implemented Interfaces:
IWorldObject, ILocated, ISharedWorldObject, Cloneable
Enclosing class:
EntityMessage

public class EntityMessage.EntitySharedMessage
extends EntityShared

Implementation of the shared part of the GameBots2004 message ENT, used to facade ENTMessage.

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.


Field Summary
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
EntityMessage.EntitySharedMessage()
           
 
Method Summary
 EntityMessage.EntitySharedMessage 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.
 String toHtmlString()
           
 String toString()
           
 
Methods inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.EntityShared
getCompositeClass, getSimTime, setSimTime
 
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

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

EntityMessage.EntitySharedMessage

public EntityMessage.EntitySharedMessage()
Method Detail

clone

public EntityMessage.EntitySharedMessage 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 © 2015 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.