コード例 #1
0
ファイル: BattleState.java プロジェクト: snowgit/snowman
 /** 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();
 }