📄 tortoisedemon.h
字号:
#ifndef _TORTOISEDEMON_H_FILE_INCLUDED_
#define _TORTOISEDEMON_H_FILE_INCLUDED_
#include "Object.h"
class CTortoiseDemon:public CObject
{
public:
CTortoiseDemon(CGame * Game,int x, int y);
virtual const int * GetImage(bool * HInv,bool * VInv);
virtual void Clock();
virtual void Bump(CObject * Other,int Mode,bool Volun);
virtual bool Block(CObject * Other);
virtual void Attack(CObject * Other,int Mode);
private:
int m_Action;//当前的动作状态,取值0~2
int m_ActionTimeCount;//并非每个时钟周期都改变动作,而是要等该数器达到一定值时才改变。
bool m_ToRight;//当前面向哪方。true:右 false:左
bool m_MarioBump;//变成乌龟壳时,是否只要被玛莉碰到就运动
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -