show cards button gui action hopefully implemented ;-)

This commit is contained in:
doitux
2010-07-16 09:13:43 +00:00
parent 756e92aeab
commit 96fa7c642c
6 changed files with 4534 additions and 4514 deletions
@@ -515,3 +515,13 @@ boost::shared_ptr<SessionData> ClientPlayer::getNetSessionData()
return myNetSessionData;
}
bool ClientPlayer::checkIfINeedToShowCards()
{
std::list<unsigned> playerNeedToShowCardsList = currentBoard->getPlayerNeedToShowCards();
for(std::list<unsigned>::iterator it = playerNeedToShowCardsList.begin(); it != playerNeedToShowCardsList.end(); it++)
{
if(*it == myUniqueID) return true;
}
return false;
}