2015-04-30 08:48:29 +04:00
|
|
|
#ifndef DEF_CTCONSOLE
|
|
|
|
#define DEF_CTCONSOLE
|
|
|
|
|
|
|
|
/* CTConsole.hpp
|
|
|
|
* Defines the class CTConsole
|
|
|
|
* CTConsole is a controller which displays a game in a terminal
|
|
|
|
* Creators : krilius, manzerbredes
|
|
|
|
* Date : 29/04/2915 */
|
|
|
|
|
|
|
|
#include <iostream>
|
2015-04-30 09:11:20 +02:00
|
|
|
#include "../../Model/Game.hpp"
|
2015-04-30 08:48:29 +04:00
|
|
|
|
2015-04-30 09:11:20 +02:00
|
|
|
class ConsoleController
|
2015-04-30 08:48:29 +04:00
|
|
|
{
|
2015-04-30 10:09:58 +02:00
|
|
|
private:
|
2015-04-30 09:11:20 +02:00
|
|
|
|
2015-04-30 10:09:58 +02:00
|
|
|
Game * m_game;
|
2015-05-01 12:56:38 +02:00
|
|
|
Direction waitArrowKeyPress();
|
2015-04-30 10:09:58 +02:00
|
|
|
public:
|
|
|
|
ConsoleController();
|
|
|
|
~ConsoleController();
|
|
|
|
void play();
|
2015-04-30 08:48:29 +04:00
|
|
|
};
|
|
|
|
|
2015-04-30 09:11:20 +02:00
|
|
|
#endif
|