public new Cargo add(Mineral cargo) { return(new Cargo(ironium + cargo.getIronium(), boranium + cargo.getBoranium(), germanium + cargo.getGermanium(), colonists, fuel)); }
public Mineral getMineralOutput() { if (owner != null) { int mineOutput = owner.getRace().getMineOutput(); return(new Mineral(mineralsPerYear(concMinerals.getIronium(), mines, mineOutput), mineralsPerYear(concMinerals.getBoranium(), mines, mineOutput), mineralsPerYear(concMinerals.getGermanium(), mines, mineOutput))); } else { return(new Mineral()); } }
public Mineral add(Mineral cost) { return(new Mineral(ironium + cost.getIronium(), boranium + cost.getBoranium(), germanium + cost.getGermanium())); }
public Mineral subtract(Mineral cost) { return(new Mineral(ironium - cost.getIronium(), boranium - cost.getBoranium(), germanium - cost.getGermanium())); }
public Cost(Mineral mineral, int resources) : base(mineral.getIronium(), mineral.getBoranium(), mineral.getGermanium()) { this.resources = resources; }