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

Method setActiveHand

src/Savegame/BattleUnit.cpp:2328–2332  ·  view source on GitHub ↗

* Set unit's active hand. * @param hand active hand. */

Source from the content-addressed store, hash-verified

2326 * @param hand active hand.
2327 */
2328void BattleUnit::setActiveHand(const std::string &hand)
2329{
2330 if (_activeHand != hand) _cacheInvalid = true;
2331 _activeHand = hand;
2332}
2333/**
2334 * Get unit's active hand.
2335 * @return active hand.

Callers 2

btnLeftHandItemClickMethod · 0.80
btnRightHandItemClickMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected