Cosmetic changes only.

This commit is contained in:
hiker 2015-12-04 18:07:43 +11:00
parent 35d1059a39
commit 9153439f68
3 changed files with 14 additions and 12 deletions

View File

@ -39,7 +39,16 @@ StartGameProtocol::StartGameProtocol(GameSetup* game_setup)
// ----------------------------------------------------------------------------
StartGameProtocol::~StartGameProtocol()
{
}
} // ~StartGameProtocol
// ----------------------------------------------------------------------------
void StartGameProtocol::setup()
{
m_state = NONE;
m_ready_count = 0;
m_ready = false;
Log::info("SynchronizationProtocol", "Ready !");
} // setup
// ----------------------------------------------------------------------------
bool StartGameProtocol::notifyEventAsynchronous(Event* event)
@ -88,16 +97,7 @@ bool StartGameProtocol::notifyEventAsynchronous(Event* event)
Log::error("StartGameProtocol", "Received a message with bad format.");
}
return true;
}
// ----------------------------------------------------------------------------
void StartGameProtocol::setup()
{
m_state = NONE;
m_ready_count = 0;
m_ready = false;
Log::info("SynchronizationProtocol", "Ready !");
}
} // notifyEventAsynchronous
// ----------------------------------------------------------------------------
bool compareKarts(NetworkPlayerProfile* a, NetworkPlayerProfile* b)

View File

@ -7,6 +7,8 @@
class GameSetup;
class NetworkPlayerProfile;
/** This protocol runs on both server and clients.
*/
class StartGameProtocol : public Protocol
{
protected:

View File

@ -26,9 +26,9 @@ public:
virtual void setup();
virtual void update() {}
virtual void asynchronousUpdate();
void startCountdown(int ms_countdown);
// ------------------------------------------------------------------------
int getCountdown() { return (int)(m_countdown*1000.0); }
}; // class SynchronizationProtocol