Make the connect/disconnect a lot nicer.

This commit is contained in:
Charles Lohr
2004-10-19 06:15:42 +00:00
parent 37240426fd
commit d5c767f6eb
6 changed files with 50 additions and 24 deletions
+6
View File
@@ -11,6 +11,7 @@ NetworkSyncManager::~NetworkSyncManager () { }
void NetworkSyncManager::CloseConnection() { }
void NetworkSyncManager::PostStartUp(const CString& ServerIP ) { }
bool NetworkSyncManager::Connect(const CString& addy, unsigned short port) { return false; }
CString NetworkSyncManager::GetServerName() { }
void NetworkSyncManager::ReportNSSOnOff(int i) { }
void NetworkSyncManager::ReportTiming(float offset, int PlayerNumber) { }
void NetworkSyncManager::ReportScore(int playerID, int step, int score, int combo) { }
@@ -256,6 +257,11 @@ void NetworkSyncManager::ReportNSSOnOff(int i)
NetPlayerClient->SendPack((char*)m_packet.Data, m_packet.Position);
}
CString NetworkSyncManager::GetServerName()
{
return m_ServerName;
}
void NetworkSyncManager::ReportTiming(float offset, int PlayerNumber)
{
m_lastOffset[PlayerNumber] = offset;