cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages
Class ItemMessage.ItemSharedMessage
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.ItemMessage.ItemSharedMessage
- All Implemented Interfaces:
- IWorldObject, ILocated, ISharedWorldObject, Cloneable
- Enclosing class:
- ItemMessage
public class ItemMessage.ItemSharedMessage
- extends ItemShared
Implementation of the shared part of the GameBots2004 message INV, used
to facade INVMessage.
Complete message documentation:
Synchronous/asynchronous message. An object on the ground that
can be picked up.
propertyMap
protected HashMap<PropertyId,ISharedProperty> propertyMap
myLocation
protected LocationProperty myLocation
- Location of the item.
myDropped
protected BooleanProperty myDropped
- Whether it is regular item or one dropped by some bot (usually during dying). Items that are not dropped
usually respawns itself (depends on the game settings) while those that are dropped may be taken only once.
ItemMessage.ItemSharedMessage
public ItemMessage.ItemSharedMessage()
clone
public ItemMessage.ItemSharedMessage clone()
- Specified by:
clone in interface ISharedWorldObject- Specified by:
clone in class ItemShared
getProperty
public ISharedProperty getProperty(PropertyId id)
getProperties
public Map<PropertyId,ISharedProperty> getProperties()
getId
public UnrealId getId()
- Unique Id of the item. This Id represents just item on the
map, not in our inventory.
- Specified by:
getId in interface IWorldObject- Specified by:
getId in class ItemShared
getLocation
public Location getLocation()
- Location of the item.
- Specified by:
getLocation in interface ILocated- Specified by:
getLocation in class ItemShared
isDropped
public boolean isDropped()
- Whether it is regular item or one dropped by some bot (usually during dying). Items that are not dropped
usually respawns itself (depends on the game settings) while those that are dropped may be taken only once.
- Specified by:
isDropped in class ItemShared
toString
public String toString()
- Overrides:
toString in class ItemShared
toHtmlString
public String toHtmlString()
- Overrides:
toHtmlString in class ItemShared
Copyright © 2015 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.