* 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. */
| 64 | * @param itemSurfaceB Pointer to the item surface set. |
| 65 | */ |
| 66 | void 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. |