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

Method setPosition

src/Savegame/BattleUnit.cpp:303–307  ·  view source on GitHub ↗

* Changes the BattleUnit's position. * @param pos position * @param updateLastPos refresh last stored position */

Source from the content-addressed store, hash-verified

301 * @param updateLastPos refresh last stored position
302 */
303void BattleUnit::setPosition(const Position& pos, bool updateLastPos)
304{
305 if (updateLastPos) { _lastPos = _pos; }
306 _pos = pos;
307}
308
309/**
310 * Gets the BattleUnit's position.

Callers 1

setUnitPositionMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected