nl.tudelft.pogamut.ut2004.agent.module.sensor
Class Projectiles

Package class diagram package Projectiles
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 nl.tudelft.pogamut.ut2004.agent.module.sensor.Projectiles
All Implemented Interfaces:
cz.cuni.amis.pogamut.base.component.IComponent

public class Projectiles
extends cz.cuni.amis.pogamut.base.agent.module.SensorModule<UT2004Bot>

Module to keep track of projectiles. TODO: Horribly inefficient, use listeners. TODO: Needs ILocated on IncomingProjectile.

Author:
mpkorstanje

Field Summary
protected  AgentInfo info
           
 
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
Projectiles(UT2004Bot<?,?,?> agent, AgentInfo info)
           
 
Method Summary
 IncomingProjectile getNearestProjectile()
           
 IncomingProjectile getNearestProjectile(cz.cuni.amis.pogamut.base3d.worldview.object.ILocated location)
           
 IncomingProjectile getNearestProjectile(cz.cuni.amis.pogamut.base3d.worldview.object.ILocated location, double maxDistance)
           
 IncomingProjectile getNearestProjectile(cz.cuni.amis.pogamut.base3d.worldview.object.ILocated location, double maxDistance, ItemType type)
           
 IncomingProjectile getNearestProjectile(cz.cuni.amis.pogamut.base3d.worldview.object.ILocated location, ItemType type)
           
 Map<cz.cuni.amis.pogamut.base.communication.worldview.object.WorldObjectId,IncomingProjectile> getProjectiles()
           
 Collection<IncomingProjectile> getProjectiles(ItemType type)
           
 
Methods inherited from class cz.cuni.amis.pogamut.base.agent.module.AgentModule
cleanUp, 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
 

Field Detail

info

protected AgentInfo info
Constructor Detail

Projectiles

public Projectiles(UT2004Bot<?,?,?> agent,
                   AgentInfo info)
Method Detail

getNearestProjectile

public IncomingProjectile getNearestProjectile()

getProjectiles

public Map<cz.cuni.amis.pogamut.base.communication.worldview.object.WorldObjectId,IncomingProjectile> getProjectiles()

getNearestProjectile

public IncomingProjectile getNearestProjectile(cz.cuni.amis.pogamut.base3d.worldview.object.ILocated location)

getNearestProjectile

public IncomingProjectile getNearestProjectile(cz.cuni.amis.pogamut.base3d.worldview.object.ILocated location,
                                               double maxDistance)

getNearestProjectile

public IncomingProjectile getNearestProjectile(cz.cuni.amis.pogamut.base3d.worldview.object.ILocated location,
                                               ItemType type)

getProjectiles

public Collection<IncomingProjectile> getProjectiles(ItemType type)

getNearestProjectile

public IncomingProjectile getNearestProjectile(cz.cuni.amis.pogamut.base3d.worldview.object.ILocated location,
                                               double maxDistance,
                                               ItemType type)


Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.