class BulletFireBall: public Bullet

This class represent a FireBall Bullet

Inheritance:


Public Methods

[more] BulletFireBall()
Minimal Constructor, set also the correct ttl
[more] BulletFireBall(const Point3f &_p, const float _angle)
Constructor with given position and direction, set also the correct ttl
[more] BulletFireBall(const Point3f &_p, const float _angle, const Point3f &_v)
Constructur with given position and direction and velocity, set also the correct ttl
[more]void Draw()
This function draw The FireBall
[more]void Update(int t)
Move the bullet, stop it and make it explode

Inherited from Bullet:

Public Fields

oint ttl

Inherited from GameObj:

Public Fields

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

Public Methods

oPoint3f VDir()
obool Collide(GameObj *o)
ovoid DrawBound()

Documentation

This class represent a FireBall Bullet. This is a bullet that fly normally for two secs and then explodes.
o BulletFireBall()
Minimal Constructor, set also the correct ttl

o BulletFireBall(const Point3f &_p, const float _angle)
Constructor with given position and direction, set also the correct ttl

o BulletFireBall(const Point3f &_p, const float _angle, const Point3f &_v)
Constructur with given position and direction and velocity, set also the correct ttl

ovoid Draw()
This function draw The FireBall. For first two secs this call the old bullet::draw (just a short line shading from cyan to dark blue). then draw a lot of small bullets radially expanding

ovoid Update(int t)
Move the bullet, stop it and make it explode. For the first two sec call the bullet::update, then stop the bullet and resize the bounding sphere radius to destroy anything inside the explosion radius


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



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