mirror of
https://github.com/ApfelTeeSaft/PlanetFleet.git
synced 2026-08-26 19:33:38 +00:00
26 lines
358 B
C++
26 lines
358 B
C++
#include "game.h"
|
|
#include "player.h"
|
|
#include "projectile.h"
|
|
|
|
namespace battleship{
|
|
static Game *game = nullptr;
|
|
|
|
Game* Game::getSingleton(){
|
|
if(!game)
|
|
game = new Game();
|
|
|
|
return game;
|
|
}
|
|
|
|
void Game::update(){
|
|
for(Player *p : players)
|
|
p->update();
|
|
|
|
for(Projectile *proj : projectiles)
|
|
proj->update();
|
|
}
|
|
|
|
void Game::togglePause(){
|
|
}
|
|
}
|