first commit
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
#pragma once
|
||||
|
||||
#include <vector>
|
||||
|
||||
#include "Figure.h"
|
||||
|
||||
class GameField
|
||||
{
|
||||
private:
|
||||
size_t m_Width = 0;
|
||||
size_t m_Height = 0;
|
||||
|
||||
std::vector<std::vector<wchar_t>> m_Field;
|
||||
|
||||
public:
|
||||
void resize(
|
||||
size_t width,
|
||||
size_t height
|
||||
);
|
||||
|
||||
void render(
|
||||
PaintDevice& paintDevice
|
||||
);
|
||||
|
||||
bool has_collision(
|
||||
const Figure& figure
|
||||
);
|
||||
|
||||
void merge(
|
||||
const Figure& figure
|
||||
);
|
||||
int clear_lines();
|
||||
};
|
||||
Reference in New Issue
Block a user