summaryrefslogtreecommitdiff
path: root/src/CTController
diff options
context:
space:
mode:
authormanzerbredes <loic.guegan_secondary@yahoo.fr>2015-04-30 09:07:40 +0200
committermanzerbredes <loic.guegan_secondary@yahoo.fr>2015-04-30 09:07:40 +0200
commitfa88c91351388c4b2e1791ccab2cd8a959dc976b (patch)
tree76f63e47c85368b304b6558983a2d3996f1c9af3 /src/CTController
parent4afa51e9e686075194194b80c0cc572222ee47aa (diff)
Fix some things
Diffstat (limited to 'src/CTController')
-rw-r--r--src/CTController/CTConsole.cpp48
-rw-r--r--src/CTController/CTConsole.hpp26
2 files changed, 0 insertions, 74 deletions
diff --git a/src/CTController/CTConsole.cpp b/src/CTController/CTConsole.cpp
deleted file mode 100644
index 44b598e..0000000
--- a/src/CTController/CTConsole.cpp
+++ /dev/null
@@ -1,48 +0,0 @@
-#include "CTConsole.hpp"
-
-CTConsole::CTConsole()
-{
- m_game = new Game();
-}
-
-CTConsole::~CTConsole()
-{
- delete m_game;
-}
-
-void CTConsole::play()
-{
- while (!m_game->isOver())
- {
- m_game->showGrid();
- char moveChoice = ' ';
-
- std::cin >> moveChoice;
-
- switch (moveChoice)
- {
- case 'z':
- std::cout << "up" << std::endl;
- break;
-
- case 's':
- std::cout << "down" << std::endl;
- break;
-
- case 'q':
- std::cout << "left" << std::endl;
- break;
-
- case 'd':
- std::cout << "right" << std::endl;
- break;
-
- default:
- break;
- }
-
- std::cout << std::endl;
-
- m_game->pop();
- }
-} \ No newline at end of file
diff --git a/src/CTController/CTConsole.hpp b/src/CTController/CTConsole.hpp
deleted file mode 100644
index 9534877..0000000
--- a/src/CTController/CTConsole.hpp
+++ /dev/null
@@ -1,26 +0,0 @@
-#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 "../Model/Game.hpp"
-
-class CTConsole
-{
-private:
- Game * m_game;
-
-public:
- CTConsole();
- ~CTConsole();
-
- void play();
-};
-
-#endif \ No newline at end of file