[atlantik-cvs] CVS: kdegames/atlantik/client atlantik.cpp,1.119,1.120

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

Modified Files:
	atlantik.cpp 
Log Message:
API: preliminary support for gameupdate status="end"


Index: atlantik.cpp
===================================================================
RCS file: /home/kde/kdegames/atlantik/client/atlantik.cpp,v
retrieving revision 1.119
retrieving revision 1.120
diff -u -d -r1.119 -r1.120
--- atlantik.cpp	2002/09/11 01:40:59	1.119
+++ atlantik.cpp	2002/09/11 03:26:56	1.120
@@ -321,6 +321,14 @@
 			portfolioView->buildPortfolio();
 }
 
+void Atlantik::freezeBoard()
+{
+	if (!m_board)
+		showBoard();
+
+	// TODO: m_board->freeze();
+}
+
 void Atlantik::slotNetworkConnected()
 {
 	// We're connected, so let's make ourselves known.
@@ -497,6 +505,7 @@
 	connect(m_atlantikNetwork, SIGNAL(gameConfig()), this, SLOT(showSelectConfiguration()));
 	connect(m_atlantikNetwork, SIGNAL(gameInit()), this, SLOT(initBoard()));
 	connect(m_atlantikNetwork, SIGNAL(gameRun()), this, SLOT(showBoard()));
+	connect(m_atlantikNetwork, SIGNAL(gameEnd()), this, SLOT(freezeBoard()));
 
 	connect(m_atlantikNetwork, SIGNAL(newPlayer(Player *)), this, SLOT(newPlayer(Player *)));
 	connect(m_atlantikNetwork, SIGNAL(newEstate(Estate *)), this, SLOT(newEstate(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.