Update of /home/kde/kdegames/atlantik/libatlantikclient
In directory office:/tmp/cvs-serv6514/libatlantikclient
Modified Files:
atlantik_network.cpp atlantik_network.h
Log Message:
deprecate updateplayerlist
Index: atlantik_network.cpp
===================================================================
RCS file: /home/kde/kdegames/atlantik/libatlantikclient/atlantik_network.cpp,v
retrieving revision 1.72
retrieving revision 1.73
diff -u -d -r1.72 -r1.73
--- atlantik_network.cpp 19 Dec 2002 20:16:50 -0000 1.72
+++ atlantik_network.cpp 19 Dec 2002 21:34:41 -0000 1.73
@@ -330,29 +330,6 @@
if (type == "full")
emit gameListEndUpdate();
}
- else if (e.tagName() == "updateplayerlist")
- {
- QString type = e.attributeNode(QString("type")).value();
- if (type == "full")
- emit playerListClear();
-
- QDomNode n_player = n.firstChild();
- while(!n_player.isNull())
- {
- QDomElement e_player = n_player.toElement();
- if (!e_player.isNull() && e_player.tagName() == "player")
- {
- if (type=="del")
- emit playerListDel(e_player.attributeNode(QString("playerid")).value());
- else if (type=="edit")
- emit playerListEdit(e_player.attributeNode(QString("playerid")).value(), e_player.attributeNode(QString("name")).value(), e_player.attributeNode(QString("host")).value());
- else if (type=="add" || type=="full")
- emit playerListAdd(e_player.attributeNode(QString("playerid")).value(), e_player.attributeNode(QString("name")).value(), e_player.attributeNode(QString("host")).value());
- }
- n_player = n_player.nextSibling();
- }
- emit playerListEndUpdate(type);
- }
else if (e.tagName() == "client")
{
a = e.attributeNode(QString("playerid"));
Index: atlantik_network.h
===================================================================
RCS file: /home/kde/kdegames/atlantik/libatlantikclient/atlantik_network.h,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -d -r1.38 -r1.39
--- atlantik_network.h 19 Dec 2002 03:11:08 -0000 1.38
+++ atlantik_network.h 19 Dec 2002 21:34:41 -0000 1.39
@@ -132,12 +132,6 @@
void gameRun();
void gameEnd();
- void playerListClear();
- void playerListEndUpdate(QString);
- void playerListAdd(QString, QString, QString);
- void playerListEdit(QString, QString, QString);
- void playerListDel(QString);
-
/**
* The trade has been completed. Emitted after all necessary estate and
* player updates are processed.
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.