effector.h

来自「巫魔问题求解」· C头文件 代码 · 共 34 行

H
34
字号
#pragma once

namespace _server
{
    class AlgorithmInterface;
}

namespace _algorithm
{
    class Effector
    {
    public:
        //constructor and destructor
        Effector(_server::AlgorithmInterface &ai);
        ~Effector(void);

    private:
        //disable copy constructor
        Effector(const Effector &from);
        
    public:
        //operations
        bool TurnLeft(void);
        bool TurnRight(void);
        bool GoAhead(void);
        bool Escape(void);
        bool Shoot(void);
        
    protected:
        _server::AlgorithmInterface &TheAlgorithmInterface(void);
        const _server::AlgorithmInterface &GetAlgorithmInterface(void) const;
        _server::AlgorithmInterface *mpAI;
    };
}

⌨️ 快捷键说明

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