Client.h 441 B

12345678910111213141516171819202122
  1. #ifndef CLIENT_H
  2. #define CLIENT_H
  3. #include "common/network/ENet.h"
  4. class Client {
  5. public:
  6. Client();
  7. Client(const Client&) = delete;
  8. Client& operator=(const Client&) = delete;
  9. Client(Client&&) = delete;
  10. Client& operator=(Client&&) = delete;
  11. void connect(ENetPeer* peer);
  12. void disconnect();
  13. bool isDisconnected() const;
  14. private:
  15. ENetPeer* peer;
  16. };
  17. #endif