Enemy.h
资源名称:g.rar [点击查看]
上传用户:laitongbao
上传日期:2021-02-20
资源大小:8176k
文件大小:1k
源码类别:
射击游戏
开发平台:
Visual C++
- // Enemy.h: interface for the Enemy class.
- //
- //////////////////////////////////////////////////////////////////////
- #include "includeCGL.h"
- #if !defined(AFX_ENEMY1_H__D8A6F53D_5018_4276_9ECB_C077040950D5__INCLUDED_)
- #define AFX_ENEMY1_H__D8A6F53D_5018_4276_9ECB_C077040950D5__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- class LaserGun;
- class Exploder;
- class Enemy1
- {
- public:
- Enemy1(VECTOR3 pos0,VECTOR3 v0,int bonus);//bonus是否死后会掉奖励
- void DoFrame();
- void TurnLeft();
- void TurnRight();
- void Damage(int dam);
- virtual ~Enemy1();
- //data
- int bonus;
- MeshObject* mesh;
- LaserGun*gun1;//激光炮
- LaserGun*gun2;
- int shell;
- bool alive;
- private:
- Exploder* expInner;//爆炸内圈
- Exploder* expOuter;//爆炸外圈
- Exploder* expBengin;//开始的爆炸
- FrameTimer*deadStayTimer;
- float t0;
- bool whichGunToFire;
- bool active;
- float angle;
- };
- #endif // !defined(AFX_ENEMY_H__D8A6F53D_5018_4276_9ECB_C077040950D5__INCLUDED_)