Beispiel #1
0
	MessagesDisplay() : show(true)
	{
#ifdef DEBUG
		showBuilList = false;
#endif
		CleanMessages();
	}
Beispiel #2
0
/**
**  Cleanup modules.
**
**  Call each module to clean up.
*/
void CleanModules()
{
	EndReplayLog();
	CleanMessages();

	CleanIcons();
	CleanCursors();
	CleanUserInterface();
	CleanFonts();
	CleanTriggers();
	FreeAi();
	PlayerRaces.Clean();
	CleanConstructions();
	CleanDecorations();
	CleanMissiles();
	CleanUnits();
	CleanUnitTypes();
	CleanPlayers();
	CleanSelections();
	CleanGroups();
	CleanUpgrades();
	CleanDependencies();
	CleanButtons();
	CleanMissileTypes();
	Map.Clean();
	Map.CleanFogOfWar();
	CParticleManager::exit();
	CleanReplayLog();
	CleanSpells();
	FreePathfinder();

	UnitTypeVar.Init(); // internal script. should be to a better place, don't find for restart.
}
void RegressionAnalysis::Analyse()
   {
   if (analysisPositions.Length() == 0)
      error("The list of positions to analyze is empty.");

   singlepoint = NULL;
   right = NULL;

   try
      {
      BasicTree::FreeSwap();

      ScoreSinglepoint();

      if (informativeCount != 0)
         {
         if (ScoreConditionals())
            ScanChromosome();
         else
            PrintMessage("  SKIPPED: Requires impossible recombination pattern");

         if (!twopoint) delete [] right;
         }

      CleanMessages();
      delete [] singlepoint;
      }
   catch (const TreesTooBig & problem)
      {
      PrintMessage("  SKIPPED: At least %d megabytes needed", problem.memory_request);
      CleanMessages();

      if (singlepoint != NULL) delete [] singlepoint;
      if (right != NULL) delete [] right;
      }
   catch (const OutOfTime & problem)
      {
      PrintMessage("  SKIPPED: Analysis would require more than %d minutes\n", maxMinutes);
      CleanMessages();

      if (singlepoint != NULL) delete [] singlepoint;
      if (right != NULL) delete [] right;
      };
   };
Beispiel #4
0
	MessagesDisplay() : show(true)
	{
#ifdef DEBUG
		showBuilList = false;
#endif
		CleanMessages();
		//Wyrmgus start
		CleanObjectives();
		//Wyrmgus end
	}
Beispiel #5
0
	MessagesDisplay()
	{
		CleanMessages();
	}
Beispiel #6
0
/**
**  Cleanup modules.
**
**  Call each module to clean up.
*/
void CleanModules()
{
	EndReplayLog();
	CleanMessages();

	CleanIcons();
	CleanCursors();
	CleanUserInterface();
	CleanFonts();
	CTrigger::ClearTriggers();
	FreeAi();
	PlayerRaces.Clean();
	CAge::ClearAges();
	CCalendar::ClearCalendars();
	CCharacter::ClearCharacters();
	CCivilization::ClearCivilizations();
	CleanConstructions();
	CCurrency::ClearCurrencies();
	CleanDecorations();
	CDeity::ClearDeities();
	//Wyrmgus start
	CDialogue::ClearDialogues();
	CDeityDomain::ClearDeityDomains();
	CleanGrandStrategyEvents();
	//Wyrmgus end
	CHistoricalUnit::ClearHistoricalUnits();
	CMapTemplate::ClearMapTemplates();
	CleanMissiles();
	CPantheon::ClearPantheons();
	//Wyrmgus start
	CPlane::ClearPlanes();
	CleanProvinces();
	CleanQuests();
	CReligion::ClearReligions();
	CSchoolOfMagic::ClearSchoolsOfMagic();
	CSite::ClearSites();
	CleanTexts();
	CleanUniqueItems();
	//Wyrmgus end
	CTimeline::ClearTimelines();
	CleanUnits();
	CleanUnitTypes();
	CWorld::ClearWorlds();
	CleanPlayers();
	CleanSelections();
	CleanGroups();
	CleanUpgrades();
	CleanButtons();
	CButtonLevel::ClearButtonLevels();
	CleanMissileTypes();
	Map.Clean();
	Map.CleanFogOfWar();
	CTerrainType::ClearTerrainTypes();
	CTimeOfDay::ClearTimesOfDay();
	CTimeOfDaySchedule::ClearTimeOfDaySchedules();
	CSeason::ClearSeasons();
	CSeasonSchedule::ClearSeasonSchedules();
	CParticleManager::exit();
	CleanReplayLog();
	CSpell::ClearSpells();
	FreePathfinder();

	UnitTypeVar.Init(); // internal script. should be to a better place, don't find for restart.
}