* Moves the selected unit down. * @param action Pointer to an action. */
| 813 | * @param action Pointer to an action. |
| 814 | */ |
| 815 | void BattlescapeState::btnUnitDownClick(Action *) |
| 816 | { |
| 817 | if (playableUnitSelected() && _save->getPathfinding()->validateUpDown(_save->getSelectedUnit(), _save->getSelectedUnit()->getPosition(), Pathfinding::DIR_DOWN)) |
| 818 | { |
| 819 | _battleGame->cancelCurrentAction(); |
| 820 | _battleGame->moveUpDown(_save->getSelectedUnit(), Pathfinding::DIR_DOWN); |
| 821 | } |
| 822 | } |
| 823 | |
| 824 | /** |
| 825 | * Shows the next map layer. |
nothing calls this directly
no test coverage detected