tblock.h
来自「在symbian2.0平台上开发的完整的俄罗斯方块的源码。」· C头文件 代码 · 共 45 行
H
45 行
#ifndef __TBLOCK_H
#define __TBLOCK_H
#include <e32std.h>
const TUint8 BLOCKNUM = 15;
class TBlock
{
// construct
public:
TBlock() : iType(0), iRot(0)
{}
TBlock(TUint8 aType, TInt8 aRot) : iType(aType), iRot(aRot)
{}
///////////////////////////////////////////////////////////////
// Other Method
public:
static TBlock Block(TUint8 aType);
static TBlock RandomBlock(TInt64 &seed, const TUint8 aClassify);
void Rotate(TInt8 dir);
TUint16 RowMask(TInt nr) const;
TUint8 Type() const;
//////////////////////////////////////////////////////////////////
// Data
private:
TUint8 iType;
TInt8 iRot;
};
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?