public void SetMasterFitnessComponentList() // Looks at player's brain and Trial's miniGame instance to assemble a combined FitnessComponentList //DebugBot.DebugFunctionCall("SetMasterFitnessComponentList: " + playerRef.masterTrialsList.Count.ToString (), true); //BrainBase currentBrainRef = playerRef.masterPopulation.templateBrain; // OR TEMPLATE BRAIN??? { MiniGameBase currentMiniGameRef = playerRef.masterTrialsList[playerRef.currentTrialForEdit].miniGameManager.miniGameInstance; BrainSettings brainSettings = playerRef.masterPopulation.brainSettings; brainFitnessComponentList = brainSettings.brainFitnessComponentList; if (currentMiniGameRef != null) { //if (currentMiniGameRef.gameInitialized) { gameFitnessComponentList = currentMiniGameRef.fitnessComponentList; masterFitnessCompList = new List <FitnessComponent>(); for (int i = 0; i < brainSettings.brainFitnessComponentList.Count; i++) // grab fitnessComponents from current brain type { masterFitnessCompList.Add(brainSettings.brainFitnessComponentList[i]); } for (int j = 0; j < currentMiniGameRef.fitnessComponentList.Count; j++) { masterFitnessCompList.Add(currentMiniGameRef.fitnessComponentList[j]); } //} } }
// Constructor Methods: public Population() { DebugBot.DebugFunctionCall("Population; Population() Constructor!; ", debugFunctionCalls); if(speciesBreedingPoolList == null) { speciesBreedingPoolList = new List<SpeciesBreedingPool>(); } brainSettings = new BrainSettings(); // CHANGE THIS LATER!!!!! }
// Constructor Methods: public Population() { DebugBot.DebugFunctionCall("Population; Population() Constructor!; ", debugFunctionCalls); if (speciesBreedingPoolList == null) { speciesBreedingPoolList = new List <SpeciesBreedingPool>(); } brainSettings = new BrainSettings(); // CHANGE THIS LATER!!!!! }