Exemplo n.º 1
0
 internal static void Draw(Graphics graphic, GameProcese gameProcese)
 {
     foreach (var element in gameProcese.ThisWorld.StorageElements.GetElementsList())
     {
         if (element.State.Cell != null)
         {
             graphic.FillRectangle(GetBrush(element), element.State.Cell.GetRectangle());
         }
     }
 }
Exemplo n.º 2
0
 public MainDrawer(Graphics graphics, int width, int height, GameProcese gameProcese)
 {
     _graphics    = graphics;
     _size        = new Size(width, height);
     _gameProcese = gameProcese;
 }