|
||||||||||
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.EntityShared
cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.EntitySharedImpl
public class EntitySharedImpl
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 |
---|
protected HashMap<PropertyId,ISharedProperty> propertyMap
protected UnrealId Id
protected LocationProperty myLocation
protected RotationProperty myRotation
protected VelocityProperty myVelocity
Constructor Detail |
---|
public EntitySharedImpl(EntitySharedImpl source)
public EntitySharedImpl(WorldObjectId objectId, Collection<ISharedProperty> properties)
Method Detail |
---|
public void setSimTime(long SimTime)
EntityShared
setSimTime
in class EntityShared
public EntitySharedImpl clone()
clone
in interface ISharedWorldObject
clone
in class EntityShared
public ISharedProperty getProperty(PropertyId id)
public Map<PropertyId,ISharedProperty> getProperties()
public UnrealId getId()
getId
in interface IWorldObject
getId
in class EntityShared
public Location getLocation()
getLocation
in interface ILocated
getLocation
in class EntityShared
public Rotation getRotation()
getRotation
in class EntityShared
public Velocity getVelocity()
getVelocity
in class EntityShared
public String toString()
toString
in class EntityShared
public String toHtmlString()
toHtmlString
in class EntityShared
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |