www.pudn.com > MyGame.rar > Ast.h
// Ast.h: interface for the CAst class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_AST_H__0EDCFE8F_359C_4C34_9484_B85FA2F85757__INCLUDED_)
#define AFX_AST_H__0EDCFE8F_359C_4C34_9484_B85FA2F85757__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "GameObj.h"
#include "Triangle.h"
#include "Bullet.h"
class CAst : public CGameObj
{
public:
CAst();
virtual ~CAst();
enum {LargeSize=20, MediumSize=10, SmallSize=5};
float size;
int strenght;
CAst(const Point3f &_p, const float _angle, const Point3f &_v, float _av,float _size):
CGameObj(_p,_angle,_v)
{
av=_av;
size=_size;
}
virtual int Draw();
virtual void Explode(list &AL, list &OL){};
virtual void Hit(CBullet *b, list &AL, list &OL);
virtual void GenerateSub(CMesh &AstM){};
vector Sub;
virtual int Points(){return 10;};
};
#endif // !defined(AFX_AST_H__0EDCFE8F_359C_4C34_9484_B85FA2F85757__INCLUDED_)