Add sun / moon, started on score / GameManager

This commit is contained in:
Bram Verhulst
2024-05-16 12:44:53 +02:00
parent 8866f33c09
commit 3c83e566dd
12 changed files with 176 additions and 35 deletions

View File

@@ -1,12 +1,38 @@
#pragma once
#include "Player.h"
#include "Gui/Screens/MainScreen.h"
class GameManager
{
class GameManager {
public:
float balance{ 0.0f };
float fuel{ 0.0f };
static GameManager& GetInstance();
static GameManager* m_pInstance;
void SetMainScreen(MainScreen* pMainScreen);
void SetFuel(int fuel);
int GetFuel() const;
void DecreaseFuel(int fuel);
void AddFuel(int fuel);
void SetHullIntegrity(int hullIntegrity);
int GetHullIntegrity() const;
void DamageHull(int damage);
void SetScore(int score);
int GetScore() const;
void IncreaseScore(int score);
void Update(float elapsedSecs);
private:
GameManager() = default;
float m_Balance{ 0.0f };
int m_HullIntegrity{ 100 };
int m_Fuel{ 100 };
int m_Score{ 0 };
MainScreen* m_pMainScreen{ nullptr };
};