class Ast3D: public Ast

This class represent a asteroid with a 3d shape

Inheritance:


Public Fields

[more]Mesh M
The mesh 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 3d shape. The 3D mesh is loaded from a raw file. by the constructuor.
oMesh M
The mesh representing the asteroid silohuette.

o Ast3D(char *filename=äst.raw")
Default constructor. It should also load the asteroid mesh.

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 load the asteroid mesh.

ovoid Draw()
Draw the asteroid shape. Simply draw the mesh stored in M


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



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