MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / setFacing

Method setFacing

game/state/battle/battleunit.cpp:5283–5289  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5281}
5282
5283void BattleUnit::setFacing(GameState &state, Vec2<int> newFacing)
5284{
5285 facing = newFacing;
5286 goalFacing = newFacing;
5287 turning_animation_ticks_remaining = 0;
5288 refreshUnitVision(state);
5289}
5290
5291void BattleUnit::setMovementState(MovementState state)
5292{

Callers 2

spawnUnitMethod · 0.80
startMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected