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

Method getHandAnimationFrame

game/state/battle/battleunit.cpp:5216–5222  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5214}
5215
5216unsigned int BattleUnit::getHandAnimationFrame() const
5217{
5218 return ((firing_animation_ticks_remaining > 0 ? firing_animation_ticks_remaining
5219 : hand_animation_ticks_remaining) +
5220 TICKS_PER_FRAME_UNIT - 1) /
5221 TICKS_PER_FRAME_UNIT;
5222}
5223
5224bool BattleUnit::canHandStateChange(HandState state)
5225{

Callers 2

drawMethod · 0.80
drawMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected