tetris/Logic/PieceGenerator.h

43 lines
597 B
C
Raw Normal View History

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