Cosmetic changes only.
This commit is contained in:
parent
35d1059a39
commit
9153439f68
@ -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)
|
||||
|
@ -7,6 +7,8 @@
|
||||
class GameSetup;
|
||||
class NetworkPlayerProfile;
|
||||
|
||||
/** This protocol runs on both server and clients.
|
||||
*/
|
||||
class StartGameProtocol : public Protocol
|
||||
{
|
||||
protected:
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user