22 #include <yaml-cpp/yaml.h> 41 std::string _name, _lookup, _cutscene;
43 std::vector<std::string> _dependencies, _unlocks, _getOneFree, _requires;
44 bool _needItem, _destroyItem;
49 void load(
const YAML::Node& node,
int listOrder);
53 const std::string &
getName()
const;
61 const std::vector<std::string> &
getUnlocked()
const;
84 return a->getName() < b->getName();
bool destroyItem() const
Checks if this ResearchProject consumes the corresponding Item when research completes.
Definition: RuleResearch.cpp:99
std::string getLookup() const
Gets what to look up in the ufopedia.
Definition: RuleResearch.cpp:134
void load(const YAML::Node &node, int listOrder)
Loads the research from YAML.
Definition: RuleResearch.cpp:34
Compares RuleResearch pointers based on the research name.
Definition: RuleResearch.h:79
const std::vector< std::string > & getRequirements() const
Gets the requirements for this ResearchProject.
Definition: RuleResearch.cpp:143
const std::string & getCutscene() const
Gets the cutscene to play when this item is researched.
Definition: RuleResearch.cpp:161
int getListOrder() const
Gets the list weight for this research item.
Definition: RuleResearch.cpp:152
int getPoints() const
Gets the points earned for discovering this ResearchProject.
Definition: RuleResearch.cpp:116
const std::vector< std::string > & getDependencies() const
Gets the research dependencies.
Definition: RuleResearch.cpp:81
int getCost() const
Gets time needed to discover this ResearchProject.
Definition: RuleResearch.cpp:63
const std::vector< std::string > & getUnlocked() const
Gets the list of ResearchProjects unlocked by this research.
Definition: RuleResearch.cpp:107
const std::vector< std::string > & getGetOneFree() const
Gets the list of ResearchProjects granted at random for free by this research.
Definition: RuleResearch.cpp:125
bool needItem() const
Checks if this ResearchProject needs a corresponding Item to be researched.
Definition: RuleResearch.cpp:90
Represents one research project.
Definition: RuleResearch.h:38
const std::string & getName() const
Gets the research name.
Definition: RuleResearch.cpp:72
Definition: BaseInfoState.cpp:40