StarTrekV3_Linux  Version3
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros Pages
TParticle Class Reference

#include <particle.h>

Inherits TSprite.

Public Member Functions

 TParticle (PARTICLE_EFFECT a_Effect)
 
void Draw (double a_dCamX, double a_dCamY)
 ** VIRTUAL ** Draw the sprite. is sprite and camera are in the same position, the sprite will be in the middle of the screen ! Called by Engine More...
 
void Do_ai ()
 ** VIRTUAL ** Enter AI routine Called by Engine More...
 
- Public Member Functions inherited from TSprite
virtual void Move (double a_dLagCount)
 ** VIRTUAL ** Move the sprite according to its speed. Called by Engine More...
 
virtual void DoCollision (TSprite *const a_pSprite)
 ** VIRTUAL ** Handle collision if m_blCanCollide is true Called by Engine More...
 
void SetPosition (double a_dX, double a_dY, double a_dAngle)
 Sets the position of this sprite. More...
 
void SetPosition (double a_dX, double a_dY)
 Sets the position of this sprite. More...
 
void SetHeight (int a_nHeight)
 Sets the Height Z position ( drawing order) More...
 
void SetSpeed (double a_dSpeed)
 Sets the Speed. More...
 
void SetImage (ALLEGRO_BITMAP *a_pImage)
 Sets the Image of the sprite. More...
 
double GetX ()
 Get the X position. More...
 
double GetY ()
 Get the Y position. More...
 
 TSprite ()
 Basic sprite constructor. More...
 
virtual ~TSprite ()
 

Protected Attributes

int m_nLife
 
- Protected Attributes inherited from TSprite
TEnginem_pEngine
 Pointer to the engine. More...
 
ALLEGRO_BITMAP * m_pImage
 pointer to a bitmap representing this sprite More...
 
int m_nZ
 Z drawing order ( Depth) More...
 
double m_dAngle
 
double m_dX
 
double m_dY
 
double m_dSpeed
 
int m_nBitmapWidth
 
int m_nBitmapHeight
 
int m_nBitmapMidX
 
int m_nBitmapMidY
 

Additional Inherited Members

- Public Attributes inherited from TSprite
bool m_blDestroyed
 
bool m_blCanCollide
 
bool m_blCanFind
 
MEMBER m_Member
 A sprite can be associated with a certain group (Federation, Klingon etc.) More...
 
ID m_ID
 an ID providig some runtime type information More...
 

Constructor & Destructor Documentation

TParticle::TParticle ( PARTICLE_EFFECT  a_Effect)

Member Function Documentation

void TParticle::Do_ai ( )
virtual

** VIRTUAL ** Enter AI routine Called by Engine

Reimplemented from TSprite.

void TParticle::Draw ( double  a_dCamX,
double  a_dCamY 
)
virtual

** VIRTUAL ** Draw the sprite. is sprite and camera are in the same position, the sprite will be in the middle of the screen ! Called by Engine

Parameters
doublea_dCamX X position of the CENTER of the camera
doublea_dCamY X position of the CENTER of the camera

Reimplemented from TSprite.

Member Data Documentation

int TParticle::m_nLife
protected

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