Skip to content
Snippets Groups Projects
Commit fffbdd00 authored by Susa Márk's avatar Susa Márk
Browse files

Upload New File

parent a542e6e1
No related branches found
No related tags found
No related merge requests found
1.4.hpp 0 → 100644
#ifndef AMOEBA_WIDGET_HPP
#define AMOEBA_WIDGET_HPP
#include "oswidget.hpp"
#include "button.hpp"
#include "graphics.hpp"
class AmoebaWidget : public OSWidget {
private:
static const int pathSize = 15;
char path[pathSize][pathSize];
int cellSize;
int cellPadding;
int currentPlayer;
bool gameStarted;
bool gameEnded;
Button* startButton;
Button* winnerButton;
bool checkWin() const;
void restartGame();
public:
AmoebaWidget(Window* window, int pos_x, int pos_y, int width, int height);
virtual void draw() const override;
virtual void handle(genv::event ev) override;
};
#endif // AMOEBA_WIDGET_HPP
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment