ghostaction.h
来自「VIGASOCO (VIdeo GAmes SOurce COde) Windo」· C头文件 代码 · 共 29 行
H
29 行
// 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 + =
减小字号Ctrl + -
显示快捷键?