ast.h

来自「基于引擎基础上开发的三维游戏实例“恐怖之战”游戏者可以自爱三维地形上漫游」· C头文件 代码 · 共 39 行

H
39
字号
// 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<CAst *> &AL, list<CGameObj *> &OL){};
	virtual void Hit(CBullet *b, list<CAst *> &AL, list<CGameObj *> &OL);
	virtual void GenerateSub(CMesh &AstM){};
	vector<CAst *> Sub; 
	virtual int Points(){return 10;};
};

#endif // !defined(AFX_AST_H__0EDCFE8F_359C_4C34_9484_B85FA2F85757__INCLUDED_)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?