43 lines
597 B
C++
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_ */
|