19 #ifndef OPENXCOM_RESEARCHPROJECT_H
20 #define OPENXCOM_RESEARCHPROJECT_H
22 #include <yaml-cpp/yaml.h>
58 void load(
const YAML::Node& node);
60 YAML::Node
save()
const;
void setSpent(int spent)
set time already spent on this ResearchProject
Definition: ResearchProject.cpp:85
void setAssigned(int nb)
set the number of scientist assigned to this ResearchProject
Definition: ResearchProject.cpp:53
void setCost(int f)
set time cost of this ResearchProject
Definition: ResearchProject.cpp:103
int getCost() const
get time cost of this ResearchProject
Definition: ResearchProject.cpp:94
int getAssigned() const
get the number of scientist assigned to this ResearchProject
Definition: ResearchProject.cpp:67
Represent a ResearchProject Contain information about assigned scientist, time already spent and cost...
Definition: ResearchProject.h:33
bool step()
Game logic. Called every new day to compute time spent.
Definition: ResearchProject.cpp:39
int getSpent() const
get time already spent on this ResearchProject
Definition: ResearchProject.cpp:76
Represents one research project.
Definition: RuleResearch.h:40
const RuleResearch * getRules() const
get the ResearchProject Ruleset
Definition: ResearchProject.cpp:58
void load(const YAML::Node &node)
load the ResearchProject from YAML
Definition: ResearchProject.cpp:112
std::string getResearchProgress() const
Get a string describing current progress.
Definition: ResearchProject.cpp:137
YAML::Node save() const
save the ResearchProject to YAML
Definition: ResearchProject.cpp:123