#include "manager.hpp" #include "editor.hpp" #include "menu.hpp" #include "game.hpp" #include #include #include int main() { Manager manager; std::shared_ptr menu = std::shared_ptr(new Menu(manager)); std::shared_ptr editor = std::shared_ptr(new Editor(manager)); try { manager.setState(menu); manager.start(); } catch (const std::exception& exception) { std::cerr << "Le programme a quitté après une erreur d'exécution." << std::endl; std::cerr << exception.what() << std::endl; return EXIT_FAILURE; } return EXIT_SUCCESS; }