Neco/LandView/GraphicsEngine.cs
/// <summary>Draws all plots in a district</summary>
/// <param name="D">District with all the plots to draw</param>
/// <param name="GRM">Graphics to draw to</param>
/// <param name="Origin">Point of the given graphics that defines 0,0</param>
Draws all plots in a district
Draws all plots in a district
public static void DrawPlots(District D, Graphics GRM, Point Origin) {
            Pen PlotPen = new(Color.Black, 5);
            Font NameFont = new(FFamily, 8, FontStyle.Bold, GraphicsUnit.Point);
            Font InfoFont = new(FFamily, 8, FontStyle.Regular, GraphicsUnit.Point);
            foreach (Plot P in D.Plots) {
                DrawPlot(P, GRM, Origin, PlotPen, Color.Black, Color.White, NameFont, InfoFont);
            }
        }
public static void DrawPlots ( District D , Graphics GRM , Point Origin ) { Pen PlotPen = new ( Color . Black , 5 ) ; Font NameFont = new ( FFamily , 8 , FontStyle . Bold , GraphicsUnit . Point ) ; Font InfoFont = new ( FFamily , 8 , FontStyle . Regular , GraphicsUnit . Point ) ; foreach ( Plot P in D . Plots ) { DrawPlot ( P , GRM , Origin , PlotPen , Color . Black , Color . White , NameFont , InfoFont ) ; } }
Draws all plots in a district
Draws all plots in a district
//Draw each plot
D
District
District with all the plots to draw
District with all the plots to draw
GRM
Graphics
Graphics to draw to
Graphics to draw to
Origin
Point
Point of the given graphics that defines 0,0
Point of the given graphics that defines 0 0