PlayerShip.h
资源名称:g.rar [点击查看]
上传用户:laitongbao
上传日期:2021-02-20
资源大小:8176k
文件大小:1k
源码类别:
射击游戏
开发平台:
Visual C++
- // PlayerShip.h: interface for the PlayerShip class.
- //
- //////////////////////////////////////////////////////////////////////
- #include "includeCGL.h"
- #if !defined (AFX_PLAYERSHIP_H__D218282A_132F_4B92_846A_4D2F8455EFF7__INCLUDED_)
- #define AFX_PLAYERSHIP_H__D218282A_132F_4B92_846A_4D2F8455EFF7__INCLUDED_
- class MachineGun;
- class Exploder;
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- class PlayerShip
- {
- public:
- PlayerShip();
- void Fire();
- void Bob();
- void MoveLeft();
- void MoveRight();
- void ZengineStop();
- void XengineStop();
- void RotateBack();
- void MoveForward();
- void MoveBackward();
- void Damage(int value);
- void Die();
- void Reset();
- void PowerUp();
- void DoFrame();
- virtual ~PlayerShip();
- MachineGun *gun1;
- MachineGun *gun2;
- MeshObject*mesh;
- int shell;
- private:
- int numBob;
- int Power;//Player 子弹发射速度1-10;
- Exploder* explode;
- Exploder* explode2;
- Exploder* expBengin;//开始的爆炸
- FrameTimer*deadStayTimer;
- Particle_Emit* wake;//尾炎
- bool active;
- };
- #endif // !defined(AFX_PLAYERSHIP_H__D218282A_132F_4B92_846A_4D2F8455EFF7__INCLUDED_)