game.h

来自「一个用C++写的文字类游戏」· C头文件 代码 · 共 28 行

H
28
字号
#pragma once

#define FILE_MAX  4096
//地图最大尺寸
#define MAP_MAX_SIZE  10
class CGame
{
public:
	CGame(void);
	~CGame(void);

	void GameHelp();
	

	bool InitRole(char * strFileName);
	bool InitScenario(char * strFileName);
	bool InitNPC(char * strFileName);
	bool Init();
	void Over();
	void FillEquip(char * strEquip, int nLength);
	void FillGoods(char * strGoods, int nLength);
	void FillNPC(char * strNPC, int nLength);
	void Render(char cCommand);
	void GetCurStart();
	void MovePos(char cDirection);

};

⌨️ 快捷键说明

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