X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fnet%2FClientConnection.hpp;h=f344efdcf883d6aa277e97ae2327ed8b34f4e089;hb=8e7e042296946ba2aed73b77ab02feb267eb17d4;hp=fb6420acfed074959df27449741d3cb80cb5526c;hpb=51a0b19601cb4b044c7eee1782aa85fc3a399d33;p=blank.git diff --git a/src/net/ClientConnection.hpp b/src/net/ClientConnection.hpp index fb6420a..f344efd 100644 --- a/src/net/ClientConnection.hpp +++ b/src/net/ClientConnection.hpp @@ -3,6 +3,8 @@ #include "Connection.hpp" #include "ConnectionHandler.hpp" +#include "../app/IntervalTimer.hpp" +#include "../world/EntityState.hpp" #include #include @@ -61,12 +63,17 @@ private: void SendDespawn(SpawnStatus &); void SendUpdate(SpawnStatus &); + void CheckPlayerFix(); + private: Server &server; Connection conn; Entity *player; std::list spawns; unsigned int confirm_wait; + EntityState player_update_state; + std::uint16_t player_update_pack; + IntervalTimer player_update_timer; };