#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, BLOCK, S, T, L }; Piece(PieceType type, int xpos); Point getPosition(); void rotate(); void advance(); void move_left(); void move_right(); void initIterator(); Point* nextAbsBlockPos(); }; #endif