mirror of
https://github.com/etaHEN/etaHEN.git
synced 2026-01-12 19:25:33 +08:00
20 lines
285 B
C++
20 lines
285 B
C++
#pragma once
|
|
#include "tetromino.hpp"
|
|
#include "well.hpp"
|
|
|
|
class Painter;
|
|
|
|
class Game
|
|
{
|
|
public:
|
|
enum Direction { UP, DOWN, LEFT, RIGHT };
|
|
Game();
|
|
void draw(Painter &);
|
|
void tick();
|
|
void restart();
|
|
void keyEvent(Direction);
|
|
private:
|
|
Well well_;
|
|
Tetromino tetromino_;
|
|
};
|