//////////////// // Render Walls public void RenderWalls(ListWalls listWalls) { if(listWalls.Get_ListWallsSize() >= 1) /*for (int i = 0; i < listWalls.Get_ListWallsSize(); i++) { _MyGraphics.DrawRectangle(_Pen, element.Get_X(), element.Get_Y(), element.Get_Side(), element.Get_Side()); // Draw a rectangle for each element of the list of walls. }*/ _MyGraphics.DrawRectangle(_Pen, listWalls.Get_ListWalls()[listWalls.Get_ListWallsSize() - 1].Get_X(), listWalls.Get_ListWalls()[listWalls.Get_ListWallsSize() - 1].Get_Y(), listWalls.Get_ListWalls()[listWalls.Get_ListWallsSize() - 1].Get_Side(), listWalls.Get_ListWalls()[listWalls.Get_ListWallsSize() - 1].Get_Side()); //} //catch (Exception e) { Console.WriteLine(e); } }
///////////////////// // Render mini Walls public void RenderMiniWalls(ListWalls listWalls) { if (listWalls.Get_ListWallsSize() >= 1) //try //{ _MyMiniGraphics.DrawRectangle(_Pen, listWalls.Get_ListWalls()[listWalls.Get_ListWallsSize() - 1].Get_X()/2, listWalls.Get_ListWalls()[listWalls.Get_ListWallsSize() - 1].Get_Y()/2, listWalls.Get_ListWalls()[listWalls.Get_ListWallsSize() - 1].Get_Side()/2, listWalls.Get_ListWalls()[listWalls.Get_ListWallsSize() - 1].Get_Side()/2); //} // catch (Exception e) { Console.WriteLine(e); } }