[atlantik-cvs] CVS: kdegames/atlantik/libatlantic player.cpp,1.17,1.18 player.h,1.14,1.15

[email protected]
Newsgroups gmane.comp.kde.devel.atlantik
Message-ID <[email protected]>
Update of /home/kde/kdegames/atlantik/libatlantic
In directory office:/tmp/cvs-serv1081/libatlantic

Modified Files:
	player.cpp player.h 
Log Message:
fix 54942

Index: player.cpp
===================================================================
RCS file: /home/kde/kdegames/atlantik/libatlantic/player.cpp,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- player.cpp	22 Jun 2003 00:02:11 -0000	1.17
+++ player.cpp	22 Jun 2003 02:43:26 -0000	1.18
@@ -28,7 +28,7 @@
 	m_location = m_destination = 0;
 	m_money = 0;
 	m_changed = m_isSelf = false;
-	m_master = m_bankrupt = m_hasTurn = m_canRoll = m_canBuy = m_inJail = false;
+	m_master = m_bankrupt = m_hasDebt = m_hasTurn = m_canRoll = m_canBuy = m_inJail = false;
 }
 
 void Player::setGame(int gameId)
@@ -72,6 +72,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.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- player.h	22 Jun 2003 00:02:11 -0000	1.14
+++ player.h	22 Jun 2003 02:43:26 -0000	1.15
@@ -42,6 +42,8 @@
 	bool master() { return m_master; }
 	void setBankrupt(bool bankrupt);
 	bool isBankrupt() { return m_bankrupt; }
+	void setHasDebt(bool hasDebt);
+	bool hasDebt() { return m_hasDebt; }
 	void setHasTurn(const bool hasTurn);
 	bool hasTurn() const { return m_hasTurn; }
 	void setCanRoll(bool canRoll);
@@ -66,7 +68,7 @@
 private:
 	int m_id, m_gameId;
 	bool m_changed, m_isSelf;
-	bool m_master, m_bankrupt, m_hasTurn, m_canRoll, m_canBuy, m_inJail;
+	bool m_master, m_bankrupt, m_hasDebt, m_hasTurn, m_canRoll, m_canBuy, m_inJail;
 	unsigned int m_money;
 	QString m_name, m_host, m_image;
 	Estate *m_location, *m_destination;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.