private void Form1_Load(object sender, EventArgs e) { bmp = new Bitmap(gridBox.Width, gridBox.Height); gridBox.Image = bmp; gpx = Graphics.FromImage(bmp); world = GenerateWorldFromForm(); DrawWorld(); gridBox.Refresh(); timer1.Enabled = true; }
public Cell(World world, CellType type, int grassBurnTime, int brushBurnTime, int treeBurnTime) { // TODO: Complete member initialization this.type = type; this.world = world; this.grassBurnTime = grassBurnTime; this.brushBurnTime = brushBurnTime; this.treeBurnTime = treeBurnTime; rand = new Random(); }
private void btnInitialize_Click(object sender, EventArgs e) { world = GenerateWorldFromForm(); }