* Selects the previous soldier. * @param action Pointer to an action. */
| 409 | * @param action Pointer to an action. |
| 410 | */ |
| 411 | void InventoryState::btnPrevClick(Action *) |
| 412 | { |
| 413 | if (_inv->getSelectedItem() != 0) |
| 414 | { |
| 415 | return; |
| 416 | } |
| 417 | if (_parent) |
| 418 | { |
| 419 | _parent->selectPreviousPlayerUnit(false, false, true); |
| 420 | } |
| 421 | else |
| 422 | { |
| 423 | _battleGame->selectPreviousPlayerUnit(false, false, true); |
| 424 | } |
| 425 | init(); |
| 426 | } |
| 427 | |
| 428 | /** |
| 429 | * Selects the next soldier. |
nothing calls this directly
no test coverage detected