* Moves the selected unit up. * @param action Pointer to an action. */
| 800 | * @param action Pointer to an action. |
| 801 | */ |
| 802 | void BattlescapeState::btnUnitUpClick(Action *) |
| 803 | { |
| 804 | if (playableUnitSelected() && _save->getPathfinding()->validateUpDown(_save->getSelectedUnit(), _save->getSelectedUnit()->getPosition(), Pathfinding::DIR_UP)) |
| 805 | { |
| 806 | _battleGame->cancelCurrentAction(); |
| 807 | _battleGame->moveUpDown(_save->getSelectedUnit(), Pathfinding::DIR_UP); |
| 808 | } |
| 809 | } |
| 810 | |
| 811 | /** |
| 812 | * Moves the selected unit down. |
nothing calls this directly
no test coverage detected