shajia.h

来自「一个完整的2D滚屏游戏示例」· C头文件 代码 · 共 28 行

H
28 行
字号
#ifndef  _SHA_JIA
#define  _SHA_JIA 

#include "saintfighter.h" 

//class CShaJia;
//class CLotus;//shajia's lotus; 
///////////////////////////////////////////////////////////////////////
class CShaJia : public CSaintFighter
{
public:
CShaJia();
virtual void Trace(long unsigned int luTime,CSaintFighter saint); 
};

////////////////////////////////////////////////////////////////////////
class CLotus:public CSpirit
{
public:
int   m_nRadio; //the radio of the circle on which the lotus around Sahjia; 
int   m_nAngle; //the angle of the circle on which the lotus around Sahjia;
public:
CLotus();
void InitAngle(int i);
virtual void Trace(CSaintFighter saint,int i); //"i" is a paremeter to control the position of lotus;
};

#endif

⌨️ 快捷键说明

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