#ifndef PIECES_H #define PIECES_H #include "point.h" class Piece { const static int SIZE = 4; Point blocks [SIZE]; Point current_block_; Point position_; int iterator; public: enum class PieceType{ LINE = 0, BLOCK, S, T, L }; Piece(int xpos); Piece(PieceType type, int xpos); Point getPosition(); void restartTo(PieceType type, int xpos); void rotate(); void advance(); void move_left(); void move_right(); void initIterator(); Point* nextAbsBlockPos(); }; #endif