2015-04-29 22:28:29 +04:00
|
|
|
#ifndef DEF_GAME
|
|
|
|
#define DEF_GAME
|
|
|
|
|
|
|
|
/* Game.h
|
|
|
|
* Defines the class Game
|
|
|
|
* A game allows a player to play. It contains a grid and pops numbers
|
|
|
|
* Creators : krilius, manzerbredes
|
|
|
|
* Date : 29/04/2015 */
|
|
|
|
|
|
|
|
#include <iostream>
|
2015-05-02 18:15:14 +02:00
|
|
|
#include <string>
|
2015-05-02 22:57:08 +02:00
|
|
|
#include "../Helpers/Keyboard.hpp"
|
2015-04-29 22:28:29 +04:00
|
|
|
#include "Grid.hpp"
|
2015-05-02 22:57:08 +02:00
|
|
|
#include <tuple>
|
2015-04-29 22:28:29 +04:00
|
|
|
|
|
|
|
class Game
|
|
|
|
{
|
2015-05-01 10:24:45 +02:00
|
|
|
private:
|
2015-05-02 19:26:01 +02:00
|
|
|
Grid m_grid;
|
2015-05-01 10:24:45 +02:00
|
|
|
|
|
|
|
public:
|
|
|
|
Game();
|
|
|
|
~Game();
|
2015-05-02 22:57:08 +02:00
|
|
|
|
|
|
|
bool swipe(kbdh::Direction direction);
|
|
|
|
void coutGrid();
|
|
|
|
void popRandomNumber();
|
|
|
|
bool isOver();
|
2015-04-29 22:28:29 +04:00
|
|
|
};
|
|
|
|
|
2015-04-30 09:42:40 +02:00
|
|
|
#endif
|