|
||||||||||
| 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 EntitySharedpublic EntitySharedImpl clone()
clone in interface ISharedWorldObjectclone in class EntitySharedpublic ISharedProperty getProperty(PropertyId id)
public Map<PropertyId,ISharedProperty> getProperties()
public UnrealId getId()
getId in interface IWorldObjectgetId in class EntitySharedpublic Location getLocation()
getLocation in interface ILocatedgetLocation in class EntitySharedpublic Rotation getRotation()
getRotation in class EntitySharedpublic Velocity getVelocity()
getVelocity in class EntitySharedpublic String toString()
toString in class EntitySharedpublic String toHtmlString()
toHtmlString in class EntityShared
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||