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

Method aim

src/Savegame/BattleUnit.cpp:776–785  ·  view source on GitHub ↗

* Aim. (shows the right hand sprite and weapon holding) * @param aiming true/false */

Source from the content-addressed store, hash-verified

774 * @param aiming true/false
775 */
776void BattleUnit::aim(bool aiming)
777{
778 if (aiming)
779 _status = STATUS_AIMING;
780 else
781 _status = STATUS_STANDING;
782
783 if (_visible || _faction == FACTION_PLAYER)
784 _cacheInvalid = true;
785}
786
787/**
788 * Returns the direction from this unit to a given point.

Callers 4

createNewProjectileMethod · 0.80
thinkMethod · 0.80
performMeleeAttackMethod · 0.80
explodeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected