tetris/Logic/PieceGenerator.h
2018-02-06 01:44:42 +02:00

43 lines
597 B
C++

/*
* PieceGenerator.h
*
* Created on: May 5, 2013
* Author: chibi_000
*/
#ifndef PIECEGENERATOR_H_
#define PIECEGENERATOR_H_
#include "../Domain/Piece.h"
#include <vector>
class PieceGenerator {
private:
// Constants
static const int pieces_array[][8];
protected:
// Private fields
std::vector<Piece> pieces;
// Private functions
virtual void initializePieces();
public:
// Constructors
PieceGenerator();
virtual ~PieceGenerator();
// Getters
virtual Piece getRandomPiece() const;
virtual Piece getRandomPieceRotated() const;
};
#endif /* PIECEGENERATOR_H_ */