class Ast: public GameObj

This class represent a generic asteroid

Inheritance:


Public Fields

[more]float size
The radius (mt) of the Asteroid

Public Methods

[more] Ast()
default constructor sets also the radius
[more] Ast(const Point3f &_p, const float _angle, const Point3f &_v, float _av, float _size)
Specialized constructor to set also angular velocity and size
[more]void Draw()
Draw the asteroid shape (just a square with the give size)

Public

[more] LargeSize=12, MediumSize=6, SmallSize=3
Default Sizes of Asteroids

Inherited from GameObj:

Public Fields

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

Public Methods

ovoid Update(int t)
oPoint3f VDir()
obool Collide(GameObj *o)
ovoid DrawBound()

Documentation

This class represent a generic asteroid.
o LargeSize=12, MediumSize=6, SmallSize=3
Default Sizes of Asteroids The asteroids has only three valid sizes. When an asteroid explode it splits into two (or more) smaller asteroids

ofloat size
The radius (mt) of the Asteroid

o Ast()
default constructor sets also the radius

o Ast(const Point3f &_p, const float _angle, const Point3f &_v, float _av, float _size)
Specialized constructor to set also angular velocity and size

ovoid Draw()
Draw the asteroid shape (just a square with the give size)


Direct child classes:
Ast3DFract
Ast3D

Alphabetic index HTML hierarchy of classes or Java



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