⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 clientscene.h

📁 网络游戏通用架构, 这是基于boost和libevent写的一个程序
💻 H
字号:
#ifndef CLIENTSCENE_H
#define CLIENTSCENE_H

#include <stddef.h>
#include <iostream>

#include "scene.h"

using namespace std;

#include "myconsole.h"

class ClientScene : public Scene
{
public:
    ClientScene();
    ~ClientScene();
public:
    int init();
    void breathe();
    void shutdown();
    static int* getTypePtr(void)
    {
        return &_type;
    }
    int getType(void) const
    {
        return 0;
    }
    void setType( int __type ) {}
    MyConsole& getConsole(void)
    {
        recursive_mutex::scoped_lock lock( _mutex );
        return *_console;
    }
protected:
    MyConsole* _console;
    static int _type;
};

#endif

⌨️ 快捷键说明

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