Exemple #1
0
 public new Cargo add(Mineral cargo)
 {
     return(new Cargo(ironium + cargo.getIronium(), boranium + cargo.getBoranium(), germanium + cargo.getGermanium(), colonists, fuel));
 }
Exemple #2
0
 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());
     }
 }
Exemple #3
0
 public Mineral add(Mineral cost)
 {
     return(new Mineral(ironium + cost.getIronium(), boranium + cost.getBoranium(), germanium + cost.getGermanium()));
 }
Exemple #4
0
 public Mineral subtract(Mineral cost)
 {
     return(new Mineral(ironium - cost.getIronium(), boranium - cost.getBoranium(), germanium - cost.getGermanium()));
 }
Exemple #5
0
 public Cost(Mineral mineral, int resources) : base(mineral.getIronium(), mineral.getBoranium(), mineral.getGermanium())
 {
     this.resources = resources;
 }