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

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

Modified Files:
	trade.cpp trade.h 
Log Message:
allow player to be removed from trade

Index: trade.cpp
===================================================================
RCS file: /home/kde/kdegames/atlantik/libatlantic/trade.cpp,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- trade.cpp	23 Dec 2002 01:59:47 -0000	1.19
+++ trade.cpp	9 Jun 2003 18:25:45 -0000	1.20
@@ -32,6 +32,12 @@
 	m_playerAcceptMap[player] = false;
 }
 
+void Trade::removePlayer(Player *player)
+{
+	mPlayers.remove(player);
+	m_playerAcceptMap[player] = false;
+}
+
 QPtrList<Player> Trade::players() const
 {
 	return mPlayers;

Index: trade.h
===================================================================
RCS file: /home/kde/kdegames/atlantik/libatlantic/trade.h,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- trade.h	7 Jul 2002 02:35:58 -0000	1.11
+++ trade.h	9 Jun 2003 18:25:45 -0000	1.12
@@ -101,7 +101,8 @@
 	Trade(int tradeId);
 	int tradeId() { return m_tradeId; }
 
-	void addPlayer(Player *);
+	void addPlayer(Player *player);
+	void removePlayer(Player *player);
 	
 	QPtrList<Player> players() const;
 	unsigned int acceptCount();
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.