Hi,
I'm writing a game for a project in school and it has to work in multiplayer... I'm not sure of one thing and I would like to hear your opinion. For the graphics part I'm using Irrlicht engine (that part I have almost finished) and for the network part I'm using Qt. I have written the server successfully and it's time for the network part of the game (from the user side of the game).
Here comes the part where I need your help... For long I didn't know which library to use for tcp/ip protocol so I have written the whole game based on Irrlicht engine (and std) library only. I have written a small library (the library is actually not .lib and .dll but simple .cpp and .h meant to be integrated in code) for the user part which contains a lot of signals/slots used for the right occasion and it contains qtcpsocket objects and all the stuff used for communication... and now I have to merge this code with the rest of the code. The problem is that I want to use those signals/slots from the library with my code but I want the game to know as little about qt as possible....
I use irrlichts main event loop so I don't want to use Qt's... For using signals/slots I have to use Q_OBJECT macro. What do you suggest ? Is there a way to use qt as limited as possible (only signals, slots, and not having to extend QObject for every class in game and using QCoreApplication object...) without having to write a .pro file for the whole game (in that case the library would have to be in .lib and .dll form) ??
I hope that I made any sense in this post...
Bookmarks