www.pudn.com > Russian_Diamond(step2).zip > block.h
#ifndef BLOCK_H #define BLOCK_H #includeclass TBlock { public: TBlock() :iType(0), iRot(0) {} static int BlockCount(); static TBlock Block(int id); static TBlock RandomBlock(TInt64 &seed); void Rotate(int dir); TInt8 RowMask(int nr) const; TInt8 Color() const; protected: TBlock(int aType, int aRot) :iType(aType), iRot(aRot) { } private: TInt8 iType; TInt8 iRot; }; #endif