Beispiel #1
0
        public Form1()
        {
            InitializeComponent();
            workerBeeJob.SelectedIndex = 0;
            Worker[] workers = new Worker[4];
            workers[0] = new Worker(new string[] {"Nectar Collector", "Honey Manufacturing"}, 175);
            workers[1] = new Worker(new string[] {"Egg Care", "Baby Bee Tutoring"}, 114);
            workers[2] = new Worker(new string[] {"Hive Maintenance", "Sting Patrol" }, 149);
            workers[3] = new Worker(new string[] {"Nectar Collector", "Honey Manufacturing",
                "Egg Care", "Baby Bee Tutoring", "Hive Maintenance", "Sting Patrol"}, 155);

            queen = new Queen(workers, 275);
        }
Beispiel #2
0
 public Queen(Worker[] workers)
 {
     this.workers = workers;
 }
Beispiel #3
0
 public Queen(Worker[] workers, double weightMG)
     : base(weightMG)
 {
     this.workers = workers;
 }