Exemplo n.º 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;
 }
Exemplo n.º 2
0
 public void openControls()
 {
     controls = new frmControls();
     controls.Show();
 }
Exemplo n.º 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;
 }