Example #1
0
 /** Remove all objects from the world and reset the battle state for a new game */
 public void reset() {
   if (this.world != null) this.world.getDynamicRoot().detachAllChildren();
   EntityManager.getInstance().cleanup();
   ViewManager.getInstance().cleanup();
   InputManager.getInstance().cleanup();
   PhysicsManager.getInstance().cleanup();
   TaskManager.getInstance().cleanup();
   this.count = 0;
   this.game.getClient().getHandler().initialize();
   this.flagGoals.clear();
 }