g_cmdpool.h
来自「PC网络游戏的编程」· C头文件 代码 · 共 35 行
H
35 行
// g_cmdpool.h: interface for the CG_CmdPool class.
#ifndef __CG_CMD_POOL_H__
#define __CG_CMD_POOL_H__
// use stl
#include <string>
#include <vector>
using namespace std;
struct SCmd
{
void *fun;
int num;
string str;
string desc;
};
class CG_CmdPool
{
public:
int GetCmdCount();
bool AddCmd(SCmd *cmd);
SCmd *GetCmdByNum(int num);
SCmd *GetCmdByStr(char *str);
CG_CmdPool();
virtual ~CG_CmdPool();
private:
vector<SCmd> m_cmdList;
};
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?