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;
 }
Esempio n. 2
0
 public SpaceShip()
 {
     Engines engine = Engine1;
     Fuel    fuel   = Fuel1;
     Cargo   cargo  = Cargo1;
 }