You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
459 B
19 lines
459 B
#pragma once
|
|
|
|
#include "TileType.hpp"
|
|
#include <vector>
|
|
|
|
class BlockType {
|
|
public:
|
|
TileType* tile_type;
|
|
std::vector<std::vector<bool>> grid;
|
|
unsigned int width, height, starting_line;
|
|
bool rotate;
|
|
BlockType(TileType* _tile_type, const std::vector<std::vector<bool>> _grid, bool _rotate = true);
|
|
|
|
static BlockType* random();
|
|
static void init();
|
|
private:
|
|
inline static std::vector<BlockType> list = {};
|
|
inline static bool inited = false;
|
|
}; |