public MicropolisPanedWindow(MicropolisCSEngine engine)
        {
            Text = "Open Source Micropolis on C#";
            _engine = engine;

            _editMapView = new EditableMicropolisDrawingArea(engine);

            _navigationMapView = new NavigationMicropolisDrawingArea(engine);
            //            _navigationMapView.set_size_request(micropolisengine.WORLD_W, micropolisengine.WORLD_H);

            _gaugeView = new MicropolisGaugeView(engine);

            // Make the vbox for the gauge and navigation map views

            // Make the notebooks

            startGame();
        }
示例#2
0
        static void Main()
        {
            try
            {
                var engine = new MicropolisCSEngine {cityTax = 10};

                engine.setPasses(200);

                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);

                var win1 = new MicropolisPanedWindow(engine) {Top = 0, Left = 0, Width = 800, Height = 600};

                Application.Run(win1);
            }
            catch (Exception e)
            {
                MessageBox.Show(e.ToString());
            }
        }
 public MicropolisGaugeView(MicropolisCSEngine engine)
 {
     _engine = engine;
 }
 public EditableMicropolisDrawingArea(MicropolisCSEngine engine)
 {
     _engine = engine;
 }
 public NavigationMicropolisDrawingArea(MicropolisCSEngine engine)
 {
     _engine = engine;
 }