tetris/Domain/Piece.h

28 lines
363 B
C++

/*
* Piece.h
*
* Created on: May 5, 2013
* Author: chibi_000
*/
#ifndef PIECE_H_
#define PIECE_H_
#include "Array2.h"
class Piece : public Array2 {
public:
// Constructors
Piece();
Piece(int w, int h);
Piece(int w, int h, const int* vals);
Piece(const Piece& p);
virtual ~Piece();
// Rotate
Piece rotate() const;
};
#endif /* PIECE_H_ */