X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Fclient%2Fclient.h;h=e3c931837754eb0fba0b9b4a5824807321074d23;hb=47da640d7763ee1e00badb7476ac5afc4f864367;hp=6dad48c3df46262d75b23e541a1ad36f8d568cc7;hpb=23677be951b4dc2b9cc174ceb92f0e0b8e8eb867;p=dragonfireclient.git diff --git a/src/client/client.h b/src/client/client.h index 6dad48c3d..e3c931837 100644 --- a/src/client/client.h +++ b/src/client/client.h @@ -193,6 +193,7 @@ class Client : public con::PeerHandler, public InventoryManager, public IGameDef void handleCommand_ActiveObjectRemoveAdd(NetworkPacket* pkt); void handleCommand_ActiveObjectMessages(NetworkPacket* pkt); void handleCommand_Movement(NetworkPacket* pkt); + void handleCommand_Fov(NetworkPacket *pkt); void handleCommand_HP(NetworkPacket* pkt); void handleCommand_Breath(NetworkPacket* pkt); void handleCommand_MovePlayer(NetworkPacket* pkt); @@ -333,12 +334,14 @@ class Client : public con::PeerHandler, public InventoryManager, public IGameDef // disconnect client when CSM failed. const std::string &accessDeniedReason() const { return m_access_denied_reason; } - bool itemdefReceived() + const bool itemdefReceived() const { return m_itemdef_received; } - bool nodedefReceived() + const bool nodedefReceived() const { return m_nodedef_received; } - bool mediaReceived() + const bool mediaReceived() const { return !m_media_downloader; } + const bool activeObjectsReceived() const + { return m_activeobjects_received; } u16 getProtoVersion() { return m_proto_ver; } @@ -539,6 +542,7 @@ class Client : public con::PeerHandler, public InventoryManager, public IGameDef std::queue m_client_event_queue; bool m_itemdef_received = false; bool m_nodedef_received = false; + bool m_activeobjects_received = false; bool m_mods_loaded = false; ClientMediaDownloader *m_media_downloader;