[atlantik-cvs] CVS: kdegames/atlantik/libatlantic player.cpp,1.9.8.6,1.9.8.7 player.h,1.7.8.5,1.7.8.6
[email protected] Sun, 22 Jun 2003 04:51:10 +0200 (CEST)
Newsgroups
gmane.comp.kde.devel.atlantik
Message-ID
<[email protected] >
Update of /home/kde/kdegames/atlantik/libatlantic
In directory office:/tmp/cvs-serv1224/libatlantic
Modified Files:
Tag: KDE_3_1_BRANCH
player.cpp player.h
Log Message:
backport: fix 54942
Index: player.cpp
===================================================================
RCS file: /home/kde/kdegames/atlantik/libatlantic/player.cpp,v
retrieving revision 1.9.8.6
retrieving revision 1.9.8.7
diff -u -d -r1.9.8.6 -r1.9.8.7
--- player.cpp 22 Jun 2003 00:08:06 -0000 1.9.8.6
+++ player.cpp 22 Jun 2003 02:51:08 -0000 1.9.8.7
@@ -27,7 +27,7 @@
m_name = "";
m_host = "";
m_changed = m_isSelf = false;
- m_bankrupt = m_hasTurn = m_canRoll = m_canBuy = m_inJail = false;
+ m_bankrupt = m_hasDebt = m_hasTurn = m_canRoll = m_canBuy = m_inJail = false;
}
void Player::setGame(int gameId)
@@ -62,6 +62,15 @@
if (m_bankrupt != bankrupt)
{
m_bankrupt = bankrupt;
+ m_changed = true;
+ }
+}
+
+void Player::setHasDebt(bool hasDebt)
+{
+ if (m_hasDebt != hasDebt)
+ {
+ m_hasDebt = hasDebt;
m_changed = true;
}
}
Index: player.h
===================================================================
RCS file: /home/kde/kdegames/atlantik/libatlantic/player.h,v
retrieving revision 1.7.8.5
retrieving revision 1.7.8.6
diff -u -d -r1.7.8.5 -r1.7.8.6
--- player.h 22 Jun 2003 00:08:06 -0000 1.7.8.5
+++ player.h 22 Jun 2003 02:51:08 -0000 1.7.8.6
@@ -40,6 +40,8 @@
bool isBankrupt() { return m_bankrupt; }
void setIsSelf(const bool isSelf) { m_isSelf = isSelf; }
bool isSelf() const { return m_isSelf; }
+ void setHasDebt(bool hasDebt);
+ bool hasDebt() { return m_hasDebt; }
void setHasTurn(const bool hasTurn);
bool hasTurn() const { return m_hasTurn; }
void setCanRoll(bool canRoll);
@@ -62,7 +64,7 @@
private:
int m_id, m_gameId;
bool m_changed, m_isSelf;
- bool m_bankrupt, m_hasTurn, m_canRoll, m_canBuy, m_inJail;
+ bool m_bankrupt, m_hasDebt, m_hasTurn, m_canRoll, m_canBuy, m_inJail;
unsigned int m_money;
QString m_name, m_host;
Estate *m_location, *m_destination;