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;
118 bool areThereInvadersLeft();
124 void handleScoreSaving();
131 Position invIndexToPos(
unsigned x,
unsigned y)
const;
139 void displayScore()
const;
146 void displayAll(
unsigned fps)
const;
152 void displayGod()
const;
175 void managePlayers();
189 bool manageInvaders();
197 void remCollidingProjectiles();
215 void checkMissilesAndPlayers();
222 bool checkTorpedosAndInvaders();
229 bool invadersTouchPlayer()
const;
void managedGames()
manages and changes the states of the game
WinValue enterGameLoop()
enter the main gameplay game loop
bool reloadConfig()
reload the configuration file for a new game
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