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

Method setBattleUnit

src/Battlescape/UnitSprite.cpp:79–84  ·  view source on GitHub ↗

* Links this sprite to a BattleUnit to get the data for rendering. * @param unit Pointer to the BattleUnit. * @param part The part number for large units. */

Source from the content-addressed store, hash-verified

77 * @param part The part number for large units.
78 */
79void UnitSprite::setBattleUnit(BattleUnit *unit, int part)
80{
81 _unit = unit;
82 _redraw = true;
83 _part = part;
84}
85
86/**
87 * Links this sprite to a BattleItem to get the data for rendering.

Callers 1

cacheUnitMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected