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

📄 servermap.h

📁 巫魔问题求解
💻 H
字号:
#pragma once
#include <Wum_Base/src/Map.h>

namespace _server
{
    class ServerMap : public _base::Map
    {
    public:
        //Constructor
        ServerMap(unsigned x_border, unsigned int y_border);
        ServerMap(char *filename);

        //Destructor
        ~ServerMap(void);

    private:        
        //Copy constructor
        ServerMap(const ServerMap & from);

        //Operator "="
        ServerMap operator = (const ServerMap &right);

    public:
        void Reset(void);
        void Reset(char *filename);

        //Warning!! Solve the shoot case, called by super user
        bool _su_SolveShoot(unsigned int x,
                            unsigned int y,
                            unsigned int direction);

    protected:
        //Generate a new map
        void GenNewMap(void);

        //Update the cell infomations
        void UpdateCells(void);
    };
}

⌨️ 快捷键说明

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