tetris/Domain/Piece.h

28 lines
363 B
C
Raw Normal View History

2018-02-05 23:44:42 +00:00
/*
* 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_ */