hero.h
来自「一个symbian上成熟的小游戏源码」· C头文件 代码 · 共 51 行
H
51 行
#ifndef HERO_H
#define HERO_H
// INCLUDES
#include <e32std.h>
#include <e32base.h>
#include "Sprite.h"
#include "TiledLayer.h"
using namespace gamespace;
#include "Camera.h"
namespace mygame
{
class CHero : public CSprite
{
public:
~CHero();
static CHero* NewL();
static CHero* NewLC();
private:
CHero();
void ConstructL();
/*
public:
TInt AccessKeyDown( TInt aKeyCode, CTiledLayer* aLayer, CCamera* aCamera );
void GetPosition( TInt& aX, TInt& aY );
TInt CollideWith( CTiledLayer* aLayer, TInt aKeyCode, TInt& aR, TInt& aC );
private:
void OnAccessKeyDown( TInt aKeyCode, CCamera* aCamera );
void Move( TInt aX, TInt aY, TBool aStop );
TInt FindRLShortCut( CTiledLayer* aLayer, TInt aR, TInt aC, TInt aKeyCode );
TInt FindUDShortCut( CTiledLayer* aLayer, TInt aR, TInt aC, TInt aKeyCode );
TRect CheckRect();
*/
private:
TInt isCollide;
TInt iStep;
TInt* iSeqLeft;
TInt* iSeqRight;
TInt* iSeqUp;
TInt* iSeqDown;
};
}
#endif // HERO_H
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?