cz.cuni.amis.pogamut.ut2004.agent.module.utils
Class ProjectileCleanUp
java.lang.Object
cz.cuni.amis.pogamut.ut2004.agent.module.utils.ProjectileCleanUp
public class ProjectileCleanUp
- extends Object
Clean-up module for destroying IncomingProjectile objects within worldview.
Whenever projectile disappears from the view (becomes non-visible), it is immediately destroyed (this class rises IWorldObjectUpdatedEvent.DestroyWorldObject event for it)
as bot does not know what happens to projectile afterwards (whether it is still flying or already hit something). If we would not do this,
world view would have got littered with in-fact-non-existing IncomingProjectile instances leaking memory.
Automatically used by UT2004Bot.
You may at any time enable() or disable() this clean-up behavior (it is enabled by default).
- Author:
- Jimmy
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProjectileCleanUp
public ProjectileCleanUp(UT2004Bot bot)
enable
public void enable()
disable
public void disable()
Copyright © 2014 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.