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]int Draw()
Draw the asteroid shape

Inherited from Ast:

Public Fields

ofloat size
oint strenght
o Sub

Public Methods

ovoid Explode(list<Ast *> &AL, list<GameObj *> &OL)
ovoid GenerateSub(Mesh &AstM)
oint Points()

Public

LargeSize=12, MediumSize=6, SmallSize=3


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()
obool operator < ( GameObj const & o ) const
obool operator == ( GameObj const & o ) const

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.

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