16#include "mingl/mingl.h"
46 unique_ptr<PixelManager> pm;
81 vector<missile> missiles;
86 vector<Torpedo> torpedos;
96 vector<Player> players;
103 unsigned fireCooldown=0;
112 bool areThereInvadersLeft();
118 void handleScoreSaving();
127 Position invIndexToPos(
unsigned x,
unsigned y)
const;
134 void displayAll(
unsigned fps)
const;
140 void displayGod()
const;
163 void managePlayers();
177 bool manageInvaders();
185 void remCollidingProjectiles();
203 void checkMissilesAndPlayers();
210 bool checkTorpedosAndInvaders();
217 bool invadersTouchPlayer()
const;
void managedGames()
start games managed by our class
WinValue enterGameLoop()
enter the main gameplay game loop. Will block until the game ends
void initGame()
Set or reset all the setting for a new game.
bool reloadConfig()
reload the configuration file (not dynamically used currently, but it was planned to be)
Game()
constructor for the game class
bool arePlayersDead()
tells if all players are dead
manage the score in the game and inside the score file
Configuration file data storage.
Special entity known as "God"
InvaderType
List of all invader type.
PlayMode
List of all game playmode.
this struct stores all relevant data from the configuration file
nsGraphics::Vec2D Position
WinValue
list of win values