public void addToFreight(FreightPackage package) { //TODO: Rewrite to store items only once //TODO: Maybe it is more comfortable to use a hashmap here with itemID as hash and the //amount contained //inventory.Add(package); }
public FreightPackage getRessources() { this.Store -= 10; FreightPackage transferPackage = new FreightPackage(this.ProducedRessource, 10); return transferPackage; }
public void addRessourceToStash( FreightPackage freight ) { this.stash.Add( freight.ContainedRessource ); }
public Freight(FreightPackage package) : this() { this.inventory = new Dictionary<int, string>(); this.inventory.Clear(); }