MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / ResearchInfoState

Method ResearchInfoState

src/Basescape/ResearchInfoState.cpp:49–52  ·  view source on GitHub ↗

* Initializes all the elements in the ResearchProject screen. * @param game Pointer to the core game. * @param base Pointer to the base to get info from. * @param rule A RuleResearch which will be used to create a new ResearchProject */

Source from the content-addressed store, hash-verified

47 * @param rule A RuleResearch which will be used to create a new ResearchProject
48 */
49ResearchInfoState::ResearchInfoState(Game *game, Base *base, RuleResearch * rule) : State(game), _base(base), _project(new ResearchProject(rule, int(rule->getCost() * OpenXcom::RNG::generate(50, 150)/100))), _rule(rule)
50{
51 buildUi();
52}
53
54/**
55 * Initializes all the elements in the ResearchProject screen.

Callers

nothing calls this directly

Calls 2

generateFunction · 0.85
getCostMethod · 0.45

Tested by

no test coverage detected