[atlantik-cvs] CVS: kdegames/atlantik/libatlantikclient atlantik_network.cpp,1.57,1.58 atlantik_network.h,1.29,1.30

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

Modified Files:
	atlantik_network.cpp atlantik_network.h 
Log Message:
API: replaced joinedgame with correct use of <gameupdate> tag, which fixed
token positioning on game start

i18n: added status message when retrieving full game data


Index: atlantik_network.cpp
===================================================================
RCS file: /home/kde/kdegames/atlantik/libatlantikclient/atlantik_network.cpp,v
retrieving revision 1.57
retrieving revision 1.58
diff -u -d -r1.57 -r1.58
--- atlantik_network.cpp	2002/07/29 19:09:49	1.57
+++ atlantik_network.cpp	2002/09/11 01:41:00	1.58
@@ -348,11 +348,6 @@
 				}
 				emit gamelistEndUpdate(type);
 			}
-			else if (e.tagName() == "joinedgame")
-			{
-				emit joinedGame();
-				getPlayerList();
-			}
 			else if (e.tagName() == "updateplayerlist")
 			{
 				QString type = e.attributeNode(QString("type")).value();
@@ -430,10 +425,15 @@
 					gameId = a.value().toInt();
 
 					QString status = e.attributeNode(QString("status")).value();
-					if (status == "init")
-						emit initGame();
-					else if (status == "start")
-						emit gameStarted();
+					if (status == "config")
+					{
+						emit gameConfig();
+						getPlayerList();
+					}
+					else if (status == "init")
+						emit gameInit();
+					else if (status == "run")
+						emit gameRun();
 				}
 			}
 			else if (e.tagName() == "playerupdate")

Index: atlantik_network.h
===================================================================
RCS file: /home/kde/kdegames/atlantik/libatlantikclient/atlantik_network.h,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -d -r1.29 -r1.30
--- atlantik_network.h	2002/07/23 23:39:41	1.29
+++ atlantik_network.h	2002/09/11 01:41:00	1.30
@@ -128,9 +128,9 @@
 	void gameListEdit(QString gameId, QString name, QString description, QString players, QString gameType);
 	void gameListDel(QString gameId);
 
-	void joinedGame();
-	void initGame();
-	void gameStarted();
+	void gameConfig();
+	void gameInit();
+	void gameRun();
 
 	void playerListClear();
 	void playerListEndUpdate(QString);
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.