[Added] Pause and Game Over screens

This commit is contained in:
Ninjaws
2024-12-11 23:20:10 +01:00
parent 7bdd8829b0
commit 770d3e3c71
10 changed files with 275 additions and 25 deletions
+30
View File
@@ -0,0 +1,30 @@
#ifndef GAME_SERVICE_H
#define GAME_SERVICE_H
#include "Service.h"
class GameService : public Service<GameService> {
public:
bool isPaused() {
return this->paused;
}
bool isGameOver() {
return this->gameOver;
}
void setPaused(bool paused) {
this->paused = paused;
}
void setGameOver(bool gameOver) {
this->gameOver = gameOver;
}
private:
bool paused = false;
bool gameOver = false;
};
#endif