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

Method addItem

src/Savegame/Tile.cpp:709–714  ·  view source on GitHub ↗

* Add an item on the tile. * @param item * @param ground */

Source from the content-addressed store, hash-verified

707 * @param ground
708 */
709void Tile::addItem(BattleItem *item, RuleInventory *ground)
710{
711 item->setSlot(ground);
712 _inventory.push_back(item);
713 item->setTile(this);
714}
715
716/**
717 * Remove an item from the tile.

Callers 8

advanceMethod · 0.45
loadMethod · 0.45
destroyFacilityMethod · 0.45
stepMethod · 0.45
loadMethod · 0.45
initSaveMethod · 0.45
time1DayMethod · 0.45

Calls 2

setSlotMethod · 0.80
setTileMethod · 0.45

Tested by

no test coverage detected