Projectiles of all kinds. More...
#include <Bullet.h>
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 |
Projectiles of all kinds.
Bullet::Bullet | ( | void | ) |
standard constructor
Bullet::~Bullet | ( | void | ) |
standard destructor
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
double Bullet::CreationTime |
timestamp of bullet creation
direction vector for bullet to follow
double Bullet::LifeTime |
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