cz.cuni.amis.pogamut.ut2004.agent.module.sensor
Class UT2004Items

Package class diagram package UT2004Items
java.lang.Object
  extended by cz.cuni.amis.pogamut.base.agent.module.AgentModule<AGENT>
      extended by cz.cuni.amis.pogamut.base.agent.module.SensorModule<UT2004Bot>
          extended by cz.cuni.amis.pogamut.ut2004.agent.module.sensor.Items
              extended by cz.cuni.amis.pogamut.ut2004.agent.module.sensor.UT2004Items
All Implemented Interfaces:
IComponent

public class UT2004Items
extends Items


Nested Class Summary
 
Nested classes/interfaces inherited from class cz.cuni.amis.pogamut.ut2004.agent.module.sensor.Items
Items.EndMessageListener, Items.ItemPickedUpListener, Items.ItemsListener, Items.MapPointsListener, Items.NavPointListener
 
Field Summary
 
Fields inherited from class cz.cuni.amis.pogamut.ut2004.agent.module.sensor.Items
agentInfo, endMessageListener, game, itemPickedUpListener, itemsListener, mapPointsListener, navPointListener, navPoints, navPointsToProcess, weaponry
 
Fields inherited from class cz.cuni.amis.pogamut.base.agent.module.SensorModule
worldView
 
Fields inherited from class cz.cuni.amis.pogamut.base.agent.module.AgentModule
agent, controller, eventBus, log
 
Constructor Summary
UT2004Items(UT2004Bot bot, AgentInfo agentInfo, Game game, Weaponry weaponry, Logger log)
           
 
Method Summary
 double getItemRespawnTime(ItemType itemType)
          Returns how fast are the items respawning based on their item type (in real seconds according to System.currentTimeMillis().
 boolean isPickable(Item item)
          Method that determines whether 'item' is pickable in the current state of the bot.
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UT2004Items

public UT2004Items(UT2004Bot bot,
                   AgentInfo agentInfo,
                   Game game,
                   Weaponry weaponry,
                   Logger log)
Method Detail

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.