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

[email protected] Wed, 11 Sep 2002 05:26:58 +0200 (CEST)
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 *)));