class TriShip: public Ship

This class represent an example of specialization

Inheritance:


Public Methods

[more]void Draw()
The Draw function has been rewritten
[more]int MaxBullet()
The maximum number of bullet now is 30 instead of 10
[more]void Shoot(list<Bullet *> &LB)
Shoot a new bullet triple


Inherited from Ship:

Public Fields

oPoint3f a
obool thrust

Public Methods

ovoid Update(int t)
ovoid ThrustOn()
ovoid ThrustOff()
ovoid StartLeft()
ovoid StartRight()
ovoid StopLeft()
ovoid StopRight()

Protected Fields

oint ActiveBullet


Inherited from GameObj:

Public Fields

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

Public Methods

oPoint3f VDir()


Documentation

This class represent an example of specialization. Draw, MaxBullet and Shoot has been rewritten. Please note the changed interface of the shoot function, now it returns a list of bullets (instead of a single bullet) Also GameSession::Shoot() has been changed.
ovoid Draw()
The Draw function has been rewritten. Now we have a new shape and an animated thrust flame too.

oint MaxBullet()
The maximum number of bullet now is 30 instead of 10

ovoid Shoot(list<Bullet *> &LB)
Shoot a new bullet triple. It creates the three new bullets and return them in a list


This class has no child classes.
See Also:
GameSession::Shoot()

Alphabetic index HTML hierarchy of classes or Java



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