Ripped out all networking systems; simply not working correctly

This commit is contained in:
Kayne Ruse
2013-05-17 19:59:31 +10:00
parent 24e48dec53
commit 5ade2cc98e
17 changed files with 9 additions and 787 deletions
+2 -5
View File
@@ -8,13 +8,12 @@ using namespace std;
//Public access members
//-------------------------
TestSystems::TestSystems(ConfigUtility* cUtil, SurfaceManager* sMgr, TCPSocket* sock) {
TestSystems::TestSystems(ConfigUtility* cUtil, SurfaceManager* sMgr) {
#ifdef DEBUG
cout << "entering TestSystems" << endl;
#endif
configUtil = cUtil;
surfaceMgr = sMgr;
socket = sock;
playerCounter = currentPlayer = 0;
@@ -28,7 +27,6 @@ TestSystems::TestSystems(ConfigUtility* cUtil, SurfaceManager* sMgr, TCPSocket*
TestSystems::~TestSystems() {
playerMgr.DeleteAll();
socket->Close();
#ifdef DEBUG
cout << "leaving TestSystems" << endl;
#endif
@@ -165,6 +163,5 @@ void TestSystems::SwitchToPlayer(int index) {
}
void TestSystems::SendMessage(std::string s) {
s += ';';
socket->Send(s.c_str(), s.length());
//
}