#include #include "ProductionBuildingT.h" #include "SawmillT.h" using namespace std; SawmillT::SawmillT(WarehouseT & w):ProductionBuildingT(w, BuildingTypeT::SAWMILL) { } bool SawmillT::CanProduce() { return (warehouse.Wood() >= 10); } int SawmillT::WorkersNeeded(void) const { return 14; } void SawmillT::Produce(){ warehouse.Wood(-10); warehouse.Construction(1); }