Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

#ifndef PIECES_CONTAINER_H

#define PIECES_CONTAINER_H
#include <iomanip>
#include <vector>
#include "Enums.h"

namespace Tetris
{
/**
* @brief Represents a container for Tetris shapes.
*/
class Shapes_Container
{
public:

/**
* @brief Constructs a vector with all possible Tetris shapes and initializes
index 0
*/
Shapes_Container();
/**
* @brief Retrieves the next shape in the container.
* @return The next shape in the container.
*/
const BrickShape& getNextShape();
private:
/**
* @brief Shuffles the shapes in the container.
*/
void shuffle();

std::vector<Tetris::BrickShape> shapes; ///< The vector containing Tetris


shapes.
unsigned index ; ///< The current index of the shape in the container.
};

#endif // PIECES_CONTAINER_H

You might also like