* Goes to the allocation screen for the corresponding base. * @param action Pointer to an action. */
| 112 | * @param action Pointer to an action. |
| 113 | */ |
| 114 | void 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 | } |