public PhysicalSimulator(string typeTerrain) { switch (typeTerrain) { case "Cachan": LengthAireDeJeu = 8; WidthAireDeJeu = 4; break; case "RoboCup": LengthAireDeJeu = 24; WidthAireDeJeu = 16; break; default: break; } ballSimulatedList.TryAdd(0, new PhysicalBallSimulator(0, 0)); //ballSimulatedList.Add(1, new PhysicalBallSimulator(3, 0)); //ballSimulatedList.Add(2, new PhysicalBallSimulator(6, 0)); highFrequencyTimer = new HighFreqTimerV2(fSampling, "PhysicalSimulator"); highFrequencyTimer.Tick += HighFrequencyTimer_Tick; highFrequencyTimer.Start(); }