示例#1
0
 /**
  * pré: RequirementsMet()==true
  *
  * Retire du stock du bâtiment tous les prérequis à à consommer en un coup.
  **/
 private void RetrieveRequirements()
 {
     foreach (ResourceShipment requirement in requirements)
     {
         _currentStock.RemoveFromStock(requirement.resourceName, requirement.amount);
         _resourcesToOrder[requirement.resourceName] += requirement.amount;
     }
 }
示例#2
0
 private void MarkAsTreated(ResourceOrder order)
 {
     stock.RemoveFromStock(order.shipment);
     _totalOrderedAmount -= order.shipment.amount;
 }