Exemple #1
0
 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);
 }
Exemple #2
0
 public FreightPackage getRessources()
 {
     this.Store -= 10;
     FreightPackage transferPackage = new FreightPackage(this.ProducedRessource, 10);
     return transferPackage;
 }
Exemple #3
0
 public void addRessourceToStash( FreightPackage freight )
 {
     this.stash.Add( freight.ContainedRessource );
 }
Exemple #4
0
 public Freight(FreightPackage package)
     : this()
 {
     this.inventory = new Dictionary<int, string>();
     this.inventory.Clear();
 }