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

Method setOwner

src/Savegame/BattleItem.cpp:226–230  ·  view source on GitHub ↗

* Sets the item's owner. * @param owner Pointer to Battleunit. */

Source from the content-addressed store, hash-verified

224 * @param owner Pointer to Battleunit.
225 */
226void BattleItem::setOwner(BattleUnit *owner)
227{
228 _previousOwner = _owner;
229 _owner = owner;
230}
231
232/**
233 * Removes the item from the previous owner and moves it to the new owner.

Callers 3

dropItemMethod · 0.80
convertUnitMethod · 0.80
convertUnitToCorpseMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected