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

Method setAssignedScientist

src/Basescape/ResearchInfoState.cpp:208–213  ·  view source on GitHub ↗

* Updates count of assigned/free scientists and available lab space. */

Source from the content-addressed store, hash-verified

206 * Updates count of assigned/free scientists and available lab space.
207 */
208void ResearchInfoState::setAssignedScientist()
209{
210 _txtAvailableScientist->setText(tr("STR_SCIENTISTS_AVAILABLE_UC").arg(_base->getAvailableScientists()));
211 _txtAvailableSpace->setText(tr("STR_LABORATORY_SPACE_AVAILABLE_UC").arg(_base->getFreeLaboratories()));
212 _txtAllocatedScientist->setText(tr("STR_SCIENTISTS_ALLOCATED").arg(_project->getAssigned()));
213}
214
215/**
216 * Increases or decreases the scientists according the mouse-wheel used.

Callers

nothing calls this directly

Calls 5

getFreeLaboratoriesMethod · 0.80
getAssignedMethod · 0.80
argMethod · 0.60
setTextMethod · 0.45

Tested by

no test coverage detected