Added input queue to Client and Input Listener debug code in server.

This commit is contained in:
Jocke
2016-01-18 11:05:32 +01:00
parent db62d767ac
commit d995713d3b
5 changed files with 58 additions and 17 deletions
+2
View File
@@ -57,6 +57,7 @@ private:
SnapshotDefinitions m_NextSnapshot;
double m_DurationOfPingTime;
std::clock_t m_StartPingTime;
std::vector<Events::InputCommand> m_InputCommandBuffer;
// Private member functions
void readFromServer();
@@ -75,6 +76,7 @@ private:
void identifyPacketLoss();
bool isConnected();
EntityID createPlayer();
void sendInputCommands();
// Mapping Logic
// Returns if local EntityID exist in map
bool clientServerMapsHasEntity(EntityID clientEntityID);
+4
View File
@@ -73,6 +73,10 @@ private:
void parseServerPing();
void identifyPacketLoss();
EntityID createPlayer();
// Debug event
EventRelay<Server, Events::InputCommand> m_EInputCommand;
bool OnInputCommand(const Events::InputCommand& e);
};
#endif