Esempio n. 1
0
 public SpaceShip(Engines engine, Fuel fuel, Cargo cargo)
 {
     this.name = engine.name + fuel.name + cargo.name;
     this.rep  = engine.rep + fuel.rep + cargo.rep + nose;
     //this.weight = engine.weight + fuel.weight + cargo.weight;
     //this.speed = engine.speed;
     //this.fuel = fuel.weight;
     //this.fuelCapacity = fuel.capacity;
     //this.cargoCapacity = cargo.capacity;
     this.fuel     = fuel;
     this.engines  = engine;
     this.cargobay = cargo;
 }
Esempio n. 2
0
 public SpaceShip()
 {
     Engines engines  = Engine1;
     Fuel    fuel     = Fuel1;
     Cargo   cargobay = Cargo1;
 }