Exemple #1
0
 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;
 }
Exemple #2
0
 public void openControls()
 {
     controls = new frmControls();
     controls.Show();
 }
Exemple #3
0
 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;
 }