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

Method moreUnitPress

src/Basescape/ManufactureInfoState.cpp:393–397  ·  view source on GitHub ↗

* Starts the timerMoreUnit. * @param action A pointer to an Action. */

Source from the content-addressed store, hash-verified

391 * @param action A pointer to an Action.
392 */
393void ManufactureInfoState::moreUnitPress(Action * action)
394{
395 if (action->getDetails()->button.button == SDL_BUTTON_LEFT && _production->getAmountTotal() < std::numeric_limits<int>::max())
396 _timerMoreUnit->start();
397}
398
399/**
400 * Stops the timerMoreUnit.

Callers

nothing calls this directly

Calls 3

getDetailsMethod · 0.80
getAmountTotalMethod · 0.80
startMethod · 0.45

Tested by

no test coverage detected