?? tblock.h
字號:
#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 + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -