Main Page | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

Bullet Class Reference

#include <gameobjs.h>

Inheritance diagram for Bullet:

Inheritance graph
[legend]
Collaboration diagram for Bullet:

Collaboration graph
[legend]
List of all members.

Detailed Description

Bullet object.

Bang!


Public Member Functions

 Bullet ()
 Simple constructor.
void regen (Vec4 pos, Vec4 dir, Vec4 spd)
 Create a new bullet, set position, and direction.
void render (void)
 The bullet is drawn as a unit vector line at whatever point it is at.
void update (float time)
 As well as other physics updates, age it.


Constructor & Destructor Documentation

Bullet::Bullet  ) 
 

Simple constructor.

Ensure life is set to 0 and gravity is applied. Also, make it yellow.


Member Function Documentation

void Bullet::regen Vec4  pos,
Vec4  dir,
Vec4  spd
 

Create a new bullet, set position, and direction.

Fire.

Parameters:
pos Position of the bullet (just in front of the ship)
dir Direction of the bullet to go in.
spd Initial speed. Set to that of the ship.

Here is the call graph for this function:

void Bullet::update float  time  )  [virtual]
 

As well as other physics updates, age it.

Parameters:
time In seconds.

Implements AbsObj.

Here is the call graph for this function:


The documentation for this class was generated from the following files:
Generated on Mon Jan 3 15:14:19 2005 for Graviton by  doxygen 1.3.9.1