Add stay on table animation for inactive network players which doent leave the table. some vote kick fixes.
This commit is contained in:
@@ -23,7 +23,7 @@ using namespace std;
|
||||
|
||||
|
||||
ClientPlayer::ClientPlayer(ConfigFile *c, BoardInterface *b, int id, unsigned uniqueId, PlayerType type, std::string name, std::string avatar, int sC, bool aS, int mB)
|
||||
: PlayerInterface(), myConfig(c), currentHand(0), currentBoard(b), myCardsValue(0), myID(id), myUniqueID(uniqueId), myType(type), myName(name), myAvatar(avatar), myDude(0), myDude4(0), myCardsValueInt(0), myOdds(-1.0), myCash(sC), mySet(0), myLastRelativeSet(0), myAction(0), myButton(mB), myActiveStatus(aS), myTurn(0), myRoundStartCash(0), sBluff(0), sBluffStatus(0)
|
||||
: PlayerInterface(), myConfig(c), currentHand(0), currentBoard(b), myCardsValue(0), myID(id), myUniqueID(uniqueId), myType(type), myName(name), myAvatar(avatar), myDude(0), myDude4(0), myCardsValueInt(0), myOdds(-1.0), myCash(sC), mySet(0), myLastRelativeSet(0), myAction(0), myButton(mB), myActiveStatus(aS), myStayOnTableStatus(1), myTurn(0), myRoundStartCash(0), sBluff(0), sBluffStatus(0)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -206,6 +206,20 @@ ClientPlayer::getMyActiveStatus() const
|
||||
return myActiveStatus;
|
||||
}
|
||||
|
||||
void
|
||||
ClientPlayer::setMyStayOnTableStatus(bool theValue)
|
||||
{
|
||||
boost::recursive_mutex::scoped_lock lock(m_syncMutex);
|
||||
myStayOnTableStatus = theValue;
|
||||
}
|
||||
|
||||
bool
|
||||
ClientPlayer::getMyStayOnTableStatus() const
|
||||
{
|
||||
boost::recursive_mutex::scoped_lock lock(m_syncMutex);
|
||||
return myStayOnTableStatus;
|
||||
}
|
||||
|
||||
void
|
||||
ClientPlayer::setMyCards(int* theValue)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user