class Ast3D: public Ast

This class represent a asteroid with a random silohuette

Inheritance:


Public Fields

[more]Mesh M
The polygon representing the asteroid silohuette

Public Methods

[more] Ast3D(char *filename=äst.raw")
Default constructor
[more] Ast3D(const Point3f &_p, const float _angle, const Point3f &_v, float _av, float _size, char *filename=äst.raw")
Specialized constructor to set also angular velocity and size
[more]void Draw()
Draw the asteroid shape


Inherited from Ast:

Public Fields

ofloat 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 asteroid with a random silohuette. It is derived from the Ast Class. The generation of the random silohuette is done in the member function Build, that is called by all the constructors. The random silohuette is stored in a vector<Point3f>.
oMesh M
The polygon representing the asteroid silohuette.

o Ast3D(char *filename=äst.raw")
Default constructor. It should also start the build function to create the random silohuette;

o Ast3D(const Point3f &_p, const float _angle, const Point3f &_v, float _av, float _size, char *filename=äst.raw")
Specialized constructor to set also angular velocity and size. It should also start the build function to create the random silohuette;

ovoid Draw()
Draw the asteroid shape. Simply draw the polygon stored in P


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



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