fix: change renderer to class

This commit is contained in:
2021-09-18 18:58:32 +02:00
parent 519c6e33e7
commit a8b6a646af
10 changed files with 150 additions and 121 deletions

View File

@@ -6,16 +6,19 @@
#include "game/Team.h"
#include "game/Player.h"
#include "render/Renderer.h"
namespace td {
namespace client {
class Client{
private:
render::Renderer* m_Renderer;
ClientConnexion m_Connexion;
ClientGame m_Game{m_Connexion.GetDispatcher()};
ClientGame m_Game;
bool m_Connected;
public:
Client() : m_Connected(false){}
Client(render::Renderer* renderer) : m_Renderer(renderer), m_Game(m_Connexion.GetDispatcher(), m_Renderer), m_Connected(false){}
const ClientGame& getGame() const{ return m_Game; }
const ClientConnexion& getConnexion() const{ return m_Connexion; }