19 #ifndef OPENXCOM_RULEMANUFACTURE_H
20 #define OPENXCOM_RULEMANUFACTURE_H
24 #include <yaml-cpp/yaml.h>
35 std::string _name, _category;
36 std::vector<std::string> _requires;
37 int _space, _time, _cost;
38 std::map<std::string, int> _requiredItems, _producedItems;
44 void load(
const YAML::Node& node,
int listOrder);
int getManufactureTime() const
Gets the time required to manufacture one object.
Definition: RuleManufacture.cpp:102
const std::map< std::string, int > & getRequiredItems() const
Gets the list of items required to manufacture one object.
Definition: RuleManufacture.cpp:121
const std::vector< std::string > & getRequirements() const
Gets the manufacture's requirements.
Definition: RuleManufacture.cpp:84
int getListOrder() const
Gets the list weight for this manufacture item.
Definition: RuleManufacture.cpp:139
RuleManufacture(const std::string &name)
Creates a new manufacture.
Definition: RuleManufacture.cpp:27
int getRequiredSpace() const
Gets the required workshop space.
Definition: RuleManufacture.cpp:93
const std::map< std::string, int > & getProducedItems() const
Gets the list of items produced by completing "one object" of this project. by default: it contains o...
Definition: RuleManufacture.cpp:130
std::string getCategory() const
Gets the manufacture category.
Definition: RuleManufacture.cpp:74
int getManufactureCost() const
Gets the cost of manufacturing one object.
Definition: RuleManufacture.cpp:112
std::string getName() const
Gets the manufacture name.
Definition: RuleManufacture.cpp:65
void load(const YAML::Node &node, int listOrder)
Loads the manufacture from YAML.
Definition: RuleManufacture.cpp:37
Represents the information needed to manufacture an object.
Definition: RuleManufacture.h:32