📄 ghostaction.h
字号:
// GhostAction.h
//
// Class that defines the interface for all possible ghost's actions
//
/////////////////////////////////////////////////////////////////////////////
#ifndef _GHOST_ACTION_H_
#define _GHOST_ACTION_H_
class Ghost; // defined in Ghost.h
class GhostAction
{
// methods
public:
virtual void run(Ghost *ghost) = 0;
};
// do nothing action
class GhostNopAction : public GhostAction
{
// methods
public:
virtual void run(Ghost *ghost){}
};
#endif // _GHOST_ACTION_H_
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -