Beispiel #1
0
 /// <summary>
 /// This will generate an individual with a random rocket hull.
 /// NOTE that this will not return you a payload so it will be impossible
 /// to recover it at a later time.
 /// </summary>
 public Individual(Payload p)
 {
     this.payload       = p;
     this.hull          = new RocketHull(p);
     this.cost          = 0;
     this.score         = 0;
     this.thrusterIndex = new List <GameObject>();
     this.exteriorIndex = new List <GameObject>();
     this.fuelVolume    = 0;
     this.timeInAir     = 0;
 }
Beispiel #2
0
 public Individual(Individual copy)
 {
     this.payload       = new Payload(copy.payload.container);
     this.hull          = new RocketHull(copy.hull.container);
     this.cost          = copy.cost;
     this.score         = copy.score;
     this.thrusterIndex = new List <GameObject>();
     this.exteriorIndex = new List <GameObject>();
     this.fuelVolume    = copy.fuelVolume;
     this.timeInAir     = copy.timeInAir;
 }