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