[atlantik-cvs] CVS: kdegames/atlantik/libatlantic player.cpp,1.19,1.20 player.h,1.16,1.17

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

Modified Files:
	player.cpp player.h 
Log Message:
fix bug 54517

Index: player.cpp
===================================================================
RCS file: /home/kde/kdegames/atlantik/libatlantic/player.cpp,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- player.cpp	22 Jun 2003 23:44:21 -0000	1.19
+++ player.cpp	23 Jun 2003 01:22:39 -0000	1.20
@@ -28,7 +28,7 @@
 	m_location = m_destination = 0;
 	m_money = 0;
 	m_changed = m_isSelf = false;
-	m_master = m_bankrupt = m_hasDebt = m_hasTurn = m_canRoll = m_canBuy = m_canAuction = m_inJail = false;
+	m_master = m_bankrupt = m_hasDebt = m_hasTurn = m_canRoll = m_canBuy = m_canAuction = m_canUseCard = m_inJail = false;
 }
 
 void Player::setGame(int gameId)
@@ -117,6 +117,15 @@
 	if (m_canAuction != canAuction)
 	{
 		m_canAuction = canAuction;
+		m_changed = true;
+	}
+}
+
+void Player::setCanUseCard(bool canUseCard)
+{
+	if (m_canUseCard != canUseCard)
+	{
+		m_canUseCard = canUseCard;
 		m_changed = true;
 	}
 }

Index: player.h
===================================================================
RCS file: /home/kde/kdegames/atlantik/libatlantic/player.h,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- player.h	22 Jun 2003 23:44:21 -0000	1.16
+++ player.h	23 Jun 2003 01:22:39 -0000	1.17
@@ -52,6 +52,8 @@
 	bool canBuy() const { return m_canBuy; }
 	void setCanAuction(bool canAuction);
 	bool canAuction() const { return m_canAuction; }
+	void setCanUseCard(bool canUseCard);
+	bool canUseCard() const { return m_canUseCard; }
 	void setInJail(const bool inJail);
 	bool inJail() const { return m_inJail; }
 	void setName(const QString _n);
@@ -70,7 +72,7 @@
 private:
 	int m_id, m_gameId;
 	bool m_changed, m_isSelf;
-	bool m_master, m_bankrupt, m_hasDebt, m_hasTurn, m_canRoll, m_canBuy, m_canAuction, m_inJail;
+	bool m_master, m_bankrupt, m_hasDebt, m_hasTurn, m_canRoll, m_canBuy, m_canAuction, m_canUseCard, 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.