|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cz.cuni.amis.pogamut.base.communication.messages.InfoMessage cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.ItemShared cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.ItemSharedImpl
public class ItemSharedImpl
Implementation of the shared part of the GameBots2004 message INV.
Complete message documentation: Synchronous/asynchronous message. An object on the ground that can be picked up.
Nested Class Summary | |
---|---|
static class |
ItemSharedImpl.ItemSharedUpdate
|
Field Summary | |
---|---|
protected UnrealId |
Id
Unique Id of the item. |
protected BooleanProperty |
myDropped
Whether it is regular item or one dropped by some bot (usually during dying). |
protected LocationProperty |
myLocation
Location of the item. |
protected java.util.HashMap<PropertyId,ISharedProperty> |
propertyMap
|
Fields inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.ItemShared |
---|
DroppedPropertyToken, LocationPropertyToken, SharedPropertyTokens, SimTime |
Constructor Summary | |
---|---|
ItemSharedImpl(ItemSharedImpl source)
|
|
ItemSharedImpl(WorldObjectId objectId,
java.util.Collection<ISharedProperty> properties)
|
Method Summary | |
---|---|
ItemSharedImpl |
clone()
|
UnrealId |
getId()
Unique Id of the item. |
Location |
getLocation()
Location of the item. |
java.util.Map<PropertyId,ISharedProperty> |
getProperties()
|
ISharedProperty |
getProperty(PropertyId id)
|
boolean |
isDropped()
Whether it is regular item or one dropped by some bot (usually during dying). |
void |
setSimTime(long SimTime)
Used by Yylex to slip correct time of the object or programmatically. |
java.lang.String |
toHtmlString()
|
java.lang.String |
toString()
|
Methods inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.ItemShared |
---|
getCompositeClass, getSimTime |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.util.HashMap<PropertyId,ISharedProperty> propertyMap
protected UnrealId Id
protected LocationProperty myLocation
protected BooleanProperty myDropped
Constructor Detail |
---|
public ItemSharedImpl(ItemSharedImpl source)
public ItemSharedImpl(WorldObjectId objectId, java.util.Collection<ISharedProperty> properties)
Method Detail |
---|
public void setSimTime(long SimTime)
ItemShared
setSimTime
in class ItemShared
public ItemSharedImpl clone()
clone
in interface ISharedWorldObject
clone
in class ItemShared
public ISharedProperty getProperty(PropertyId id)
public java.util.Map<PropertyId,ISharedProperty> getProperties()
public UnrealId getId()
getId
in interface IWorldObject
getId
in class ItemShared
public Location getLocation()
getLocation
in interface ILocated
getLocation
in class ItemShared
public boolean isDropped()
isDropped
in class ItemShared
public java.lang.String toString()
toString
in class ItemShared
public java.lang.String toHtmlString()
toHtmlString
in class ItemShared
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |