Remove reference to network session from player objects.
This commit is contained in:
1 parent
5ab043d533
commit
5857f07309
11 files changed
+35
-47
No files matched your search
@@ -847,7 +847,10 @@ static const RoundData FlopValues[] = {
|
||||
#define NUM_FLOP_VALUES (sizeof(FlopValues)/sizeof(RoundData))
|
||||
|
||||
LocalPlayer::LocalPlayer(ConfigFile *c, int id, unsigned uniqueId, PlayerType type, std::string name, std::string avatar, int sC, bool aS, int mB)
|
||||
: PlayerInterface(), myConfig(c), currentHand(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), myCardsFlip(0), myRoundStartCash(0), lastMoneyWon(0), sBluff(0), sBluffStatus(0), myWinnerState(false), m_actionTimeoutCounter(0)
|
||||
: PlayerInterface(), myConfig(c), currentHand(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), myCardsFlip(0), myRoundStartCash(0), lastMoneyWon(0),
|
||||
sBluff(0), sBluffStatus(0), myWinnerState(false), m_actionTimeoutCounter(0), m_isConnected(false)
|
||||
{
|
||||
|
||||
// !!!!!!!!!!!!!!!!!!!!!!!! testing !!!!!!!!!!!!!!!!!!!!!!!!
|
||||
@@ -5111,14 +5114,14 @@ void LocalPlayer::riverEngine3()
|
||||
|
||||
}
|
||||
|
||||
void LocalPlayer::setNetSessionData(boost::shared_ptr<SessionData> session)
|
||||
void LocalPlayer::setIsConnected(bool connected)
|
||||
{
|
||||
myNetSessionData = session;
|
||||
m_isConnected = connected;
|
||||
}
|
||||
|
||||
boost::shared_ptr<SessionData> LocalPlayer::getNetSessionData()
|
||||
bool LocalPlayer::isConnected() const
|
||||
{
|
||||
return myNetSessionData;
|
||||
return m_isConnected;
|
||||
}
|
||||
|
||||
unsigned
|
||||
|
||||
Reference in new issue
Block a user