コード例 #1
0
ファイル: frmSim.cs プロジェクト: PhorkYou/ZombieSimulator
 private void frmSim_Load(object sender, EventArgs e)
 {
     Buildings    = new LinkedList <Building>();
     Sentients    = new LinkedList <Sentient>();
     FormControls = new frmControls();
     rnd          = new Random();
     InitializeDrawArea();
     this.BackgroundImage = DrawArea;
     genBuildings(rnd.Next(MINBUILDINGS, MAXBUILDINGS));
     genSentients(rnd.Next(MINSENTIENTS, MAXSENTIENTS));
     Sentient.setLists(Sentients, Buildings);
     this.DoubleBuffered = true;
 }
コード例 #2
0
 public void openControls()
 {
     controls = new frmControls();
     controls.Show();
 }
コード例 #3
0
ファイル: frmSim.cs プロジェクト: wr3cktangle/ZombieSim
 private void frmSim_Load(object sender, EventArgs e)
 {
     Buildings = new LinkedList<Building>();
     Sentients = new LinkedList<Sentient>();
     FormControls = new frmControls();
     rnd = new Random();
     InitializeDrawArea();
     this.BackgroundImage = DrawArea;
     genBuildings(rnd.Next(MINBUILDINGS, MAXBUILDINGS));
     genSentients(rnd.Next(MINSENTIENTS, MAXSENTIENTS));
     Sentient.setLists(Sentients, Buildings);
     this.DoubleBuffered = true;
 }