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

Method setDirection

src/Savegame/BattleUnit.cpp:341–346  ·  view source on GitHub ↗

* Changes the BattleUnit's (horizontal) direction. * Only used for initial unit placement. * @param direction new horizontal direction */

Source from the content-addressed store, hash-verified

339 * @param direction new horizontal direction
340 */
341void BattleUnit::setDirection(int direction)
342{
343 _direction = direction;
344 _toDirection = direction;
345 _directionTurret = direction;
346}
347
348/**
349 * Changes the BattleUnit's (horizontal) face direction.

Callers 8

addXCOMUnitMethod · 0.45
addAlienMethod · 0.45
addCivilianMethod · 0.45
thinkMethod · 0.45
convertUnitMethod · 0.45
fireWeapon1Method · 0.45
fireWeapon2Method · 0.45
ufoFireWeaponMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected