flytortoisedemon.h

来自「过程的c++编译器 里面有超级玛丽的源代码 还有一个 管理系统的源代码」· C头文件 代码 · 共 22 行

H
22
字号
#ifndef _FLYTORTOISEDEMON_H_FILE_INCLUDED_

#define _FLYTORTOISEDEMON_H_FILE_INCLUDED_

#include "Object.h"

class CFlyTortoiseDemon:public CObject
{
public:
	CFlyTortoiseDemon(CGame * Game,int x, int y);
	virtual const int * GetImage(bool * HInv,bool * VInv);
	virtual void Clock();
	virtual void Attack(CObject * Other,int Mode);
	virtual void Bump(CObject * Other,int Mode,bool Volun);
private:
	int m_Action;//当前的动作状态,取值0~1
	int m_ActionTimeCount;//并非每个时钟周期都改变动作,而是要等该数器达到一定值时才改变。
	bool m_ToRight;//当前面向哪方。true:右 false:左
};

#endif

⌨️ 快捷键说明

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