gameinfo.h

来自「这是整套横扫千军3D版游戏的源码」· C头文件 代码 · 共 32 行

H
32
字号
#ifndef GAMEINFO_H
#define GAMEINFO_H

#include "InputReceiver.h"

class CGameInfo : public CInputReceiver
{
	public:
		static void Enable();
		static void Disable();
		static bool IsActive();

	protected:
		CGameInfo(void);
		~CGameInfo(void);

		bool MousePress(int x, int y, int button);
		void MouseRelease(int x, int y, int button);
		bool KeyPressed(unsigned short key, bool isRepeat);
		bool IsAbove(int x, int y);
		std::string GetTooltip(int x,int y);
		void Draw();

	protected:
		ContainerBox box;

	protected:
		static CGameInfo* instance;
};

#endif /* GAMEINFO_H */

⌨️ 快捷键说明

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