20 #include "../Engine/Surface.h" 38 SurfaceSet *_unitSurface, *_itemSurfaceR, *_itemSurfaceL;
39 int _part, _animationFrame, _drawingRoutine;
41 const std::pair<Uint8, Uint8> *_color;
81 void drawRecolored(
Surface *src);
84 UnitSprite(
int width,
int height,
int x,
int y,
bool helmet);
~UnitSprite()
Cleans up the UnitSprite.
Definition: UnitSprite.cpp:48
void setBattleUnit(BattleUnit *unit, int part=0)
Sets the battleunit to be rendered.
Definition: UnitSprite.cpp:72
UnitSprite(int width, int height, int x, int y, bool helmet)
Creates a new UnitSprite at the specified position and size.
Definition: UnitSprite.cpp:41
Container of a set of surfaces.
Definition: SurfaceSet.h:35
Represents a single item in the battlescape.
Definition: BattleItem.h:37
Element that is blit (rendered) onto the screen.
Definition: Surface.h:38
void draw()
Draws the unit.
Definition: UnitSprite.cpp:171
A class that renders a specific unit, given its render rules combining the right frames from the surf...
Definition: UnitSprite.h:33
void setAnimationFrame(int frame)
Sets the animation frame.
Definition: UnitSprite.cpp:162
void setSurfaces(SurfaceSet *unitSurface, SurfaceSet *itemSurfaceA, SurfaceSet *itemSurfaceB)
Sets surfacesets for rendering.
Definition: UnitSprite.cpp:59
Represents a moving unit in the battlescape, player controlled or AI controlled it holds info about i...
Definition: BattleUnit.h:59
Definition: BaseInfoState.cpp:40