[ create a new paste ] login | about

Link: http://codepad.org/hA1mQ583    [ raw code | fork ]

totoPon - C++, pasted on May 22:
/*------------------------------------------
 * DrawTetris.hpp - テトリスの画面描画を行う
 *------------------------------------------*/

#ifndef DRAWTETRIS_HPP_
#define DRAWTETRIS_HPP_

#include "ConsoleBase/ConsoleBase.hpp"
#include "TetrisBase.hpp"

namespace TetrisBase
{

  // テトリス画面描画
  class DrawTetris
  {
  private:
    CurrentTetro refTetro; // ブロック配置参照用
    ConsoleBase::ConsoleDraw *cDraw; // 画面描画クラス
    WINDOW *winField; // フィールド用ウィンドウ
    WINDOW *winNext; // NEXT用ウィンドウ
  public:
    int draw(TetrisField &fld, int8_t next); // 描画
  public:
    DrawTetris(TetrisField &fld);
    ~DrawTetris();
  private:
    DrawTetris(const DrawTetris&);
    DrawTetris &operator=(const DrawTetris&);
  };

} // namespace

#endif // DRAWTETRIS_HPP_


Create a new paste based on this one


Comments: