#include <class.sprites.hh>
Public Member Functions | |
CSpriteType () | |
~CSpriteType () | |
bool | Init (const char *szSpriteFolderPath) |
void | Cleanup () |
void | DrawAtPos (int x, int y, CSprite_AnimID iAnimID, int iAnimStartTime, SDL_Surface *pTargetSurface) |
Draws the sprite at a given position. | |
CSprite_AnimID | GetFirstAnimID () |
Retrieve the ID of the first animation. | |
Public Attributes | |
std::map< int, CSpriteAnim * > | mpAnims |
std::vector< SDL_Surface * > | mpFrames |
int | miW |
int | miH |
CRect2D | mrColRect |
CVector2D | mvGunPos |
int | miDamage |
Damage points when hitting another object. | |
int | miIsSolid |
Indicates if the object is a solid tile on the map. | |
int | miIsObject |
Indicates if the object should be managed inside the object manager. | |
int | miIsPlayer |
Indicates if the object is the player. | |
int | miIsEnemy |
Indicates if the object is an enemy. | |
int | miIsPowerUp_Gun |
Indicates if the object is a gun powerup. | |
int | miIsPowerUp_GunBullet |
Indicates if the object is a bullet for the gun powerup. | |
int | miIsPowerUp_Ammo |
Indicates if the object is an ammo powerup. | |
int | miIsPowerUp_Health |
Indicates if the object is a health powerup. | |
int | miIsDoor |
Indicates if the object is a door. | |
int | miAffectedByGravity |
Indicates if the object is affected by gravity. | |
int | miRemoveAfterColliding |
Indicates if the object is removed after a collision. |
CSpriteType::CSpriteType | ( | ) |
CSpriteType::~CSpriteType | ( | ) |
bool CSpriteType::Init | ( | const char * | szSpriteFolderPath | ) |
void CSpriteType::Cleanup | ( | ) |
void CSpriteType::DrawAtPos | ( | int | x, | |
int | y, | |||
CSprite_AnimID | iAnimID, | |||
int | iAnimStartTime, | |||
SDL_Surface * | pTargetSurface | |||
) |
Draws the sprite at a given position.
CSprite_AnimID CSpriteType::GetFirstAnimID | ( | ) |
Retrieve the ID of the first animation.
std::map<int, CSpriteAnim*> CSpriteType::mpAnims |
std::vector<SDL_Surface*> CSpriteType::mpFrames |
int CSpriteType::miW |
int CSpriteType::miH |
Damage points when hitting another object.
Indicates if the object is a solid tile on the map.
Indicates if the object should be managed inside the object manager.
Indicates if the object is the player.
Indicates if the object is an enemy.
Indicates if the object is a gun powerup.
Indicates if the object is a bullet for the gun powerup.
Indicates if the object is an ammo powerup.
Indicates if the object is a health powerup.
Indicates if the object is a door.
Indicates if the object is affected by gravity.
Indicates if the object is removed after a collision.