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

Method btnArmorClick

src/Basescape/SoldierInfoState.cpp:646–652  ·  view source on GitHub ↗

* Shows the Select Armor window. * @param action Pointer to an action. */

Source from the content-addressed store, hash-verified

644 * @param action Pointer to an action.
645 */
646void SoldierInfoState::btnArmorClick(Action *)
647{
648 if (!_soldier->getCraft() || (_soldier->getCraft() && _soldier->getCraft()->getStatus() != "STR_OUT"))
649 {
650 _game->pushState(new SoldierArmorState(_game, _base, _soldierId));
651 }
652}
653
654/**
655 * Shows the Sack Soldier window.

Callers

nothing calls this directly

Calls 3

pushStateMethod · 0.80
getCraftMethod · 0.45
getStatusMethod · 0.45

Tested by

no test coverage detected