From atlantik-devel Thu Jun 27 23:10:22 2002 From: kde () office ! kde ! org Date: Thu, 27 Jun 2002 23:10:22 +0000 To: atlantik-devel Subject: [atlantik-devel] CVS: kdegames/atlantik/libatlantikclient atlantik_network.cpp,1.33,1.34 atlantik_ne X-MARC-Message: https://marc.info/?l=atlantik-devel&m=102521952830431 Update of /home/kde/kdegames/atlantik/libatlantikclient In directory office:/tmp/cvs-serv9261/libatlantikclient Modified Files: atlantik_network.cpp atlantik_network.h Log Message: generalised BoardDisplay::displayCard into displayText so it can be used for other notifications Index: atlantik_network.cpp =================================================================== RCS file: /home/kde/kdegames/atlantik/libatlantikclient/atlantik_network.cpp,v retrieving revision 1.33 retrieving revision 1.34 diff -u -d -r1.33 -r1.34 --- atlantik_network.cpp 2002/06/27 21:18:51 1.33 +++ atlantik_network.cpp 2002/06/27 23:10:20 1.34 @@ -259,7 +259,7 @@ { QString type = e.attributeNode(QString("type")).value(); if (1 || type == "foo") - emit displayCard(e.attributeNode(QString("name")).value(), e.attributeNode(QString("description")).value()); + emit displayText(e.attributeNode(QString("name")).value(), e.attributeNode(QString("description")).value()); } else if (e.tagName() == "updategamelist") { @@ -398,7 +398,10 @@ // Update whether player is jailed a = e.attributeNode(QString("jailed")); if (player && !a.isNull()) + { player->setInJail(a.value().toInt()); + // TODO: emit signal with player ptr so board can setText and display something + } // Update player location a = e.attributeNode(QString("location")); Index: atlantik_network.h =================================================================== RCS file: /home/kde/kdegames/atlantik/libatlantikclient/atlantik_network.h,v retrieving revision 1.17 retrieving revision 1.18 diff -u -d -r1.17 -r1.18 --- atlantik_network.h 2002/06/27 21:18:51 1.17 +++ atlantik_network.h 2002/06/27 23:10:20 1.18 @@ -112,7 +112,7 @@ void msgError(QString); void msgChat(QString, QString); - void displayCard(QString, QString); + void displayText(QString, QString); void gameListClear(); void gamelistEndUpdate(QString); _______________________________________________ atlantik-devel mailing list atlantik-devel@mail.kde.org http://mail.kde.org/mailman/listinfo/atlantik-devel