gun.h

来自「小蜜蜂射击游戏,画面精彩,声音也不错」· C头文件 代码 · 共 35 行

H
35 行
字号
// gun.h: interface for the gun class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_GUN_H__C712F206_8A95_4059_A94B_F3EC760C4156__INCLUDED_)
#define AFX_GUN_H__C712F206_8A95_4059_A94B_F3EC760C4156__INCLUDED_


#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "screen.h"

class gun  
{
public:
	void init();
	int status;
	void getpos(int *x,int *y);
	void shape(int cx1, int cy1,int cx2,int cy2,int cx3,int cy3);
	gun(int cx1,int cy1,int cx2,int cy2,int cx3,int cy3);
	void paint(CDC *pdc,screen *pscreen);
	void shot();
	void move(int direct,screen* pscreen);
    bool isInMe(int cx,int cy);
	gun();
	virtual ~gun();

private:
	int x1,y1,x2,y2,x3,y3;
};

#endif // !defined(AFX_GUN_H__C712F206_8A95_4059_A94B_F3EC760C4156__INCLUDED_)

⌨️ 快捷键说明

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