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
obool lthrust
obool rthrust

Public Methods

ovoid Update(int t)
ovoid ThrustOn()
ovoid ThrustOff()
ovoid StartStrafeLeft()
ovoid StartStrafeRight()
ovoid StopStrafeLeft()
ovoid StopStrafeRight()
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
oSphere3f B

Public Methods

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

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++.