serverscene.h

来自「网络游戏通用架构, 这是基于boost和libevent写的一个程序」· C头文件 代码 · 共 32 行

H
32
字号
#ifndef SERVERSCENE_H
#define SERVERSCENE_H

#include <iostream>

#include "scene.h"

using namespace std;

class ServerScene : public Scene
{
public:
    ServerScene();
    ~ServerScene();
public:
    int init();
    void breathe();
    void shutdown();
    static int* getTypePtr(void)
    {
        return &_type;
    }
    int getType(void) const
    {
        return _type;
    }
protected:
    static int _type;
};

#endif

⌨️ 快捷键说明

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