/** * Resets this game. */ public synchronized void reset() { roundCount = 0; entities.clear(); entityIds.clear(); entityPosLookup.clear(); vOutOfGame.removeAllElements(); turnVector.clear(); turnIndex = 0; resetActions(); resetCharges(); resetRams(); resetPSRs(); resetArtilleryAttacks(); resetAttacks(); // removeMinefields(); Broken and bad! clearMinefields(); removeArtyAutoHitHexes(); flares.removeAllElements(); illuminatedPositions.clear(); clearAllReports(); smokeCloudList.clear(); forceVictory = false; victoryPlayerId = Player.PLAYER_NONE; victoryTeam = Player.TEAM_NONE; lastEntityId = 0; planetaryConditions = new PlanetaryConditions(); }
case PHASE_INITIATIVE: resetActions(); resetCharges(); resetRams(); break; resetCharges(); resetRams(); break;