* Selects a new base to display. * @param action Pointer to an action. */
| 429 | * @param action Pointer to an action. |
| 430 | */ |
| 431 | void BaseInfoState::miniClick(Action *) |
| 432 | { |
| 433 | size_t base = _mini->getHoveredBase(); |
| 434 | if (base < _game->getSavedGame()->getBases()->size()) |
| 435 | { |
| 436 | _mini->setSelectedBase(base); |
| 437 | _base = _game->getSavedGame()->getBases()->at(base); |
| 438 | _state->setBase(_base); |
| 439 | init(); |
| 440 | } |
| 441 | } |
| 442 | |
| 443 | /** |
| 444 | * Selects a new base to display. |
nothing calls this directly
no test coverage detected