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

Method UnitSprite

src/Battlescape/UnitSprite.cpp:48–50  ·  view source on GitHub ↗

* Sets up a UnitSprite with the specified size and position. * @param width Width in pixels. * @param height Height in pixels. * @param x X position in pixels. * @param y Y position in pixels. */

Source from the content-addressed store, hash-verified

46 * @param y Y position in pixels.
47 */
48UnitSprite::UnitSprite(int width, int height, int x, int y) : Surface(width, height, x, y), _unit(0), _itemA(0), _itemB(0), _unitSurface(0), _itemSurfaceA(0), _itemSurfaceB(0), _part(0), _animationFrame(0), _drawingRoutine(0)
49{
50}
51
52/**
53 * Deletes the UnitSprite.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected