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

Method btnBaseXClick

src/Geoscape/PsiTrainingState.cpp:114–124  ·  view source on GitHub ↗

* Goes to the allocation screen for the corresponding base. * @param action Pointer to an action. */

Source from the content-addressed store, hash-verified

112 * @param action Pointer to an action.
113 */
114void PsiTrainingState::btnBaseXClick(Action *action)
115{
116 for (size_t i = 0; i < _btnBases.size(); ++i)
117 {
118 if (action->getSender() == _btnBases[i])
119 {
120 _game->pushState(new AllocatePsiTrainingState(_game, _bases.at(i)));
121 break;
122 }
123 }
124}
125
126}

Callers

nothing calls this directly

Calls 2

getSenderMethod · 0.80
pushStateMethod · 0.80

Tested by

no test coverage detected