/** * 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; } }
private void MarkAsTreated(ResourceOrder order) { stock.RemoveFromStock(order.shipment); _totalOrderedAmount -= order.shipment.amount; }