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

Method getActiveHand

src/Savegame/BattleUnit.cpp:2337–2342  ·  view source on GitHub ↗

* Get unit's active hand. * @return active hand. */

Source from the content-addressed store, hash-verified

2335 * @return active hand.
2336 */
2337std::string BattleUnit::getActiveHand() const
2338{
2339 if (getItem(_activeHand)) return _activeHand;
2340 if (getItem("STR_LEFT_HAND")) return "STR_LEFT_HAND";
2341 return "STR_RIGHT_HAND";
2342}
2343
2344/**
2345 * Converts unit to another faction (original faction is still stored).

Callers 1

sortRiflesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected