#include <gameobjs.h>
Inheritance diagram for Bullet:
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. |
|
Simple constructor. Ensure life is set to 0 and gravity is applied. Also, make it yellow. |
|
Create a new bullet, set position, and direction. Fire.
|
Here is the call graph for this function:
|
As well as other physics updates, age it.
Implements AbsObj. |
Here is the call graph for this function: