I guess I'm not expert enough to say that I'm certain, but I'm pretty sure. Perhaps you can provide a sanity check for me...
The server class is declared like so:
{
Q_OBJECT
public:
Xorbz_Game( class Xorbz* parent );
~Xorbz_Game( void );
class Xorbz_Game : public QThread
{
Q_OBJECT
public:
Xorbz_Game( class Xorbz* parent );
~Xorbz_Game( void );
To copy to clipboard, switch view to plain text mode
etc...
The client (main app) instantiates the server like so:
// Instantiate a new game engine
currentGame = new Xorbz_Game( this );
// Instantiate a new game engine
currentGame = new Xorbz_Game( this );
To copy to clipboard, switch view to plain text mode
After the client sets a few things in the server via member functions, it starts things up like this:
// Start the game running
currentGame->start();
// Start the game running
currentGame->start();
To copy to clipboard, switch view to plain text mode
Anything look amiss?
Bookmarks