class Bullet: public GameObj

This class represent a bullet fired by a ship

Inheritance:


Public Fields

[more]int ttl
Time To Live (expressed in msec)

Public Methods

[more] Bullet()
Minimal Constructor
[more] Bullet(const Point3f &_p, const float _angle)
Constructor with given position and direction
[more] Bullet(const Point3f &_p, const float _angle, const Point3f &_v)
Constructur with given position and direction and velocity


Inherited from GameObj:

Public Fields

oPoint3f p
oPoint3f axis
ofloat angle
oPoint3f v
ofloat av
obool active

Public Methods

ovoid Draw()
ovoid Update(int t)
oPoint3f VDir()


Documentation

This class represent a bullet fired by a ship. Please note the specialized redraw function and the TTL member
o Bullet()
Minimal Constructor

o Bullet(const Point3f &_p, const float _angle)
Constructor with given position and direction

o Bullet(const Point3f &_p, const float _angle, const Point3f &_v)
Constructur with given position and direction and velocity

oint ttl
Time To Live (expressed in msec). Time that the object has before it disappear


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.