From: Keith F. <ven...@us...> - 2002-01-16 06:51:25
|
Update of /cvsroot/planeshift/planeshift/src/client In directory usw-pr-cvs1:/tmp/cvs-serv3935 Modified Files: psengine.h psengine.cpp Log Message: Added psConnection and psClientMsgHandler to engine. Index: psengine.h =================================================================== RCS file: /cvsroot/planeshift/planeshift/src/client/psengine.h,v retrieving revision 1.44 retrieving revision 1.45 diff -C2 -d -r1.44 -r1.45 *** psengine.h 2002/01/04 13:26:32 1.44 --- psengine.h 2002/01/16 06:51:22 1.45 *************** *** 41,44 **** --- 41,47 ---- struct iDialogManager; + class psConnection; + class psClientMsgHandler; + /** * psEngine *************** *** 125,128 **** --- 128,135 ---- // Event Queue iEventQueue *queue; + // Network connection handler + psConnection *connection; + // Inbound message handler + psClientMsgHandler *msghandler; CelBase *celbase; Index: psengine.cpp =================================================================== RCS file: /cvsroot/planeshift/planeshift/src/client/psengine.cpp,v retrieving revision 1.115 retrieving revision 1.116 diff -C2 -d -r1.115 -r1.116 *** psengine.cpp 2002/01/15 23:16:30 1.115 --- psengine.cpp 2002/01/16 06:51:22 1.116 *************** *** 61,64 **** --- 61,65 ---- #include "pskeyint.h" #include "engine/celbase.h" + #include "psclientmsghandler.h" // ---------------------------------------------------------------------------- *************** *** 95,98 **** --- 96,101 ---- dialogmanager = NULL; modalMenu = false; + connection = NULL; + msghandler = NULL; // add ourself to the object registry *************** *** 189,192 **** --- 192,200 ---- modalMenu=true; + // Initialize Networking + connection = new psConnection(this); + msghandler = new psClientMsgHandler; + msghandler->Initialize(connection,queue); + // Inform debug that everything initialized succesfully csReport (object_reg, CS_REPORTER_SEVERITY_NOTIFY, PSAPP, |