[prev in list] [next in list] [prev in thread] [next in thread] 

List:       atlantik-devel
Subject:    [atlantik-cvs] CVS: kdegames/atlantik/client atlantik.cpp,1.119,1.120
From:       kde () office ! kde ! org
Date:       2002-09-11 3:26:58
[Download RAW message or body]

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 *)));

_______________________________________________
atlantik-cvs mailing list
atlantik-cvs@mail.kde.org
http://mail.kde.org/mailman/listinfo/atlantik-cvs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic