[atlantik-cvs] CVS: kdegames/atlantik/libatlantic player.cpp,1.9.8.5,1.9.8.6 player.h,1.7.8.4,1.7.8.5

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

Modified Files:
      Tag: KDE_3_1_BRANCH
	player.cpp player.h 
Log Message:
backport; hide token when player goes bankrupt

Index: player.cpp
===================================================================
RCS file: /home/kde/kdegames/atlantik/libatlantic/player.cpp,v
retrieving revision 1.9.8.5
retrieving revision 1.9.8.6
diff -u -d -r1.9.8.5 -r1.9.8.6
--- player.cpp	31 Jan 2003 06:24:39 -0000	1.9.8.5
+++ player.cpp	22 Jun 2003 00:08:06 -0000	1.9.8.6
@@ -27,7 +27,7 @@
 	m_name = "";
 	m_host = "";
 	m_changed = m_isSelf = false;
-	m_hasTurn = m_canRoll = m_canBuy = m_inJail = false;
+	m_bankrupt = m_hasTurn = m_canRoll = m_canBuy = m_inJail = false;
 }
 
 void Player::setGame(int gameId)
@@ -53,6 +53,15 @@
 	if (m_destination != destination)
 	{
 		m_destination = destination;
+		m_changed = true;
+	}
+}
+
+void Player::setBankrupt(bool bankrupt)
+{
+	if (m_bankrupt != bankrupt)
+	{
+		m_bankrupt = bankrupt;
 		m_changed = true;
 	}
 }

Index: player.h
===================================================================
RCS file: /home/kde/kdegames/atlantik/libatlantic/player.h,v
retrieving revision 1.7.8.4
retrieving revision 1.7.8.5
diff -u -d -r1.7.8.4 -r1.7.8.5
--- player.h	31 Jan 2003 06:24:39 -0000	1.7.8.4
+++ player.h	22 Jun 2003 00:08:06 -0000	1.7.8.5
@@ -36,6 +36,8 @@
 	Estate *location() { return m_location; }
 	void setDestination(Estate *estate);
 	Estate *destination() { return m_destination; }
+	void setBankrupt(bool bankrupt);
+	bool isBankrupt() { return m_bankrupt; }
 	void setIsSelf(const bool isSelf) { m_isSelf = isSelf; }
 	bool isSelf() const { return m_isSelf; }
 	void setHasTurn(const bool hasTurn);
@@ -60,7 +62,7 @@
 private:
 	int m_id, m_gameId;
 	bool m_changed, m_isSelf;
-	bool m_hasTurn, m_canRoll, m_canBuy, m_inJail;
+	bool m_bankrupt, m_hasTurn, m_canRoll, m_canBuy, m_inJail;
 	unsigned int m_money;
 	QString m_name, m_host;
 	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.