Exemplo n.º 1
0
 private void SetSimulationiTrainingParams(SimulationTrainingParams simulationTrainingParams)
 {
     foreach (SimulationArea simArea in simulationAreas)
     {
         simArea.SetSimulationTrainingParams(simulationTrainingParams);
     }
 }
        public void SetSimulationTrainingParams(SimulationTrainingParams trainingParams)
        {
            deathZoneWidth  = trainingParams.deathZoneWidth;
            deathZoneHeight = trainingParams.deathZoneHeight;

            planetDesignationAreaWidth  = trainingParams.planetDesignationAreaWidth;
            planetDesignationAreaHeight = trainingParams.planetDesignationAreaHeight;

            rocketToTargetPlanetBodyMinOffset = trainingParams.rocketToTargetPlanetMinOffset;
            rocketToTargetPlanetBodyMaxOffset = trainingParams.rocketToTargetPlanetMaxOffset;

            rocketNearTargetPlanetProbability = trainingParams.rocketSpawnNearTargetPlanetProbability;
        }