summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authormanzerbredes <loic.guegan_secondary@yahoo.fr>2015-05-02 23:05:44 +0200
committermanzerbredes <loic.guegan_secondary@yahoo.fr>2015-05-02 23:05:44 +0200
commit710cc4001f65ac2fee39e25d79f43a01b9e12512 (patch)
tree2e78e337b0c7d0f79bd68205badc1630326118ed /src/main.cpp
parentfec126f0d2d48310109f85c3647b10ce393db5e8 (diff)
parent1d09a0fd3ae35ccf51a3b5f929f77a8c8850712c (diff)
First stable fusionning
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp45
1 files changed, 25 insertions, 20 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 0d3b950..49c7a20 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -1,25 +1,30 @@
-#include <SFML/Graphics.hpp>
+//----- STD include -----
+#include <iostream>
#include <string>
+#include <time.h>
+#include <tuple>
+//----------------------
+//----- Personnal include -----
+#include "./Controllers/ConsoleController/ConsoleController.hpp"
+//-----------------------------
+
+
+
+
+
+//----- Start -----
int main()
{
- sf::RenderWindow window(sf::VideoMode(200, 200), "SFML works!");
- sf::CircleShape shape(100.f);
- shape.setFillColor(sf::Color::Green);
-
- while (window.isOpen())
- {
- sf::Event event;
- while (window.pollEvent(event))
- {
- if (event.type == sf::Event::Closed)
- window.close();
- }
-
- window.clear();
- window.draw(shape);
- window.display();
- }
-
- return 0;
+ //Init random
+ srand(time(NULL));
+
+ //Init controller
+ ConsoleController controller;
+
+ //Run the game
+ controller.run();
+
+
+ return 0;
}