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

Method setAnimationFrame

src/Battlescape/UnitSprite.cpp:133–136  ·  view source on GitHub ↗

* Sets the animation frame for animated units. * @param frame Frame number. */

Source from the content-addressed store, hash-verified

131 * @param frame Frame number.
132 */
133void UnitSprite::setAnimationFrame(int frame)
134{
135 _animationFrame = frame;
136}
137/**
138 * Draws a unit, using the drawing rules of the unit.
139 * This function is called by Map, for each unit on the screen.

Callers 1

cacheUnitMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected