Exemple #1
0
 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;
 }
Exemple #2
0
 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();
 }
Exemple #3
0
 private void btnInitialize_Click(object sender, EventArgs e)
 {
     world = GenerateWorldFromForm();
 }