camino-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Camino-devel] camino/src/server CaminoServer.h CaminoServer.cpp


From: Philippe Fremy
Subject: [Camino-devel] camino/src/server CaminoServer.h CaminoServer.cpp
Date: Sun, 26 Jan 2003 16:54:29 -0500

CVSROOT:        /cvsroot/camino
Module name:    camino
Changes by:     Philippe Fremy <address@hidden> 03/01/26 16:54:29

Modified files:
        src/server     : CaminoServer.h CaminoServer.cpp 

Log message:
        new broadcast method

Patches:
Index: camino/src/server/CaminoServer.cpp
diff -u camino/src/server/CaminoServer.cpp:1.5 
camino/src/server/CaminoServer.cpp:1.6
--- camino/src/server/CaminoServer.cpp:1.5      Sun Jan 26 15:32:19 2003
+++ camino/src/server/CaminoServer.cpp  Sun Jan 26 16:54:29 2003
@@ -2,7 +2,7 @@
 **
 ** Camino
 **
-** Version : $Id: CaminoServer.cpp,v 1.5 2003/01/26 20:32:19 pfremy Exp $
+** Version : $Id: CaminoServer.cpp,v 1.6 2003/01/26 21:54:29 pfremy Exp $
 **
 ** Author(s) : Philippe Fremy, Pascal Audoux
 ** Creation : 19/01/2003
@@ -74,4 +74,12 @@
         emit sig_playerConnected( playerName, hostName );
 }
 
+void CaminoServer::broadcastMsg( NetMsgSubtype msgLevel, QString source, 
QString msg )
+{
+        QPtrListIterator<Player> it( _playerList );
+        while( it.current() ) {
+                it.current()->sendMsg( msgLevel, source, msg );
+                ++it;
+        }
+}
 
Index: camino/src/server/CaminoServer.h
diff -u camino/src/server/CaminoServer.h:1.5 
camino/src/server/CaminoServer.h:1.6
--- camino/src/server/CaminoServer.h:1.5        Sun Jan 26 15:32:19 2003
+++ camino/src/server/CaminoServer.h    Sun Jan 26 16:54:29 2003
@@ -5,7 +5,7 @@
 ** CaminoServer.h
 ** Server for the game
 **
-** Version : $Id: CaminoServer.h,v 1.5 2003/01/26 20:32:19 pfremy Exp $
+** Version : $Id: CaminoServer.h,v 1.6 2003/01/26 21:54:29 pfremy Exp $
 ** Author(s) : Philippe Fremy, Pascal Audoux
 ** Creation : 19/01/2003
 ** Copyright: Pascal Audoux, Philippe Fremy 2003
@@ -57,6 +57,8 @@
        void newConnection ( int numSocket );
 
        void recvServerConnect( QString hostName, QString playerName );
+
+       void broadcastMsg( NetMsgSubtype msgLevel, QString source, QString msg 
);
 
 signals:
        void sig_readEvent( int );




reply via email to

[Prev in Thread] Current Thread [Next in Thread]