|
@ -9,11 +9,11 @@ Ware::Ware(std::string name, bool hasCooling, double width, double height) { |
|
|
this->size = { width, height }; |
|
|
this->size = { width, height }; |
|
|
|
|
|
|
|
|
if(hasCooling) { |
|
|
if(hasCooling) { |
|
|
this->type = CoolingWare; |
|
|
|
|
|
|
|
|
this->type = WareType::CoolingWare; |
|
|
} else if(isLargeWare(this->size)) { |
|
|
} else if(isLargeWare(this->size)) { |
|
|
this->type = LargeWare; |
|
|
|
|
|
|
|
|
this->type = WareType::LargeWare; |
|
|
} else { |
|
|
} else { |
|
|
this->type = DefaultWare; |
|
|
|
|
|
|
|
|
this->type = WareType::DefaultWare; |
|
|
} |
|
|
} |
|
|
count++; |
|
|
count++; |
|
|
this->id = this->generateId(); |
|
|
this->id = this->generateId(); |
|
|