#ifndef GUARD_GAME #define GUARD_GAME #include #include "mingl/mingl.h" #include "drawEngine.h" #include "config.h" #include "utils.h" using namespace std; class Game { private: DrawEngine drawer; Config conf; unsigned baseX; unsigned baseY; aliensGrid grid; vector missiles; vector torpilles; unsigned manageCollisions(); void managePlayer(); bool manageInvaders(); void display(); public: // in case someone wants to mess with the code, here's a minimal API, costs nothing to us Game(); void managedGames(); unsigned playGame(); void initialMenuHandler(); void deathMenuHandler(); }; #endif