Update of /cvsroot/gcblue/gcb_wx/include/network
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14250/include/network
Modified Files:
tcConnectionData.h tcMultiplayerInterface.h
tcNetworkInterface.h
Log Message:
fixed problem writing to account database, added command state update as part of create update for new objects at client, removed application-level command ack
Index: tcMultiplayerInterface.h
===================================================================
RCS file: /cvsroot/gcblue/gcb_wx/include/network/tcMultiplayerInterface.h,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -d -r1.20 -r1.21
*** tcMultiplayerInterface.h 16 Apr 2005 20:43:55 -0000 1.20
--- tcMultiplayerInterface.h 17 Apr 2005 22:34:59 -0000 1.21
***************
*** 27,30 ****
--- 27,32 ----
#endif
+ #include "wx/wx.h"
+
#include <list>
#include <map>
***************
*** 111,114 ****
--- 113,118 ----
bool IsCommand(const std::string& text);
bool IsServer();
+ int LogInPlayer(const std::string& username, int connectionId, wxString& msg);
+ void LogOutAllPlayers();
void MakeClient();
void MakeServer();
***************
*** 159,163 ****
void UpdateDestroyedEntities(int connectionId);
void UpdateNewAndExistingEntities(int connectionId);
! void UpdateEntityCommands(int connectionId, bool updateUnack, bool clearNewCmdFlag);
void UpdateEntities();
void UpdatePing();
--- 163,167 ----
void UpdateDestroyedEntities(int connectionId);
void UpdateNewAndExistingEntities(int connectionId);
! void UpdateEntityCommands(int connectionId, bool clearNewCmdFlag);
void UpdateEntities();
void UpdatePing();
Index: tcNetworkInterface.h
===================================================================
RCS file: /cvsroot/gcblue/gcb_wx/include/network/tcNetworkInterface.h,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** tcNetworkInterface.h 16 Apr 2005 20:43:55 -0000 1.10
--- tcNetworkInterface.h 17 Apr 2005 22:34:59 -0000 1.11
***************
*** 67,70 ****
--- 67,72 ----
tcMessage* GetMessage(int id);
unsigned int GetNumConnections();
+ tcConnectionData* GetConnection(int id);
+
bool IsServer() const;
void MakeClient();
***************
*** 119,123 ****
int CheckoutMessage();
! tcConnectionData* GetConnection(int id);
tcConnectionData* GetConnection(const std::string& peerName);
wxDatagramSocket* GetDatagramSocket() {return datagramSock;}
--- 121,125 ----
int CheckoutMessage();
!
tcConnectionData* GetConnection(const std::string& peerName);
wxDatagramSocket* GetDatagramSocket() {return datagramSock;}
Index: tcConnectionData.h
===================================================================
RCS file: /cvsroot/gcblue/gcb_wx/include/network/tcConnectionData.h,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** tcConnectionData.h 16 Apr 2005 20:43:55 -0000 1.8
--- tcConnectionData.h 17 Apr 2005 22:34:59 -0000 1.9
***************
*** 65,68 ****
--- 65,69 ----
// free all queued messages
void ClearAllMessages();
+ const char* GetIdString() const;
const wxIPV4address& GetPeerAddress() const;
unsigned long GetReadCount() const;
|