Implementing automatic kick of players after a certain timeout within a game.

This commit is contained in:
lotodore committed 2011-12-16 22:39:24 +00:00
1 parent 91b3307584
commit 0a8cd1cce4
8 files changed
+51 -27

No files matched your search

+10
View File
@@ -5123,3 +5123,13 @@ bool LocalPlayer::checkIfINeedToShowCards()
return false;
}
void LocalPlayer::markRemoteAction()
{
m_lastRemoteActionTimer.restart();
}
unsigned LocalPlayer::getTimeSecSinceLastRemoteAction() const
{
return m_lastRemoteActionTimer.elapsed().total_seconds();
}