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

📄 worldmodel.h

📁 巫魔问题求解
💻 H
字号:
#pragma once
#include "ServerMap.h"
#include "Explorer.h"

namespace _server
{
    class GameEngine;
    class WorldModel
    {
    public:
        //Constructor
        WorldModel(unsigned int x_border, unsigned int y_border, GameEngine &ge);
        WorldModel(char *filename, GameEngine &ge);
        //Destructor
        ~WorldModel(void);

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

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

    public:
        //references
        ServerMap &TheServerMap(void);
        Explorer &TheExplorer(void);
        GameEngine &TheGameEngine(void);

        const ServerMap &GetServerMap(void) const;
        const Explorer &GetExplorer(void) const;
        const GameEngine &GetGameEngine(void) const;

    public:
        //informations
        bool IsHawl(void) const;
        bool & _su_IsHawl(void);
        bool IsBump(void) const;
        bool & _su_IsBump(void);
        bool IsNewlyCreated(void) const;
        bool & _su_IsNewlyCreated(void);

    protected:
        ServerMap *mpServerMap;
        Explorer *mpExplorer;
        GameEngine *mpGameEngine;

    protected:
        bool mIsHawl;
        bool mIsBump;
        bool mIsNewlyCreated;
    };
}

⌨️ 快捷键说明

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