SuperSpaceInvaderTurboApoca.../headers/game.h
2021-12-16 13:49:49 +01:00

35 lines
673 B
C++

#ifndef GUARD_GAME
#define GUARD_GAME
#include <vector>
#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<nsGraphics::Vec2D> missiles;
vector<nsGraphics::Vec2D> 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