Ejemplo n.º 1
0
 public void SetController(IDesignerController designerController)
 {
     DesignerController = designerController;
     DesignerController.BuildStaticLevel();
 }
Ejemplo n.º 2
0
        /*protected void Painter(object sender, PaintEventArgs e)
         * {
         *  if (Backbuffer != null)
         *  {
         *      e.Graphics.DrawImageUnscaled(Backbuffer, Point.Empty);
         *  }
         * }
         * protected void CreateBackbuffer(object sender, EventArgs e)
         * {
         *  if (Backbuffer != null)
         *  {
         *      Backbuffer.Dispose();
         *  }
         *  Backbuffer = new Bitmap(Size.Width, Size.Height);
         * }
         * protected void Draw()
         * {
         *  if (Backbuffer != null)
         *  {
         *      using (var gfx = Graphics.FromImage(Backbuffer))
         *      {
         *          gfx.Clear(Color.White);
         *          Rectangle rekt = new Rectangle(20, 20, 20, 20);
         *          gfx.FillRectangle(Brushes.Black, rekt);
         *      }
         *      Invalidate();
         *  }
         * }*/

        public void SetControllers(IGameController gameController, IDesignerController designerController)
        {
            GameController     = gameController;
            DesignerController = designerController;
        }