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)


Inherited from GameObj:

Public Fields

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

Public Methods

ovoid Update(int t)
oPoint3f VDir()


Documentation

This class represent a generic asteroid. Please note the specialized redraw function and the private member to keep asteroid size
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:
AstFract
Ast3D

Alphabetic index HTML hierarchy of classes or Java



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