Public Member Functions | Public Attributes

Bullet Class Reference

Projectiles of all kinds. More...

#include <Bullet.h>

Inheritance diagram for Bullet:
GGraphicsObject GObject

List of all members.

Public Member Functions

 Bullet (void)
 standard constructor
 ~Bullet (void)
 standard destructor
int Draw (double time, double dtime, GMatrix16 *viewmatrix, GMatrix16 *worldmatrix, int FLAGS)
 Draw Bullet.
int DrawSprites (double time, double dtime, GMatrix16 *viewmatrix, GMatrix16 *worldmatrix, int FLAGS)
 Nothing.
NxController * GetController (void)
 obtain pointer to controller as used with the physx sdk
int SetController (NxController *)
 set new controller as used with the physx sdk

Public Attributes

HitCallBack myHitCallBack
 collision callback
unsigned int texId
 bullet sprite
GVec4f Direction
 direction vector for bullet to follow
double CreationTime
 timestamp of bullet creation
double LifeTime
 bullet lifetime to avoid "zombies" (e.g. bullets that are outside any relevant range)
float Mass
 bullet mass

Detailed Description

Projectiles of all kinds.


Constructor & Destructor Documentation

Bullet::Bullet ( void   ) 

standard constructor

Bullet::~Bullet ( void   ) 

standard destructor


Member Function Documentation

int Bullet::Draw ( double  time,
double  dtime,
GMatrix16 viewmatrix,
GMatrix16 worldmatrix,
int  FLAGS 
) [virtual]

Draw Bullet.

Implements GGraphicsObject.

int Bullet::DrawSprites ( double  time,
double  dtime,
GMatrix16 viewmatrix,
GMatrix16 worldmatrix,
int  FLAGS 
) [virtual]

Nothing.

Implements GGraphicsObject.

NxController * Bullet::GetController ( void   )  [virtual]

obtain pointer to controller as used with the physx sdk

Reimplemented from GGraphicsObject.

int Bullet::SetController ( NxController *  c  ) 

set new controller as used with the physx sdk


Member Data Documentation

timestamp of bullet creation

direction vector for bullet to follow

bullet lifetime to avoid "zombies" (e.g. bullets that are outside any relevant range)

float Bullet::Mass

bullet mass

collision callback

unsigned int Bullet::texId

bullet sprite


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Enumerations Enumerator Friends Defines