[atlantik-cvs] CVS: kdegames/atlantik/libatlantic trade.cpp,1.20,1.21 trade.h,1.12,1.13

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

Modified Files:
	trade.cpp trade.h 
Log Message:
anotha' trade patch

Index: trade.cpp
===================================================================
RCS file: /home/kde/kdegames/atlantik/libatlantic/trade.cpp,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- trade.cpp	9 Jun 2003 18:25:45 -0000	1.20
+++ trade.cpp	23 Jun 2003 01:45:55 -0000	1.21
@@ -22,8 +22,7 @@
 Trade::Trade(int tradeId)
 {
 	m_tradeId = tradeId;
-
-	m_changed = false;
+	m_changed = m_rejected = false;
 }
 
 void Trade::addPlayer(Player *player)
@@ -147,6 +146,7 @@
 
 void Trade::reject(Player *player)
 {
+	m_rejected = true;
 	emit rejected(player);
 }
 

Index: trade.h
===================================================================
RCS file: /home/kde/kdegames/atlantik/libatlantic/trade.h,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- trade.h	9 Jun 2003 18:25:45 -0000	1.12
+++ trade.h	23 Jun 2003 01:45:55 -0000	1.13
@@ -106,6 +106,8 @@
 	
 	QPtrList<Player> players() const;
 	unsigned int acceptCount();
+
+	bool isRejected() { return m_rejected; }
 	
 	/**
 	 * select the Trade of the given template type, with the given
@@ -153,7 +155,7 @@
 	void accept(Trade *trade);
 
 private:
-	bool m_changed;
+	bool m_changed, m_rejected;
 	int m_tradeId;
 
 	QPtrList<Player> mPlayers;
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.