2P11/src/Controllers/ConsoleController/ConsoleController.hpp

31 lines
546 B
C++
Raw Normal View History

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>
#include "../../Helpers/Keyboard.hpp"
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-05-02 22:57:08 +02:00
Game m_game;
kbdh::Direction waitArrowKeyPress();
2015-04-30 10:09:58 +02:00
public:
2015-05-03 09:57:31 +02:00
//Constructor and Destructor
2015-04-30 10:09:58 +02:00
ConsoleController();
~ConsoleController();
2015-05-03 09:57:31 +02:00
//Helpers
2015-05-02 22:57:08 +02:00
void run();
2015-05-03 02:02:22 +02:00
void coutStats();
2015-04-30 08:48:29 +04:00
};
2015-04-30 09:11:20 +02:00
#endif