[atlantik-cvs] CVS: kdegames/atlantik/libatlantikui board.cpp,1.108,1.109 board.h,1.64,1.65

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

Modified Files:
	board.cpp board.h 
Log Message:
delete token when player is deleted

Index: board.cpp
===================================================================
RCS file: /home/kde/kdegames/atlantik/libatlantikui/board.cpp,v
retrieving revision 1.108
retrieving revision 1.109
diff -u -d -r1.108 -r1.109
--- board.cpp	9 Jun 2003 18:24:27 -0000	1.108
+++ board.cpp	9 Jun 2003 19:12:35 -0000	1.109
@@ -257,6 +257,19 @@
 		addToken(player);
 }
 
+void AtlantikBoard::removeToken(Player *player)
+{
+	Token *token = findToken(player);
+
+	if (token == m_movingToken)
+	{
+		m_timer->stop();
+		m_movingToken = 0;
+	}
+
+	m_tokens.remove(token);
+}
+
 void AtlantikBoard::jumpToken(Token *token)
 {
 	if (!token || !token->location())

Index: board.h
===================================================================
RCS file: /home/kde/kdegames/atlantik/libatlantikui/board.h,v
retrieving revision 1.64
retrieving revision 1.65
diff -u -d -r1.64 -r1.65
--- board.h	9 Jun 2003 18:24:28 -0000	1.64
+++ board.h	9 Jun 2003 19:12:35 -0000	1.65
@@ -49,6 +49,7 @@
 	void addAuctionWidget(Auction *auction);
 
 	void addToken(Player *player);
+	void removeToken(Player *player);
 
 	void indicateUnownedChanged();
 	EstateView *findEstateView(Estate *estate);
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.