⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tblock.h

📁 在symbian2.0平台上开发的完整的俄罗斯方块的源码。
💻 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 + -