nl.tudelft.pogamut.ut2004.agent.module.sensor
Class Projectiles
java.lang.Object
cz.cuni.amis.pogamut.base.agent.module.AgentModule<AGENT>
cz.cuni.amis.pogamut.base.agent.module.SensorModule<UT2004Bot>
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
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 |
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 |
info
protected AgentInfo info
Projectiles
public Projectiles(UT2004Bot<?,?,?> agent,
AgentInfo info)
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.