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; }
public SpaceShip() { Engines engines = Engine1; Fuel fuel = Fuel1; Cargo cargobay = Cargo1; }