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

Method setSurfaces

src/Battlescape/UnitSprite.cpp:66–72  ·  view source on GitHub ↗

* Changes the surface sets for the UnitSprite to get resources for rendering. * @param unitSurface Pointer to the unit surface set. * @param itemSurfaceA Pointer to the item surface set. * @param itemSurfaceB Pointer to the item surface set. */

Source from the content-addressed store, hash-verified

64 * @param itemSurfaceB Pointer to the item surface set.
65 */
66void UnitSprite::setSurfaces(SurfaceSet *unitSurface, SurfaceSet *itemSurfaceA, SurfaceSet *itemSurfaceB)
67{
68 _unitSurface = unitSurface;
69 _itemSurfaceA = itemSurfaceA;
70 _itemSurfaceB = itemSurfaceB;
71 _redraw = true;
72}
73
74/**
75 * Links this sprite to a BattleUnit to get the data for rendering.

Callers 1

cacheUnitMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected