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

Method setUnit

src/Savegame/Tile.cpp:625–632  ·  view source on GitHub ↗

* Set a unit on this tile. * @param unit * @param tileBelow */

Source from the content-addressed store, hash-verified

623 * @param tileBelow
624 */
625void Tile::setUnit(BattleUnit *unit, Tile *tileBelow)
626{
627 if (unit != 0)
628 {
629 unit->setTile(this, tileBelow);
630 }
631 _unit = unit;
632}
633
634/**
635 * Set the amount of turns this tile is on fire. 0 = no fire.

Callers 3

loadMethod · 0.45
resetUnitTilesMethod · 0.45
setUnitPositionMethod · 0.45

Calls 1

setTileMethod · 0.45

Tested by

no test coverage detected