Files
Tower-Defense2/include/client/Client.h
2025-08-21 20:51:13 +02:00

27 lines
543 B
C++

#pragma once
#include <client/IClientSocket.h>
#include <client/PlayerManager.h>
#include <td/common/StateMachine.h>
namespace td {
namespace client {
class ClientState;
class Client : public StateMachine<Client, void, float> {
private:
std::shared_ptr<IClientSocket> m_Socket;
PlayerManager m_Players;
public:
Client(const std::shared_ptr<IClientSocket>& a_Socket, const std::string& a_PlayerName);
void SendPacket(const protocol::PacketBase& a_Packet);
friend class ClientState;
};
} // namespace client
} // namespace td