// it is inizialized before any thread can be running.
connectedToServer = true;
serverTicket = ticket;
PlayerDescriptor descriptor = gameServer.registerPlayer(playerName, serverTicket);
gamePlayer = descriptor.getGamePlayer();
isGameOwner = descriptor.isGameOwner();
// Here the fact that we launch the thread in the class constructor
// is not a bug. The thread acts as a daemon that is supposed to
// stop the client thread if the server is halted.
new Thread(new GameServerCaller(this, gameServer)).start();