Files
etaHEN/Source Code/include/well.hpp
LM 03d016fd31 etaHEN Goes Open Source
etaHEN Goes Open Source

clean tmp files

....
2025-09-07 11:10:19 -04:00

23 lines
604 B
C++
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#pragma once
class Painter;
class Tetromino;
class Well
{
public:
enum { WIDTH = 10, HEIGHT = 20 };
Well();
// рисует колодец на рисовальщике Painter
void draw(Painter &) const;
// проверка на столкновения тетромины с
// блоками в колодце
bool isCollision(const Tetromino &) const;
// перенос тетромины в колодец
void unite(const Tetromino &);
// удаление полностью заполненых строки
int removeSolidLines();
private:
bool map_[HEIGHT][WIDTH];
};