#include <class.sprites.hh>
Public Member Functions | |
CSprite (CSpriteType *pSpriteType, SDL_Surface *pTargetSurface) | |
~CSprite () | |
void | Draw (int offsetX, int offsetY) |
Draws the sprite. | |
void | SetAnim (CSprite_AnimID iAnimID) |
Sets the sprite's current animation. | |
Public Attributes | |
CSpriteType * | mpSpriteType |
SDL_Surface * | mpTargetSurface |
CVector2D | mvPos |
CVector2D | mvOldPos |
CSprite_AnimID | miAnimID |
int | miAnimStartTime |
CSprite::CSprite | ( | CSpriteType * | pSpriteType, | |
SDL_Surface * | pTargetSurface | |||
) |
CSprite::~CSprite | ( | ) |
void CSprite::Draw | ( | int | offsetX, | |
int | offsetY | |||
) |
Draws the sprite.
void CSprite::SetAnim | ( | CSprite_AnimID | iAnimID | ) |
Sets the sprite's current animation.
SDL_Surface* CSprite::mpTargetSurface |