cz.cuni.amis.pogamut.ut2004.agent.module.sensor
Class UT2004Items
java.lang.Object
cz.cuni.amis.pogamut.base.agent.module.AgentModule<AGENT>
cz.cuni.amis.pogamut.base.agent.module.SensorModule<UT2004Bot>
cz.cuni.amis.pogamut.ut2004.agent.module.sensor.Items
cz.cuni.amis.pogamut.ut2004.agent.module.sensor.UT2004Items
- All Implemented Interfaces:
- IComponent
public class UT2004Items
- extends Items
Methods inherited from class cz.cuni.amis.pogamut.ut2004.agent.module.sensor.Items |
cleanUp, createItemsListener, createMapPointsListener, getAllItems, getAllItems, getAllItems, getAllItems, getItem, getItem, getItemRespawnTime, getItemRespawnUT2004Time, getItemRespawnUT2004Time, getKnownPickup, getKnownPickup, getKnownPickups, getKnownPickups, getKnownPickups, getKnownPickups, getRandomItem, getSpawnedItems, getSpawnedItems, getSpawnedItems, getSpawnedItems, getVisibleItem, getVisibleItem, getVisibleItems, getVisibleItems, getVisibleItems, getVisibleItems, isPickupSpawned, isPickupSpawned |
Methods inherited from class cz.cuni.amis.pogamut.base.agent.module.AgentModule |
getComponentId, getLog, getState, initComponentId, isRunning, kill, pause, reset, resume, start, stop, toString |
UT2004Items
public UT2004Items(UT2004Bot bot,
AgentInfo agentInfo,
Game game,
Weaponry weaponry,
Logger log)
isPickable
public boolean isPickable(Item item)
- Description copied from class:
Items
- Method that determines whether 'item' is pickable in the current state of the bot.
E.g., it asseses health for health items, ammo for weapons & ammo, etc.
Contributed by: David Holan
- Specified by:
isPickable
in class Items
- Returns:
getItemRespawnTime
public double getItemRespawnTime(ItemType itemType)
- Description copied from class:
Items
- Returns how fast are the items respawning based on their item type (in real seconds according to
System.currentTimeMillis()
.
- Specified by:
getItemRespawnTime
in class Items
- Returns:
Copyright © 2014 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.