OpenXcom
1.0
Open-source clone of the original X-Com
|
Represent a ResearchProject Contain information about assigned scientist, time already spent and cost of the project. More...
#include <ResearchProject.h>
Public Member Functions | |
bool | step () |
Game logic. Called every new day to compute time spent. More... | |
void | setAssigned (int nb) |
set the number of scientist assigned to this ResearchProject More... | |
int | getAssigned () const |
get the number of scientist assigned to this ResearchProject More... | |
int | getSpent () const |
get time already spent on this ResearchProject More... | |
void | setSpent (int spent) |
set time already spent on this ResearchProject More... | |
int | getCost () const |
get time cost of this ResearchProject More... | |
void | setCost (int f) |
set time cost of this ResearchProject More... | |
const RuleResearch * | getRules () const |
get the ResearchProject Ruleset | |
void | load (const YAML::Node &node) |
load the ResearchProject from YAML More... | |
YAML::Node | save () const |
save the ResearchProject to YAML More... | |
std::string | getResearchProgress () const |
Get a string describing current progress. More... | |
Represent a ResearchProject Contain information about assigned scientist, time already spent and cost of the project.
int OpenXcom::ResearchProject::getAssigned | ( | ) | const |
get the number of scientist assigned to this ResearchProject
Returns the number of scientist assigned to this project.
int OpenXcom::ResearchProject::getCost | ( | ) | const |
get time cost of this ResearchProject
Returns the cost of the ResearchProject.
std::string OpenXcom::ResearchProject::getResearchProgress | ( | ) | const |
Get a string describing current progress.
Return a string describing Research progress.
int OpenXcom::ResearchProject::getSpent | ( | ) | const |
get time already spent on this ResearchProject
Returns the time already spent on this project.
void OpenXcom::ResearchProject::load | ( | const YAML::Node & | node | ) |
load the ResearchProject from YAML
Loads the research project from a YAML file.
node | YAML node. |
YAML::Node OpenXcom::ResearchProject::save | ( | ) | const |
void OpenXcom::ResearchProject::setAssigned | ( | int | nb | ) |
set the number of scientist assigned to this ResearchProject
Changes the number of scientist to the ResearchProject.
nb | number of scientist assigned to this ResearchProject |
void OpenXcom::ResearchProject::setCost | ( | int | f | ) |
set time cost of this ResearchProject
Changes the cost of the ResearchProject.
f | new project cost(in man/day) |
void OpenXcom::ResearchProject::setSpent | ( | int | spent | ) |
set time already spent on this ResearchProject
Changes the cost of the ResearchProject.
spent | new project cost(in man/day) |
bool OpenXcom::ResearchProject::step | ( | ) |
Game logic. Called every new day to compute time spent.
Called every day to compute time spent on this ResearchProject.