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

📄 block.h

📁 使用symbian的s60实现的小游戏俄罗斯方块(第三步)
💻 H
字号:
#ifndef BLOCK_H
#define BLOCK_H

#include <e32std.h>

class 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

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -