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

📄 explorer.h

📁 巫魔问题求解
💻 H
字号:
#pragma once

namespace _server
{
    class WorldModel;

    class Explorer
    {
    public:
        enum eExplorerDirection
        {
            ED_None,
            ED_Up,
            ED_Left,
            ED_Down,
            ED_Right,
        };

        //Constructor
        Explorer(WorldModel &spwm);
        //Destructor
        ~Explorer(void);
    private:
        //Copy constructor
        Explorer(const Explorer &from);
        

    public:
        //Operations
        bool TurnLeft(void);
        bool TurnRight(void);
        bool GoAhead(void);
        bool Escape(void);
        bool Shoot(void);

        void Reset(void);
    public:
        //Informations
        unsigned int GetDirection(void) const;
        unsigned int GetX(void) const;
        unsigned int GetY(void) const;
        unsigned int GetShootsLeft(void) const;

        WorldModel &TheWorldModel(void);
        const WorldModel &GetWorldModel(void) const;

    protected:
        //Information data
        unsigned int mDirection;
        unsigned int mPositionX;
        unsigned int mPositionY;

        unsigned int mShootsLeft;

        WorldModel *mpWorldModel;
    };
}

⌨️ 快捷键说明

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