Beispiel #1
0
        public Renderer(SimulationData simulationData, Control redrawControl, Action <Bitmap> redrawMethod, Point coordinateOffset, Size bitmapSize) : base()
        {
            _SimulationData = simulationData;

            _RedrawControl    = redrawControl;
            _RedrawMethod     = redrawMethod;
            _CoordinateOffset = coordinateOffset;
            _BitmapSize       = bitmapSize;
        }
Beispiel #2
0
        public InteractiveManager(Control redrawControl, Action <Bitmap> redrawMethod, Point coordinateOffset, Size bitmapSize)
        {
            _SimulationData = new SimulationData();

            _Renderer  = new Renderer(_SimulationData, redrawControl, redrawMethod, coordinateOffset, bitmapSize);
            _Simulator = new Simulator(_SimulationData);

            _Renderer.Start();
        }
 public Simulator(SimulationData simulationData) : base()
 {
     _SimulationData = simulationData;
 }