📄 effector.h
字号:
#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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -