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

📄 worldmodel.h

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

namespace _algorithm
{
    class WorldModel
    {
    public:
        //constructor and destructor
        WorldModel(unsigned int x_border, unsigned int y_border);
        ~WorldModel(void);

    public:
        //information
        struct Info
        {
            Info(void) { memset(this, 0, sizeof(*this)); }

            unsigned int mPositionX;
            unsigned int mPositionY;
            unsigned int mDirection;
            unsigned int mShootsLeft;
            unsigned int mXBorder;
            unsigned int mYBorder;

            bool mIsStench;
            bool mIsGleam;
            bool mIsBreeze;
            bool mIsBump;
            bool mIsHowl;
        };
    private:
        //disable copy constructor
        WorldModel(const WorldModel &);

    public:
        //reference to client map and info
        ClientMap &TheClientMap(void);
        const ClientMap &GetClientMap(void) const;
        Info &TheInfo(void);
        const Info & GetInfo(void) const;

        //reset the world model
        void Reset(void);

    private:
        ClientMap *mpClientMap;
        Info *mpInfo;
    };
}

⌨️ 快捷键说明

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