コード例 #1
0
ファイル: Form1.cs プロジェクト: calebthompson/School
 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;
 }
コード例 #2
0
ファイル: Cell.cs プロジェクト: calebthompson/School
 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();
 }
コード例 #3
0
ファイル: Form1.cs プロジェクト: calebthompson/School
 private void btnInitialize_Click(object sender, EventArgs e)
 {
     world = GenerateWorldFromForm();
 }