cz.cuni.amis.pogamut.ut2004.agent.module.utils
Class ProjectileCleanUp

Package class diagram package ProjectileCleanUp
java.lang.Object
  extended by 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

Constructor Summary
ProjectileCleanUp(UT2004Bot bot)
           
 
Method Summary
 void disable()
           
 void enable()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProjectileCleanUp

public ProjectileCleanUp(UT2004Bot bot)
Method Detail

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.