By the time the player reaches - bool PlayerCardsOkay::onMouseDown(std::string button, int x, int y) - in Button.cpp it loses its roleCardVal(random/hardcoded). Only workaround for now, initialize RoleCard inside the PlayerCardsOkay(Not the most elegant solution since we will the roleVale to determine the color of the pawn)
Can some somebody debug and confirm if having the same issue? Put the break point intside PlayerCardsOkay right below "int roleCardIndex = player.getRoleCard()->getRoleCardVal();" and see if it matches with one initialized at Board.cpp (start of a new game)
By the time the player reaches - bool PlayerCardsOkay::onMouseDown(std::string button, int x, int y) - in Button.cpp it loses its roleCardVal(random/hardcoded). Only workaround for now, initialize RoleCard inside the PlayerCardsOkay(Not the most elegant solution since we will the roleVale to determine the color of the pawn)
Can some somebody debug and confirm if having the same issue? Put the break point intside PlayerCardsOkay right below "int roleCardIndex = player.getRoleCard()->getRoleCardVal();" and see if it matches with one initialized at Board.cpp (start of a new game)