tests for rejoin

This commit is contained in:
Albert Medela
2020-05-22 13:41:22 +02:00
parent 9b36c9863c
commit 2827f7d36c
22 changed files with 6258 additions and 11086 deletions
+12
View File
@@ -33,6 +33,7 @@
#include <enginefactory.h>
#include <guiinterface.h>
#include <core/loghelper.h>
#include "log.h"
#include "localexception.h"
@@ -87,6 +88,9 @@ Game::Game(GuiInterface* gui, boost::shared_ptr<EngineFactory> factory,
// create player
player_i = playerDataList.begin();
player_end = playerDataList.end();
LOG_MSG("Starting game... PLAYERS:");
for(i=0; i<MAX_NUMBER_OF_PLAYERS; i++) {
string myName;
@@ -121,6 +125,14 @@ Game::Game(GuiInterface* gui, boost::shared_ptr<EngineFactory> factory,
}
(*runningPlayerList) = (*activePlayerList);
LOG_MSG("\tPlayerID " << i << ":{UID, name, GUID, seat} -> {" <<
(*player_i)->GetUniqueId() << ", " <<
(*player_i)->GetName() << ", " <<
(*player_i)->GetGuid() << ", " <<
(*player_i)->GetNumber()
);
}
currentBoard->setPlayerLists(seatsList, activePlayerList, runningPlayerList);