MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / btnNextClick

Method btnNextClick

src/Battlescape/InventoryState.cpp:432–447  ·  view source on GitHub ↗

* Selects the next soldier. * @param action Pointer to an action. */

Source from the content-addressed store, hash-verified

430 * @param action Pointer to an action.
431 */
432void InventoryState::btnNextClick(Action *)
433{
434 if (_inv->getSelectedItem() != 0)
435 {
436 return;
437 }
438 if (_parent)
439 {
440 _parent->selectNextPlayerUnit(false, false, true);
441 }
442 else
443 {
444 _battleGame->selectNextPlayerUnit(false, false, true);
445 }
446 init();
447}
448
449/**
450 * Unloads the selected weapon.

Callers

nothing calls this directly

Calls 3

initFunction · 0.85
getSelectedItemMethod · 0.80
selectNextPlayerUnitMethod · 0.45

Tested by

no test coverage detected