* 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 */
| 47 | * @param rule A RuleResearch which will be used to create a new ResearchProject |
| 48 | */ |
| 49 | ResearchInfoState::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. |