CSpriteType Class Reference

Holds basic sprite information. More...

#include <class.sprites.hh>

Collaboration diagram for CSpriteType:

Collaboration graph
[legend]

List of all members.

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.


Detailed Description

Holds basic sprite information.

Constructor & Destructor Documentation

CSpriteType::CSpriteType (  ) 

CSpriteType::~CSpriteType (  ) 


Member Function Documentation

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.


Member Data Documentation

std::vector<SDL_Surface*> CSpriteType::mpFrames

Damage points when hitting another object.

Remarks:
By default, the vector is initialized to zero.

Indicates if the object is a solid tile on the map.

Remarks:
By default, this variable is set to 0.

Indicates if the object should be managed inside the object manager.

Remarks:
By default, this variable is set to 0.

Indicates if the object is the player.

Remarks:
By default, this variable is set to 0.

Indicates if the object is an enemy.

Remarks:
By default, this variable is set to 0.

Indicates if the object is a gun powerup.

Remarks:
By default, this variable is set to 0.

Indicates if the object is a bullet for the gun powerup.

Remarks:
By default, this variable is set to 0.

Indicates if the object is an ammo powerup.

Remarks:
By default, this variable is set to 0.

Indicates if the object is a health powerup.

Remarks:
By default, this variable is set to 0.

Indicates if the object is a door.

Remarks:
By default, this variable is set to 0.

Indicates if the object is affected by gravity.

Remarks:
By default, this variable is set to 1.

Indicates if the object is removed after a collision.

Remarks:
By default, this variable is set to 0.


The documentation for this class was generated from the following files:

Generated on Fri Feb 22 09:36:54 2008 for Mega Maryo by  doxygen 1.5.5