0.8.3 translation source update, list refactoring for crash bugfix in qt/*

This commit is contained in:
doitux
2011-01-11 23:13:55 +00:00
parent 6028ae57b7
commit 0fffc9476e
29 changed files with 11849 additions and 9752 deletions
+130 -96
View File
@@ -628,12 +628,13 @@ void gameTableImpl::applySettings(settingsDialogImpl* mySettingsDialog) {
//Check for anti-peek mode //Check for anti-peek mode
if(myStartWindow->getSession()->getCurrentGame()) { if(myStartWindow->getSession()->getCurrentGame()) {
// check if human player is already active // check if human player is already active
if(myStartWindow->getSession()->getCurrentGame()->getSeatsList()->front()->getMyActiveStatus()) { boost::shared_ptr<PlayerInterface> humanPlayer = myStartWindow->getSession()->getCurrentGame()->getSeatsList()->front();
if(humanPlayer->getMyActiveStatus()) {
QPixmap tempCardsPixmapArray[2]; QPixmap tempCardsPixmapArray[2];
int tempCardsIntArray[2]; int tempCardsIntArray[2];
myStartWindow->getSession()->getCurrentGame()->getSeatsList()->front()->getMyCards(tempCardsIntArray); humanPlayer->getMyCards(tempCardsIntArray);
if(myConfig->readConfigInt("AntiPeekMode")) { if(myConfig->readConfigInt("AntiPeekMode")) {
holeCardsArray[0][0]->setPixmap(flipside, TRUE); holeCardsArray[0][0]->setPixmap(flipside, TRUE);
tempCardsPixmapArray[0] = QPixmap::fromImage(QImage(myCardDeckStyle->getCurrentDir()+QString::number(tempCardsIntArray[0], 10)+".png")); tempCardsPixmapArray[0] = QPixmap::fromImage(QImage(myCardDeckStyle->getCurrentDir()+QString::number(tempCardsIntArray[0], 10)+".png"));
@@ -711,7 +712,8 @@ void gameTableImpl::refreshSet() {
Game *currentGame = myStartWindow->getSession()->getCurrentGame(); Game *currentGame = myStartWindow->getSession()->getCurrentGame();
PlayerListConstIterator it_c; PlayerListConstIterator it_c;
for (it_c=currentGame->getSeatsList()->begin(); it_c!=currentGame->getSeatsList()->end(); it_c++) { PlayerList seatsList = currentGame->getSeatsList();
for (it_c=seatsList->begin(); it_c!=seatsList->end(); it_c++) {
if( (*it_c)->getMySet() == 0 ) if( (*it_c)->getMySet() == 0 )
setLabelArray[(*it_c)->getMyID()]->setText(""); setLabelArray[(*it_c)->getMyID()]->setText("");
else else
@@ -729,10 +731,11 @@ void gameTableImpl::refreshButton() {
Game *currentGame = myStartWindow->getSession()->getCurrentGame(); Game *currentGame = myStartWindow->getSession()->getCurrentGame();
PlayerListConstIterator it_c; PlayerListConstIterator it_c;
PlayerList seatsList = currentGame->getSeatsList();
for (it_c=currentGame->getSeatsList()->begin(); it_c!=currentGame->getSeatsList()->end(); it_c++) { PlayerList activePlayerList = currentGame->getActivePlayerList();
for (it_c=seatsList->begin(); it_c!=seatsList->end(); it_c++) {
if( (*it_c)->getMyActiveStatus() ) { if( (*it_c)->getMyActiveStatus() ) {
if( currentGame->getActivePlayerList()->size() > 2 ) { if( activePlayerList->size() > 2 ) {
switch ( (*it_c)->getMyButton() ) { switch ( (*it_c)->getMyButton() ) {
case 1 : buttonLabelArray[(*it_c)->getMyID()]->setPixmap(dealerButton); case 1 : buttonLabelArray[(*it_c)->getMyID()]->setPixmap(dealerButton);
@@ -782,7 +785,8 @@ void gameTableImpl::refreshPlayerName() {
boost::shared_ptr<HandInterface> currentHand = myStartWindow->getSession()->getCurrentGame()->getCurrentHand(); boost::shared_ptr<HandInterface> currentHand = myStartWindow->getSession()->getCurrentGame()->getCurrentHand();
PlayerListConstIterator it_c; PlayerListConstIterator it_c;
for (it_c=currentHand->getSeatsList()->begin(); it_c!=currentHand->getSeatsList()->end(); it_c++) { PlayerList seatsList = currentHand->getSeatsList();
for (it_c=seatsList->begin(); it_c!=seatsList->end(); it_c++) {
if((*it_c)->getMyActiveStatus()) { if((*it_c)->getMyActiveStatus()) {
bool guest = myStartWindow->getSession()->getClientPlayerInfo((*it_c)->getMyUniqueID()).isGuest; bool guest = myStartWindow->getSession()->getClientPlayerInfo((*it_c)->getMyUniqueID()).isGuest;
@@ -824,7 +828,9 @@ void gameTableImpl::refreshPlayerAvatar() {
boost::shared_ptr<HandInterface> currentHand = myStartWindow->getSession()->getCurrentGame()->getCurrentHand(); boost::shared_ptr<HandInterface> currentHand = myStartWindow->getSession()->getCurrentGame()->getCurrentHand();
int seatPlace; int seatPlace;
PlayerListConstIterator it_c; PlayerListConstIterator it_c;
for (it_c=currentHand->getSeatsList()->begin(), seatPlace=0; it_c!=currentHand->getSeatsList()->end(); it_c++, seatPlace++) { PlayerList seatsList = currentHand->getSeatsList();
for (it_c=seatsList->begin(), seatPlace=0; it_c!=seatsList->end(); it_c++, seatPlace++) {
QString countryString(QString(myStartWindow->getSession()->getClientPlayerInfo((*it_c)->getMyUniqueID()).countryCode.c_str()).toLower()); QString countryString(QString(myStartWindow->getSession()->getClientPlayerInfo((*it_c)->getMyUniqueID()).countryCode.c_str()).toLower());
countryString = QString(":/cflags/cflags/%1.png").arg(countryString); countryString = QString(":/cflags/cflags/%1.png").arg(countryString);
@@ -894,7 +900,8 @@ void gameTableImpl::refreshAction(int playerID, int playerAction) {
if(playerID == -1 || playerAction == -1) { if(playerID == -1 || playerAction == -1) {
PlayerListConstIterator it_c; PlayerListConstIterator it_c;
for (it_c=currentHand->getSeatsList()->begin(); it_c!=currentHand->getSeatsList()->end(); it_c++) { PlayerList seatsList = currentHand->getSeatsList();
for (it_c=seatsList->begin(); it_c!=seatsList->end(); it_c++) {
//if no action --> clear Pixmap //if no action --> clear Pixmap
if( (*it_c)->getMyAction() == 0) { if( (*it_c)->getMyAction() == 0) {
@@ -948,7 +955,8 @@ void gameTableImpl::refreshCash() {
boost::shared_ptr<HandInterface> currentHand = myStartWindow->getSession()->getCurrentGame()->getCurrentHand(); boost::shared_ptr<HandInterface> currentHand = myStartWindow->getSession()->getCurrentGame()->getCurrentHand();
PlayerListConstIterator it_c; PlayerListConstIterator it_c;
for (it_c=currentHand->getSeatsList()->begin(); it_c!=currentHand->getSeatsList()->end(); it_c++) { PlayerList seatsList = currentHand->getSeatsList();
for (it_c=seatsList->begin(); it_c!=seatsList->end(); it_c++) {
if((*it_c)->getMyActiveStatus()) { if((*it_c)->getMyActiveStatus()) {
cashLabelArray[(*it_c)->getMyID()]->setText("$"+QString("%L1").arg((*it_c)->getMyCash())); cashLabelArray[(*it_c)->getMyID()]->setText("$"+QString("%L1").arg((*it_c)->getMyCash()));
@@ -967,7 +975,8 @@ void gameTableImpl::refreshGroupbox(int playerID, int status) {
boost::shared_ptr<HandInterface> currentHand = myStartWindow->getSession()->getCurrentGame()->getCurrentHand(); boost::shared_ptr<HandInterface> currentHand = myStartWindow->getSession()->getCurrentGame()->getCurrentHand();
PlayerListConstIterator it_c; PlayerListConstIterator it_c;
for (it_c=currentHand->getSeatsList()->begin(); it_c!=currentHand->getSeatsList()->end(); it_c++) { PlayerList seatsList = currentHand->getSeatsList();
for (it_c=seatsList->begin(); it_c!=seatsList->end(); it_c++) {
if((*it_c)->getMyTurn()) { if((*it_c)->getMyTurn()) {
//Groupbox glow wenn der Spiele dran ist. //Groupbox glow wenn der Spiele dran ist.
@@ -1077,7 +1086,8 @@ void gameTableImpl::refreshAll() {
boost::shared_ptr<HandInterface> currentHand = myStartWindow->getSession()->getCurrentGame()->getCurrentHand(); boost::shared_ptr<HandInterface> currentHand = myStartWindow->getSession()->getCurrentGame()->getCurrentHand();
PlayerListConstIterator it_c; PlayerListConstIterator it_c;
for (it_c=currentHand->getSeatsList()->begin(); it_c!=currentHand->getSeatsList()->end(); it_c++) { PlayerList seatsList = currentHand->getSeatsList();
for (it_c=seatsList->begin(); it_c!=seatsList->end(); it_c++) {
refreshAction( (*it_c)->getMyID(), (*it_c)->getMyAction()); refreshAction( (*it_c)->getMyID(), (*it_c)->getMyAction());
} }
@@ -1093,7 +1103,8 @@ void gameTableImpl::refreshChangePlayer() {
boost::shared_ptr<HandInterface> currentHand = myStartWindow->getSession()->getCurrentGame()->getCurrentHand(); boost::shared_ptr<HandInterface> currentHand = myStartWindow->getSession()->getCurrentGame()->getCurrentHand();
PlayerListConstIterator it_c; PlayerListConstIterator it_c;
for (it_c=currentHand->getSeatsList()->begin(); it_c!=currentHand->getSeatsList()->end(); it_c++) { PlayerList seatsList = currentHand->getSeatsList();
for (it_c=seatsList->begin(); it_c!=seatsList->end(); it_c++) {
refreshAction( (*it_c)->getMyID(), (*it_c)->getMyAction()); refreshAction( (*it_c)->getMyID(), (*it_c)->getMyAction());
} }
@@ -1136,7 +1147,8 @@ void gameTableImpl::dealHoleCards() {
Game *currentGame = myStartWindow->getSession()->getCurrentGame(); Game *currentGame = myStartWindow->getSession()->getCurrentGame();
PlayerListConstIterator it_c; PlayerListConstIterator it_c;
for(it_c=currentGame->getSeatsList()->begin(); it_c!=currentGame->getSeatsList()->end(); it_c++) { PlayerList seatsList = currentGame->getSeatsList();
for (it_c=seatsList->begin(); it_c!=seatsList->end(); it_c++) {
(*it_c)->getMyCards(tempCardsIntArray); (*it_c)->getMyCards(tempCardsIntArray);
for(j=0; j<2; j++) { for(j=0; j<2; j++) {
if((*it_c)->getMyActiveStatus()) { if((*it_c)->getMyActiveStatus()) {
@@ -1372,9 +1384,11 @@ void gameTableImpl::provideMyActions(int mode) {
Game *currentGame = myStartWindow->getSession()->getCurrentGame(); Game *currentGame = myStartWindow->getSession()->getCurrentGame();
boost::shared_ptr<HandInterface> currentHand = currentGame->getCurrentHand(); boost::shared_ptr<HandInterface> currentHand = currentGame->getCurrentHand();
boost::shared_ptr<PlayerInterface> humanPlayer = currentHand->getSeatsList()->front();
PlayerList activePlayerList = currentGame->getActivePlayerList();
//really disabled buttons if human player is fold/all-in or ... and not called from dealberocards //really disabled buttons if human player is fold/all-in or ... and not called from dealberocards
if(/*pushButton_BetRaise->isCheckable() && */mode != 0 && (currentHand->getSeatsList()->front()->getMyAction() == PLAYER_ACTION_ALLIN || currentHand->getSeatsList()->front()->getMyAction() == PLAYER_ACTION_FOLD || (currentGame->getSeatsList()->front()->getMySet() == currentHand->getCurrentBeRo()->getHighestSet() && (currentGame->getSeatsList()->front()->getMyAction() != PLAYER_ACTION_NONE)))) { if(/*pushButton_BetRaise->isCheckable() && */mode != 0 && (humanPlayer->getMyAction() == PLAYER_ACTION_ALLIN || humanPlayer->getMyAction() == PLAYER_ACTION_FOLD || (humanPlayer->getMySet() == currentHand->getCurrentBeRo()->getHighestSet() && (humanPlayer->getMyAction() != PLAYER_ACTION_NONE)))) {
pushButton_BetRaise->setText(""); pushButton_BetRaise->setText("");
pushButton_CallCheck->setText(""); pushButton_CallCheck->setText("");
@@ -1395,11 +1409,11 @@ void gameTableImpl::provideMyActions(int mode) {
//show available actions on buttons //show available actions on buttons
if(currentHand->getCurrentRound() == 0) { // preflop if(currentHand->getCurrentRound() == 0) { // preflop
if (currentGame->getSeatsList()->front()->getMyCash()+currentGame->getSeatsList()->front()->getMySet() > currentHand->getCurrentBeRo()->getHighestSet() && !currentHand->getCurrentBeRo()->getFullBetRule()) { if (humanPlayer->getMyCash()+humanPlayer->getMySet() > currentHand->getCurrentBeRo()->getHighestSet() && !currentHand->getCurrentBeRo()->getFullBetRule()) {
pushButtonBetRaiseString = RaiseString+"\n$"+QString("%L1").arg(getMyBetAmount()); pushButtonBetRaiseString = RaiseString+"\n$"+QString("%L1").arg(getMyBetAmount());
} }
if (currentGame->getSeatsList()->front()->getMySet()== currentHand->getCurrentBeRo()->getHighestSet() && currentGame->getSeatsList()->front()->getMyButton() == 3) { pushButtonCallCheckString = CheckString; } if (humanPlayer->getMySet()== currentHand->getCurrentBeRo()->getHighestSet() && humanPlayer->getMyButton() == 3) { pushButtonCallCheckString = CheckString; }
else { pushButtonCallCheckString = CallString+"\n$"+QString("%L1").arg(getMyCallAmount()); } else { pushButtonCallCheckString = CallString+"\n$"+QString("%L1").arg(getMyCallAmount()); }
pushButtonFoldString = FoldString; pushButtonFoldString = FoldString;
@@ -1418,9 +1432,9 @@ void gameTableImpl::provideMyActions(int mode) {
pushButtonCallCheckString = CheckString; pushButtonCallCheckString = CheckString;
pushButtonBetRaiseString = BetString+"\n$"+QString("%L1").arg(getMyBetAmount()); pushButtonBetRaiseString = BetString+"\n$"+QString("%L1").arg(getMyBetAmount());
} }
if (currentHand->getCurrentBeRo()->getHighestSet() > 0 && currentHand->getCurrentBeRo()->getHighestSet() > currentGame->getSeatsList()->front()->getMySet()) { if (currentHand->getCurrentBeRo()->getHighestSet() > 0 && currentHand->getCurrentBeRo()->getHighestSet() > humanPlayer->getMySet()) {
pushButtonCallCheckString = CallString+"\n$"+QString("%L1").arg(getMyCallAmount()); pushButtonCallCheckString = CallString+"\n$"+QString("%L1").arg(getMyCallAmount());
if (currentGame->getSeatsList()->front()->getMyCash()+currentGame->getSeatsList()->front()->getMySet() > currentHand->getCurrentBeRo()->getHighestSet() && !currentHand->getCurrentBeRo()->getFullBetRule()) { if (humanPlayer->getMyCash()+humanPlayer->getMySet() > currentHand->getCurrentBeRo()->getHighestSet() && !currentHand->getCurrentBeRo()->getFullBetRule()) {
pushButtonBetRaiseString = RaiseString+"\n$"+QString("%L1").arg(getMyBetAmount()); pushButtonBetRaiseString = RaiseString+"\n$"+QString("%L1").arg(getMyBetAmount());
} }
} }
@@ -1430,10 +1444,10 @@ void gameTableImpl::provideMyActions(int mode) {
} }
if(mode == 0) { if(mode == 0) {
if( currentHand->getSeatsList()->front()->getMyAction() != PLAYER_ACTION_FOLD ) { if( humanPlayer->getMyAction() != PLAYER_ACTION_FOLD ) {
pushButtonBetRaiseString = BetString+"\n$"+QString("%L1").arg(getMyBetAmount()); pushButtonBetRaiseString = BetString+"\n$"+QString("%L1").arg(getMyBetAmount());
pushButtonCallCheckString = CheckString; pushButtonCallCheckString = CheckString;
if( (currentGame->getActivePlayerList()->size() > 2 && currentGame->getSeatsList()->front()->getMyButton() == BUTTON_SMALL_BLIND ) || ( currentGame->getActivePlayerList()->size() <= 2 && currentGame->getSeatsList()->front()->getMyButton() == BUTTON_BIG_BLIND)) { pushButtonFoldString = FoldString; } if( (activePlayerList->size() > 2 && humanPlayer->getMyButton() == BUTTON_SMALL_BLIND ) || ( activePlayerList->size() <= 2 && humanPlayer->getMyButton() == BUTTON_BIG_BLIND)) { pushButtonFoldString = FoldString; }
else { pushButtonFoldString = CheckString+" /\n"+FoldString; } else { pushButtonFoldString = CheckString+" /\n"+FoldString; }
pushButtonAllInString = AllInString; pushButtonAllInString = AllInString;
@@ -1475,11 +1489,11 @@ void gameTableImpl::provideMyActions(int mode) {
if(pushButton_BetRaise->text().startsWith(RaiseString)) { if(pushButton_BetRaise->text().startsWith(RaiseString)) {
horizontalSlider_bet->setMinimum(currentHand->getCurrentBeRo()->getHighestSet() - currentHand->getSeatsList()->front()->getMySet() + currentHand->getCurrentBeRo()->getMinimumRaise()); horizontalSlider_bet->setMinimum(currentHand->getCurrentBeRo()->getHighestSet() - humanPlayer->getMySet() + currentHand->getCurrentBeRo()->getMinimumRaise());
horizontalSlider_bet->setMaximum(currentHand->getSeatsList()->front()->getMyCash()); horizontalSlider_bet->setMaximum(humanPlayer->getMyCash());
horizontalSlider_bet->setSingleStep(10); horizontalSlider_bet->setSingleStep(10);
spinBox_betValue->setMinimum(currentHand->getCurrentBeRo()->getHighestSet() - currentHand->getSeatsList()->front()->getMySet() + currentHand->getCurrentBeRo()->getMinimumRaise()); spinBox_betValue->setMinimum(currentHand->getCurrentBeRo()->getHighestSet() - humanPlayer->getMySet() + currentHand->getCurrentBeRo()->getMinimumRaise());
spinBox_betValue->setMaximum(currentHand->getSeatsList()->front()->getMyCash()); spinBox_betValue->setMaximum(humanPlayer->getMyCash());
changeSpinBoxBetValue(horizontalSlider_bet->value()); changeSpinBoxBetValue(horizontalSlider_bet->value());
myActionIsRaise = 1; myActionIsRaise = 1;
@@ -1487,10 +1501,10 @@ void gameTableImpl::provideMyActions(int mode) {
else if(pushButton_BetRaise->text().startsWith(BetString)) { else if(pushButton_BetRaise->text().startsWith(BetString)) {
horizontalSlider_bet->setMinimum(currentHand->getSmallBlind()*2); horizontalSlider_bet->setMinimum(currentHand->getSmallBlind()*2);
horizontalSlider_bet->setMaximum(currentHand->getSeatsList()->front()->getMyCash()); horizontalSlider_bet->setMaximum(humanPlayer->getMyCash());
horizontalSlider_bet->setSingleStep(10); horizontalSlider_bet->setSingleStep(10);
spinBox_betValue->setMinimum(currentHand->getSmallBlind()*2); spinBox_betValue->setMinimum(currentHand->getSmallBlind()*2);
spinBox_betValue->setMaximum(currentHand->getSeatsList()->front()->getMyCash()); spinBox_betValue->setMaximum(humanPlayer->getMyCash());
changeSpinBoxBetValue(horizontalSlider_bet->value()); changeSpinBoxBetValue(horizontalSlider_bet->value());
myActionIsBet = 1; myActionIsBet = 1;
@@ -1610,7 +1624,7 @@ void gameTableImpl::stopTimeoutAnimation(int playerId) {
void gameTableImpl::disableMyButtons() { void gameTableImpl::disableMyButtons() {
boost::shared_ptr<HandInterface> currentHand = myStartWindow->getSession()->getCurrentGame()->getCurrentHand(); boost::shared_ptr<PlayerInterface> humanPlayer = myStartWindow->getSession()->getCurrentGame()->getCurrentHand()->getSeatsList()->front();
clearMyButtons(); clearMyButtons();
@@ -1618,9 +1632,9 @@ void gameTableImpl::disableMyButtons() {
horizontalSlider_bet->setDisabled(TRUE); horizontalSlider_bet->setDisabled(TRUE);
spinBox_betValue->setDisabled(TRUE); spinBox_betValue->setDisabled(TRUE);
horizontalSlider_bet->setMinimum(0); horizontalSlider_bet->setMinimum(0);
horizontalSlider_bet->setMaximum(currentHand->getSeatsList()->front()->getMyCash()); horizontalSlider_bet->setMaximum(humanPlayer->getMyCash());
spinBox_betValue->setMinimum(0); spinBox_betValue->setMinimum(0);
spinBox_betValue->setMaximum(currentHand->getSeatsList()->front()->getMyCash()); spinBox_betValue->setMaximum(humanPlayer->getMyCash());
spinBox_betValue->clear(); spinBox_betValue->clear();
horizontalSlider_bet->setValue(0); horizontalSlider_bet->setValue(0);
@@ -1642,8 +1656,9 @@ void gameTableImpl::myFold(){
if(pushButton_Fold->text() == FoldString) { if(pushButton_Fold->text() == FoldString) {
boost::shared_ptr<HandInterface> currentHand = myStartWindow->getSession()->getCurrentGame()->getCurrentHand(); boost::shared_ptr<HandInterface> currentHand = myStartWindow->getSession()->getCurrentGame()->getCurrentHand();
currentHand->getSeatsList()->front()->setMyAction(1); boost::shared_ptr<PlayerInterface> humanPlayer = currentHand->getSeatsList()->front();
currentHand->getSeatsList()->front()->setMyTurn(0); humanPlayer->setMyAction(1);
humanPlayer->setMyTurn(0);
//set that i was the last active player. need this for unhighlighting groupbox //set that i was the last active player. need this for unhighlighting groupbox
currentHand->setLastPlayersTurn(0); currentHand->setLastPlayersTurn(0);
@@ -1656,10 +1671,11 @@ void gameTableImpl::myFold(){
} }
void gameTableImpl::myCheck() { void gameTableImpl::myCheck() {
boost::shared_ptr<HandInterface> currentHand = myStartWindow->getSession()->getCurrentGame()->getCurrentHand();
currentHand->getSeatsList()->front()->setMyTurn(0); boost::shared_ptr<HandInterface> currentHand = myStartWindow->getSession()->getCurrentGame()->getCurrentHand();
currentHand->getSeatsList()->front()->setMyAction(2); boost::shared_ptr<PlayerInterface> humanPlayer = currentHand->getSeatsList()->front();
humanPlayer->setMyTurn(0);
humanPlayer->setMyAction(2);
//set that i was the last active player. need this for unhighlighting groupbox //set that i was the last active player. need this for unhighlighting groupbox
currentHand->setLastPlayersTurn(0); currentHand->setLastPlayersTurn(0);
@@ -1671,17 +1687,19 @@ void gameTableImpl::myCheck() {
} }
int gameTableImpl::getMyCallAmount() { int gameTableImpl::getMyCallAmount() {
int tempHighestSet = 0;
boost::shared_ptr<HandInterface> currentHand = myStartWindow->getSession()->getCurrentGame()->getCurrentHand();
int tempHighestSet = 0;
boost::shared_ptr<HandInterface> currentHand = myStartWindow->getSession()->getCurrentGame()->getCurrentHand();
boost::shared_ptr<PlayerInterface> humanPlayer = currentHand->getSeatsList()->front();
tempHighestSet = currentHand->getCurrentBeRo()->getHighestSet(); tempHighestSet = currentHand->getCurrentBeRo()->getHighestSet();
if (currentHand->getSeatsList()->front()->getMyCash()+currentHand->getSeatsList()->front()->getMySet() <= tempHighestSet) { if (humanPlayer->getMyCash() + humanPlayer->getMySet() <= tempHighestSet) {
return currentHand->getSeatsList()->front()->getMyCash(); return humanPlayer->getMyCash();
} }
else { else {
return tempHighestSet - currentHand->getSeatsList()->front()->getMySet(); return tempHighestSet - humanPlayer->getMySet();
} }
} }
@@ -1694,14 +1712,15 @@ int gameTableImpl::getBetRaisePushButtonValue() {
int gameTableImpl::getMyBetAmount() { int gameTableImpl::getMyBetAmount() {
boost::shared_ptr<HandInterface> currentHand = myStartWindow->getSession()->getCurrentGame()->getCurrentHand(); boost::shared_ptr<HandInterface> currentHand = myStartWindow->getSession()->getCurrentGame()->getCurrentHand();
boost::shared_ptr<PlayerInterface> humanPlayer = currentHand->getSeatsList()->front();
int betValue = getBetRaisePushButtonValue(); int betValue = getBetRaisePushButtonValue();
int minimum; int minimum;
minimum = currentHand->getCurrentBeRo()->getHighestSet() - currentHand->getSeatsList()->front()->getMySet() + currentHand->getCurrentBeRo()->getMinimumRaise(); minimum = currentHand->getCurrentBeRo()->getHighestSet() - humanPlayer->getMySet() + currentHand->getCurrentBeRo()->getMinimumRaise();
if(betValue < minimum) { if(betValue < minimum) {
return min(minimum,currentHand->getSeatsList()->front()->getMyCash()); return min(minimum,humanPlayer->getMyCash());
} }
else { else {
return betValue; return betValue;
@@ -1712,20 +1731,21 @@ void gameTableImpl::myCall(){
int tempHighestSet = 0; int tempHighestSet = 0;
boost::shared_ptr<HandInterface> currentHand = myStartWindow->getSession()->getCurrentGame()->getCurrentHand(); boost::shared_ptr<HandInterface> currentHand = myStartWindow->getSession()->getCurrentGame()->getCurrentHand();
boost::shared_ptr<PlayerInterface> humanPlayer = currentHand->getSeatsList()->front();
tempHighestSet = currentHand->getCurrentBeRo()->getHighestSet(); tempHighestSet = currentHand->getCurrentBeRo()->getHighestSet();
if (currentHand->getSeatsList()->front()->getMyCash()+currentHand->getSeatsList()->front()->getMySet() <= tempHighestSet) { if (humanPlayer->getMyCash() + humanPlayer->getMySet() <= tempHighestSet) {
currentHand->getSeatsList()->front()->setMySet(currentHand->getSeatsList()->front()->getMyCash()); humanPlayer->setMySet(humanPlayer->getMyCash());
currentHand->getSeatsList()->front()->setMyCash(0); humanPlayer->setMyCash(0);
currentHand->getSeatsList()->front()->setMyAction(6); humanPlayer->setMyAction(6);
} }
else { else {
currentHand->getSeatsList()->front()->setMySet(tempHighestSet - currentHand->getSeatsList()->front()->getMySet()); humanPlayer->setMySet(tempHighestSet - humanPlayer->getMySet());
currentHand->getSeatsList()->front()->setMyAction(3); humanPlayer->setMyAction(3);
} }
currentHand->getSeatsList()->front()->setMyTurn(0); humanPlayer->setMyTurn(0);
currentHand->getBoard()->collectSets(); currentHand->getBoard()->collectSets();
refreshPot(); refreshPot();
@@ -1744,46 +1764,48 @@ void gameTableImpl::mySet(){
if(pushButton_BetRaise->text() != "") { if(pushButton_BetRaise->text() != "") {
boost::shared_ptr<HandInterface> currentHand = myStartWindow->getSession()->getCurrentGame()->getCurrentHand(); boost::shared_ptr<HandInterface> currentHand = myStartWindow->getSession()->getCurrentGame()->getCurrentHand();
int tempCash = currentHand->getSeatsList()->front()->getMyCash(); boost::shared_ptr<PlayerInterface> humanPlayer = currentHand->getSeatsList()->front();
int tempCash = humanPlayer->getMyCash();
// cout << "Set-Value " << getBetRaisePushButtonValue() << endl; // cout << "Set-Value " << getBetRaisePushButtonValue() << endl;
currentHand->getSeatsList()->front()->setMySet(getBetRaisePushButtonValue()); humanPlayer->setMySet(getBetRaisePushButtonValue());
if (getBetRaisePushButtonValue() >= tempCash ) { if (getBetRaisePushButtonValue() >= tempCash ) {
currentHand->getSeatsList()->front()->setMySet(currentHand->getSeatsList()->front()->getMyCash()); humanPlayer->setMySet(humanPlayer->getMyCash());
currentHand->getSeatsList()->front()->setMyCash(0); humanPlayer->setMyCash(0);
currentHand->getSeatsList()->front()->setMyAction(6); humanPlayer->setMyAction(6);
// full bet rule // full bet rule
if(currentHand->getCurrentBeRo()->getHighestSet() + currentHand->getCurrentBeRo()->getMinimumRaise() > currentHand->getSeatsList()->front()->getMySet()) { if(currentHand->getCurrentBeRo()->getHighestSet() + currentHand->getCurrentBeRo()->getMinimumRaise() > humanPlayer->getMySet()) {
currentHand->getCurrentBeRo()->setFullBetRule(true); currentHand->getCurrentBeRo()->setFullBetRule(true);
} }
} }
if(myActionIsRaise) { if(myActionIsRaise) {
//do not if allIn //do not if allIn
if(currentHand->getSeatsList()->front()->getMyAction() != 6) { if(humanPlayer->getMyAction() != 6) {
currentHand->getSeatsList()->front()->setMyAction(5); humanPlayer->setMyAction(5);
} }
myActionIsRaise = 0; myActionIsRaise = 0;
currentHand->getCurrentBeRo()->setMinimumRaise(currentHand->getSeatsList()->front()->getMySet() - currentHand->getCurrentBeRo()->getHighestSet()); currentHand->getCurrentBeRo()->setMinimumRaise(humanPlayer->getMySet() - currentHand->getCurrentBeRo()->getHighestSet());
} }
if(myActionIsBet) { if(myActionIsBet) {
//do not if allIn //do not if allIn
if(currentHand->getSeatsList()->front()->getMyAction() != 6) { if(humanPlayer->getMyAction() != 6) {
currentHand->getSeatsList()->front()->setMyAction(4); humanPlayer->setMyAction(4);
} }
myActionIsBet = 0; myActionIsBet = 0;
currentHand->getCurrentBeRo()->setMinimumRaise(currentHand->getSeatsList()->front()->getMySet()); currentHand->getCurrentBeRo()->setMinimumRaise(humanPlayer->getMySet());
} }
currentHand->getCurrentBeRo()->setHighestSet(currentHand->getSeatsList()->front()->getMySet()); currentHand->getCurrentBeRo()->setHighestSet(humanPlayer->getMySet());
currentHand->getSeatsList()->front()->setMyTurn(0); humanPlayer->setMyTurn(0);
currentHand->getBoard()->collectSets(); currentHand->getBoard()->collectSets();
refreshPot(); refreshPot();
@@ -1794,7 +1816,7 @@ void gameTableImpl::mySet(){
currentHand->setLastPlayersTurn(0); currentHand->setLastPlayersTurn(0);
// lastPlayerAction für Karten umblättern reihenfolge setzrn // lastPlayerAction für Karten umblättern reihenfolge setzrn
currentHand->setLastActionPlayer(currentHand->getSeatsList()->front()->getMyUniqueID()); currentHand->setLastActionPlayer(humanPlayer->getMyUniqueID());
//Spiel läuft weiter //Spiel läuft weiter
myActionDone(); myActionDone();
@@ -1806,27 +1828,28 @@ void gameTableImpl::myAllIn(){
if(pushButton_AllIn->text() == AllInString) { if(pushButton_AllIn->text() == AllInString) {
boost::shared_ptr<HandInterface> currentHand = myStartWindow->getSession()->getCurrentGame()->getCurrentHand(); boost::shared_ptr<HandInterface> currentHand = myStartWindow->getSession()->getCurrentGame()->getCurrentHand();
boost::shared_ptr<PlayerInterface> humanPlayer = currentHand->getSeatsList()->front();
currentHand->getSeatsList()->front()->setMySet(currentHand->getSeatsList()->front()->getMyCash()); humanPlayer->setMySet(humanPlayer->getMyCash());
currentHand->getSeatsList()->front()->setMyCash(0); humanPlayer->setMyCash(0);
currentHand->getSeatsList()->front()->setMyAction(6); humanPlayer->setMyAction(6);
// full bet rule // full bet rule
if(currentHand->getCurrentBeRo()->getHighestSet() + currentHand->getCurrentBeRo()->getMinimumRaise() > currentHand->getSeatsList()->front()->getMySet()) { if(currentHand->getCurrentBeRo()->getHighestSet() + currentHand->getCurrentBeRo()->getMinimumRaise() > humanPlayer->getMySet()) {
currentHand->getCurrentBeRo()->setFullBetRule(true); currentHand->getCurrentBeRo()->setFullBetRule(true);
} }
if(currentHand->getSeatsList()->front()->getMySet() > currentHand->getCurrentBeRo()->getHighestSet()) { if(humanPlayer->getMySet() > currentHand->getCurrentBeRo()->getHighestSet()) {
currentHand->getCurrentBeRo()->setMinimumRaise(currentHand->getSeatsList()->front()->getMySet() - currentHand->getCurrentBeRo()->getHighestSet()); currentHand->getCurrentBeRo()->setMinimumRaise(humanPlayer->getMySet() - currentHand->getCurrentBeRo()->getHighestSet());
currentHand->getCurrentBeRo()->setHighestSet(currentHand->getSeatsList()->front()->getMySet()); currentHand->getCurrentBeRo()->setHighestSet(humanPlayer->getMySet());
// lastPlayerAction für Karten umblättern reihenfolge setzrn // lastPlayerAction für Karten umblättern reihenfolge setzrn
currentHand->setLastActionPlayer(currentHand->getSeatsList()->front()->getMyUniqueID()); currentHand->setLastActionPlayer(humanPlayer->getMyUniqueID());
} }
currentHand->getSeatsList()->front()->setMyTurn(0); humanPlayer->setMyTurn(0);
currentHand->getBoard()->collectSets(); currentHand->getBoard()->collectSets();
refreshPot(); refreshPot();
@@ -1973,7 +1996,8 @@ void gameTableImpl::nextPlayerAnimation() {
refreshSet(); refreshSet();
PlayerListConstIterator it_c; PlayerListConstIterator it_c;
for(it_c=currentHand->getSeatsList()->begin(); it_c!=currentHand->getSeatsList()->end(); it_c++) { PlayerList seatsList = currentHand->getSeatsList();
for (it_c=seatsList->begin(); it_c!=seatsList->end(); it_c++) {
if((*it_c)->getMyID() == currentHand->getLastPlayersTurn()) break; if((*it_c)->getMyID() == currentHand->getLastPlayersTurn()) break;
} }
@@ -2051,7 +2075,8 @@ void gameTableImpl::postRiverRunAnimation2() {
int nonfoldPlayersCounter = 0; int nonfoldPlayersCounter = 0;
PlayerListConstIterator it_c; PlayerListConstIterator it_c;
for (it_c=currentHand->getActivePlayerList()->begin(); it_c!=currentHand->getActivePlayerList()->end(); it_c++) { PlayerList activePlayerList = currentHand->getActivePlayerList();
for (it_c=activePlayerList->begin(); it_c!=activePlayerList->end(); it_c++) {
if ((*it_c)->getMyAction() != PLAYER_ACTION_FOLD) if ((*it_c)->getMyAction() != PLAYER_ACTION_FOLD)
nonfoldPlayersCounter++; nonfoldPlayersCounter++;
} }
@@ -2060,7 +2085,7 @@ void gameTableImpl::postRiverRunAnimation2() {
if(!flipHolecardsAllInAlreadyDone) { if(!flipHolecardsAllInAlreadyDone) {
for (it_c=currentHand->getActivePlayerList()->begin(); it_c!=currentHand->getActivePlayerList()->end(); it_c++) { for (it_c=activePlayerList->begin(); it_c!=activePlayerList->end(); it_c++) {
if((*it_c)->getMyAction() != PLAYER_ACTION_FOLD && (*it_c)->checkIfINeedToShowCards()) { if((*it_c)->getMyAction() != PLAYER_ACTION_FOLD && (*it_c)->checkIfINeedToShowCards()) {
showHoleCards((*it_c)->getMyUniqueID()); showHoleCards((*it_c)->getMyUniqueID());
@@ -2076,7 +2101,7 @@ void gameTableImpl::postRiverRunAnimation2() {
flipHolecardsAllInAlreadyDone = TRUE; flipHolecardsAllInAlreadyDone = TRUE;
} }
else { else {
for (it_c=currentHand->getActivePlayerList()->begin(); it_c!=currentHand->getActivePlayerList()->end(); it_c++) { for (it_c=activePlayerList->begin(); it_c!=activePlayerList->end(); it_c++) {
if((*it_c)->getMyAction() != PLAYER_ACTION_FOLD) { if((*it_c)->getMyAction() != PLAYER_ACTION_FOLD) {
//set Player value (logging) for all in already shown cards //set Player value (logging) for all in already shown cards
(*it_c)->setMyCardsFlip(1,3); (*it_c)->setMyCardsFlip(1,3);
@@ -2088,8 +2113,8 @@ void gameTableImpl::postRiverRunAnimation2() {
else { else {
//display show! button if human player is active and the latest non foldedone //display show! button if human player is active and the latest non foldedone
PlayerListIterator it = myStartWindow->getSession()->getCurrentGame()->getSeatsList()->begin(); boost::shared_ptr<PlayerInterface> humanPlayer = myStartWindow->getSession()->getCurrentGame()->getCurrentHand()->getSeatsList()->front();
if( internetOrNetworkGame && (*it)->getMyActiveStatus() && (*it)->getMyAction() != PLAYER_ACTION_FOLD) { if( internetOrNetworkGame && humanPlayer->getMyActiveStatus() && humanPlayer->getMyAction() != PLAYER_ACTION_FOLD) {
showShowMyCardsButton(); showShowMyCardsButton();
} }
@@ -2106,7 +2131,8 @@ void gameTableImpl::postRiverRunAnimation3() {
int nonfoldPlayerCounter = 0; int nonfoldPlayerCounter = 0;
PlayerListConstIterator it_c; PlayerListConstIterator it_c;
for(it_c=currentHand->getActivePlayerList()->begin(); it_c!=currentHand->getActivePlayerList()->end(); it_c++) { PlayerList activePlayerList = currentHand->getActivePlayerList();
for(it_c=activePlayerList->begin(); it_c!=activePlayerList->end(); it_c++) {
if((*it_c)->getMyAction() != PLAYER_ACTION_FOLD) { if((*it_c)->getMyAction() != PLAYER_ACTION_FOLD) {
nonfoldPlayerCounter++; nonfoldPlayerCounter++;
} }
@@ -2114,7 +2140,7 @@ void gameTableImpl::postRiverRunAnimation3() {
list<unsigned> winners = currentHand->getBoard()->getWinners(); list<unsigned> winners = currentHand->getBoard()->getWinners();
for(it_c=currentHand->getActivePlayerList()->begin(); it_c!=currentHand->getActivePlayerList()->end(); it_c++) { for(it_c=activePlayerList->begin(); it_c!=activePlayerList->end(); it_c++) {
if((*it_c)->getMyAction() != PLAYER_ACTION_FOLD && (*it_c)->getMyCardsValueInt() == currentHand->getCurrentBeRo()->getHighestCardsValue() ) { if((*it_c)->getMyAction() != PLAYER_ACTION_FOLD && (*it_c)->getMyCardsValueInt() == currentHand->getCurrentBeRo()->getHighestCardsValue() ) {
//Show "Winner" label //Show "Winner" label
@@ -2185,7 +2211,7 @@ void gameTableImpl::postRiverRunAnimation3() {
} }
else { else {
if( currentHand->getActivePlayerList()->size() != 1 && (*it_c)->getMyAction() != PLAYER_ACTION_FOLD && myConfig->readConfigInt("ShowFadeOutCardsAnimation") if( activePlayerList->size() != 1 && (*it_c)->getMyAction() != PLAYER_ACTION_FOLD && myConfig->readConfigInt("ShowFadeOutCardsAnimation")
) { ) {
//aufgedeckte Gegner auch ausblenden //aufgedeckte Gegner auch ausblenden
@@ -2197,7 +2223,7 @@ void gameTableImpl::postRiverRunAnimation3() {
// log side pot winners -> TODO // log side pot winners -> TODO
list<unsigned>::iterator it_int; list<unsigned>::iterator it_int;
for(it_c=currentHand->getActivePlayerList()->begin(); it_c!=currentHand->getActivePlayerList()->end(); it_c++) { for(it_c=activePlayerList->begin(); it_c!=activePlayerList->end(); it_c++) {
if((*it_c)->getMyAction() != PLAYER_ACTION_FOLD && (*it_c)->getMyCardsValueInt() != currentHand->getCurrentBeRo()->getHighestCardsValue() ) { if((*it_c)->getMyAction() != PLAYER_ACTION_FOLD && (*it_c)->getMyCardsValueInt() != currentHand->getCurrentBeRo()->getHighestCardsValue() ) {
for(it_int = winners.begin(); it_int != winners.end(); it_int++) { for(it_int = winners.begin(); it_int != winners.end(); it_int++) {
@@ -2210,7 +2236,7 @@ void gameTableImpl::postRiverRunAnimation3() {
} }
} }
for(it_c=currentHand->getActivePlayerList()->begin(); it_c!=currentHand->getActivePlayerList()->end(); it_c++) { for(it_c=activePlayerList->begin(); it_c!=activePlayerList->end(); it_c++) {
if((*it_c)->getMyCash() == 0) { if((*it_c)->getMyCash() == 0) {
currentHand->getGuiInterface()->logPlayerSitsOut((*it_c)->getMyName()); currentHand->getGuiInterface()->logPlayerSitsOut((*it_c)->getMyName());
} }
@@ -2230,7 +2256,7 @@ void gameTableImpl::postRiverRunAnimation4() {
void gameTableImpl::postRiverRunAnimation5() { void gameTableImpl::postRiverRunAnimation5() {
boost::shared_ptr<HandInterface> currentHand = myStartWindow->getSession()->getCurrentGame()->getCurrentHand(); boost::shared_ptr<HandInterface> currentHand = myStartWindow->getSession()->getCurrentGame()->getCurrentHand();
PlayerList activePlayerList = currentHand->getActivePlayerList();
PlayerListConstIterator it_c; PlayerListConstIterator it_c;
if (distributePotAnimCounter<10) { if (distributePotAnimCounter<10) {
@@ -2239,7 +2265,8 @@ void gameTableImpl::postRiverRunAnimation5() {
label_Pot->setText(""); label_Pot->setText("");
for(it_c=currentHand->getActivePlayerList()->begin(); it_c!=currentHand->getActivePlayerList()->end(); it_c++) { for(it_c=activePlayerList->begin(); it_c!=activePlayerList->end(); it_c++) {
if((*it_c)->getMyAction() != PLAYER_ACTION_FOLD && (*it_c)->getMyCardsValueInt() == currentHand->getCurrentBeRo()->getHighestCardsValue() ) { if((*it_c)->getMyAction() != PLAYER_ACTION_FOLD && (*it_c)->getMyCardsValueInt() == currentHand->getCurrentBeRo()->getHighestCardsValue() ) {
playerNameLabelArray[(*it_c)->getMyID()]->hide(); playerNameLabelArray[(*it_c)->getMyID()]->hide();
@@ -2249,7 +2276,8 @@ void gameTableImpl::postRiverRunAnimation5() {
else { else {
label_Pot->setText(PotString); label_Pot->setText(PotString);
for(it_c=currentHand->getActivePlayerList()->begin(); it_c!=currentHand->getActivePlayerList()->end(); it_c++) { for(it_c=activePlayerList->begin(); it_c!=activePlayerList->end(); it_c++) {
if((*it_c)->getMyAction() != PLAYER_ACTION_FOLD && (*it_c)->getMyCardsValueInt() == currentHand->getCurrentBeRo()->getHighestCardsValue() ) { if((*it_c)->getMyAction() != PLAYER_ACTION_FOLD && (*it_c)->getMyCardsValueInt() == currentHand->getCurrentBeRo()->getHighestCardsValue() ) {
playerNameLabelArray[(*it_c)->getMyID()]->show(); playerNameLabelArray[(*it_c)->getMyID()]->show();
@@ -2287,14 +2315,15 @@ void gameTableImpl::postRiverRunAnimation6() {
int playersPositiveCashCounter = 0; int playersPositiveCashCounter = 0;
PlayerListConstIterator it_c; PlayerListConstIterator it_c;
for (it_c=currentHand->getActivePlayerList()->begin(); it_c!=currentHand->getActivePlayerList()->end(); it_c++) { PlayerList activePlayerList = currentHand->getActivePlayerList();
for (it_c=activePlayerList->begin(); it_c!=activePlayerList->end(); it_c++) {
if ((*it_c)->getMyCash() > 0) playersPositiveCashCounter++; if ((*it_c)->getMyCash() > 0) playersPositiveCashCounter++;
} }
if (playersPositiveCashCounter==1) { if (playersPositiveCashCounter==1) {
for (it_c=currentHand->getActivePlayerList()->begin(); it_c!=currentHand->getActivePlayerList()->end(); it_c++) { for (it_c=activePlayerList->begin(); it_c!=activePlayerList->end(); it_c++) {
if ((*it_c)->getMyCash() > 0) { if ((*it_c)->getMyCash() > 0) {
currentHand->getGuiInterface()->logPlayerWinGame((*it_c)->getMyName(), myStartWindow->getSession()->getCurrentGame()->getMyGameID()); currentHand->getGuiInterface()->logPlayerWinGame((*it_c)->getMyName(), myStartWindow->getSession()->getCurrentGame()->getMyGameID());
@@ -2332,7 +2361,9 @@ void gameTableImpl::showHoleCards(unsigned playerId, bool allIn)
int showFlipcardAnimation = myConfig->readConfigInt("ShowFlipCardsAnimation"); int showFlipcardAnimation = myConfig->readConfigInt("ShowFlipCardsAnimation");
int j; int j;
PlayerListConstIterator it_c; PlayerListConstIterator it_c;
for (it_c=currentHand->getActivePlayerList()->begin(); it_c!=currentHand->getActivePlayerList()->end(); it_c++) { PlayerList activePlayerList = currentHand->getActivePlayerList();
for (it_c=activePlayerList->begin(); it_c!=activePlayerList->end(); it_c++) {
if((*it_c)->getMyUniqueID() == playerId) { if((*it_c)->getMyUniqueID() == playerId) {
(*it_c)->getMyCards(tempCardsIntArray); (*it_c)->getMyCards(tempCardsIntArray);
@@ -2365,12 +2396,13 @@ void gameTableImpl::flipHolecardsAllIn() {
//Aktive Spieler zählen --> wenn nur noch einer nicht-folded dann keine Karten umdrehen //Aktive Spieler zählen --> wenn nur noch einer nicht-folded dann keine Karten umdrehen
int nonfoldPlayersCounter = 0; int nonfoldPlayersCounter = 0;
PlayerListConstIterator it_c; PlayerListConstIterator it_c;
for (it_c=currentHand->getActivePlayerList()->begin(); it_c!=currentHand->getActivePlayerList()->end(); it_c++) { PlayerList activePlayerList = currentHand->getActivePlayerList();
for (it_c=activePlayerList->begin(); it_c!=activePlayerList->end(); it_c++) {
if ((*it_c)->getMyAction() != PLAYER_ACTION_FOLD) nonfoldPlayersCounter++; if ((*it_c)->getMyAction() != PLAYER_ACTION_FOLD) nonfoldPlayersCounter++;
} }
if(nonfoldPlayersCounter!=1) { if(nonfoldPlayersCounter!=1) {
for (it_c=currentHand->getActivePlayerList()->begin(); it_c!=currentHand->getActivePlayerList()->end(); it_c++) { for (it_c=activePlayerList->begin(); it_c!=activePlayerList->end(); it_c++) {
if((*it_c)->getMyAction() != PLAYER_ACTION_FOLD) { if((*it_c)->getMyAction() != PLAYER_ACTION_FOLD) {
showHoleCards((*it_c)->getMyUniqueID()); showHoleCards((*it_c)->getMyUniqueID());
@@ -3075,10 +3107,11 @@ void gameTableImpl::leaveCurrentNetworkGame() {
void gameTableImpl::triggerVoteOnKick(int id) { void gameTableImpl::triggerVoteOnKick(int id) {
assert(myStartWindow->getSession()->getCurrentGame()); assert(myStartWindow->getSession()->getCurrentGame());
int playerCount = static_cast<int>(myStartWindow->getSession()->getCurrentGame()->getSeatsList()->size()); PlayerList seatList = myStartWindow->getSession()->getCurrentGame()->getSeatsList();
int playerCount = static_cast<int>(seatList->size());
if (id < playerCount) if (id < playerCount)
{ {
PlayerListIterator pos = myStartWindow->getSession()->getCurrentGame()->getSeatsList()->begin(); PlayerListIterator pos = seatList->begin();
advance(pos, id); advance(pos, id);
myStartWindow->getSession()->startVoteKickPlayer((*pos)->getMyUniqueID()); myStartWindow->getSession()->startVoteKickPlayer((*pos)->getMyUniqueID());
} }
@@ -3194,11 +3227,12 @@ void gameTableImpl::refreshCardsChance(GameState bero)
if(myConfig->readConfigInt("ShowCardsChanceMonitor")) { if(myConfig->readConfigInt("ShowCardsChanceMonitor")) {
if((*myStartWindow->getSession()->getCurrentGame()->getSeatsList()->begin())->getMyActiveStatus() && (*myStartWindow->getSession()->getCurrentGame()->getSeatsList()->begin())->getMyAction() != PLAYER_ACTION_FOLD) { boost::shared_ptr<PlayerInterface> humanPlayer = myStartWindow->getSession()->getCurrentGame()->getSeatsList()->front();
if(humanPlayer->getMyActiveStatus() && humanPlayer->getMyAction() != PLAYER_ACTION_FOLD) {
int boardCards[5]; int boardCards[5];
int holeCards[2]; int holeCards[2];
(*myStartWindow->getSession()->getCurrentGame()->getSeatsList()->begin())->getMyCards(holeCards); humanPlayer->getMyCards(holeCards);
myStartWindow->getSession()->getCurrentGame()->getCurrentHand()->getBoard()->getMyCards(boardCards); myStartWindow->getSession()->getCurrentGame()->getCurrentHand()->getBoard()->getMyCards(boardCards);
label_chance->refreshChance(myCardsValue->calcCardsChance(bero, holeCards, boardCards)); label_chance->refreshChance(myCardsValue->calcCardsChance(bero, holeCards, boardCards));
+13 -5
View File
@@ -203,6 +203,8 @@ void guiLog::logNewGameHandMsg(int gameID, int handID) {
PlayerListConstIterator it_c; PlayerListConstIterator it_c;
boost::shared_ptr<HandInterface> currentHand = myW->getSession()->getCurrentGame()->getCurrentHand(); boost::shared_ptr<HandInterface> currentHand = myW->getSession()->getCurrentGame()->getCurrentHand();
PlayerList activePlayerList = currentHand->getActivePlayerList();
myW->textBrowser_Log->append("<span style=\"color:#"+myStyle->getChatLogTextColor()+"; font-size:large; font-weight:bold\">## Game: "+QString::number(gameID,10)+" | Hand: "+QString::number(handID,10)+" ##</span>"); myW->textBrowser_Log->append("<span style=\"color:#"+myStyle->getChatLogTextColor()+"; font-size:large; font-weight:bold\">## Game: "+QString::number(gameID,10)+" | Hand: "+QString::number(handID,10)+" ##</span>");
if(myConfig->readConfigInt("LogOnOff")) { if(myConfig->readConfigInt("LogOnOff")) {
@@ -214,7 +216,7 @@ void guiLog::logNewGameHandMsg(int gameID, int handID) {
logFileStreamString += "BLIND LEVEL: $"+QString::number(currentHand->getSmallBlind())+" / $"+QString::number(currentHand->getSmallBlind()*2)+"</br>"; logFileStreamString += "BLIND LEVEL: $"+QString::number(currentHand->getSmallBlind())+" / $"+QString::number(currentHand->getSmallBlind()*2)+"</br>";
//print cash only for active players //print cash only for active players
for(it_c=currentHand->getActivePlayerList()->begin(); it_c!=currentHand->getActivePlayerList()->end(); it_c++) { for(it_c=activePlayerList->begin(); it_c!=activePlayerList->end(); it_c++) {
logFileStreamString += "Seat " + QString::number((*it_c)->getMyID()+1,10) + ": <b>" + QString::fromUtf8((*it_c)->getMyName().c_str()) + "</b> ($" + QString::number((*it_c)->getMyCash()+(*it_c)->getMySet(),10)+")</br>"; logFileStreamString += "Seat " + QString::number((*it_c)->getMyID()+1,10) + ": <b>" + QString::fromUtf8((*it_c)->getMyName().c_str()) + "</b> ($" + QString::number((*it_c)->getMyCash()+(*it_c)->getMySet(),10)+")</br>";
@@ -246,7 +248,8 @@ void guiLog::logNewGameHandMsg(int gameID, int handID) {
sql += "," + boost::lexical_cast<string>(myW->getSession()->getCurrentGame()->getStartCash()); sql += "," + boost::lexical_cast<string>(myW->getSession()->getCurrentGame()->getStartCash());
sql += "," + boost::lexical_cast<string>(myW->getSession()->getCurrentGame()->getStartSmallBlind()); sql += "," + boost::lexical_cast<string>(myW->getSession()->getCurrentGame()->getStartSmallBlind());
sql += "," + boost::lexical_cast<string>(myW->getSession()->getCurrentGame()->getDealerPosition()); sql += "," + boost::lexical_cast<string>(myW->getSession()->getCurrentGame()->getDealerPosition());
for(it_c = currentHand->getSeatsList()->begin();it_c!=currentHand->getSeatsList()->end();it_c++) { PlayerList seatList = currentHand->getSeatsList();
for(it_c = seatList->begin();it_c!=seatList->end();it_c++) {
if((*it_c)->getMyActiveStatus()) { if((*it_c)->getMyActiveStatus()) {
sql += ",\"" + (*it_c)->getMyName() +"\""; sql += ",\"" + (*it_c)->getMyName() +"\"";
} else { } else {
@@ -392,8 +395,11 @@ void guiLog::logNewBlindsSetsMsg(int sbSet, int bbSet, QString sbName, QString b
PlayerListConstIterator it_c; PlayerListConstIterator it_c;
boost::shared_ptr<HandInterface> currentHand = myW->getSession()->getCurrentGame()->getCurrentHand(); boost::shared_ptr<HandInterface> currentHand = myW->getSession()->getCurrentGame()->getCurrentHand();
for(it_c=currentHand->getActivePlayerList()->begin(); it_c!=currentHand->getActivePlayerList()->end(); it_c++) { PlayerList activePlayerList = currentHand->getActivePlayerList();
if(currentHand->getActivePlayerList()->size() > 2) {
for(it_c=activePlayerList->begin(); it_c!=activePlayerList->end(); it_c++) {
if(activePlayerList->size() > 2) {
if((*it_c)->getMyButton() == BUTTON_DEALER) { if((*it_c)->getMyButton() == BUTTON_DEALER) {
logFileStreamString += "</br>" + QString::fromUtf8((*it_c)->getMyName().c_str()) + " starts as dealer."; logFileStreamString += "</br>" + QString::fromUtf8((*it_c)->getMyName().c_str()) + " starts as dealer.";
@@ -1539,9 +1545,11 @@ QString guiLog::determineHandName(int myCardsValueInt) {
bool equal = false; bool equal = false;
boost::shared_ptr<HandInterface> currentHand = myW->getSession()->getCurrentGame()->getCurrentHand(); boost::shared_ptr<HandInterface> currentHand = myW->getSession()->getCurrentGame()->getCurrentHand();
PlayerListConstIterator it_c; PlayerListConstIterator it_c;
PlayerList activePlayerList = currentHand->getActivePlayerList();
// collect cardsValueInt of all players who will show their cards // collect cardsValueInt of all players who will show their cards
for(it_c=currentHand->getActivePlayerList()->begin(); it_c!=currentHand->getActivePlayerList()->end(); it_c++) { for(it_c=activePlayerList->begin(); it_c!=activePlayerList->end(); it_c++) {
if( (*it_c)->getMyAction() != PLAYER_ACTION_FOLD) { if( (*it_c)->getMyAction() != PLAYER_ACTION_FOLD) {
shownCardsValueInt.push_back( (*it_c)->getMyCardsValueInt()); shownCardsValueInt.push_back( (*it_c)->getMyCardsValueInt());
} }
+10 -9
View File
@@ -48,15 +48,15 @@ void MyAvatarLabel::contextMenuEvent ( QContextMenuEvent *event ) {
assert(myW->getSession()->getCurrentGame()); assert(myW->getSession()->getCurrentGame());
if (myW->getSession()->isNetworkClientRunning()) { if (myW->getSession()->isNetworkClientRunning()) {
PlayerListIterator it = myW->getSession()->getCurrentGame()->getSeatsList()->begin(); boost::shared_ptr<PlayerInterface> humanPlayer = myW->getSession()->getCurrentGame()->getSeatsList()->front();
//only active players are allowed to start a vote //only active players are allowed to start a vote
if((*it)->getMyActiveStatus()) { if(humanPlayer->getMyActiveStatus()) {
Game *currentGame = myW->getSession()->getCurrentGame(); Game *currentGame = myW->getSession()->getCurrentGame();
PlayerListConstIterator it_c; PlayerListConstIterator it_c;
int activePlayerCounter=0; int activePlayerCounter=0;
PlayerList seatList = currentGame->getSeatsList();
for (it_c=currentGame->getSeatsList()->begin(); it_c!=currentGame->getSeatsList()->end(); it_c++) { for (it_c=seatList->begin(); it_c!=seatList->end(); it_c++) {
if((*it_c)->getMyActiveStatus()) activePlayerCounter++; if((*it_c)->getMyActiveStatus()) activePlayerCounter++;
} }
GameInfo info(myW->getSession()->getClientGameInfo(myW->getSession()->getClientCurrentGameId())); GameInfo info(myW->getSession()->getClientGameInfo(myW->getSession()->getClientCurrentGameId()));
@@ -71,7 +71,7 @@ void MyAvatarLabel::contextMenuEvent ( QContextMenuEvent *event ) {
action_IgnorePlayer->setEnabled(true); action_IgnorePlayer->setEnabled(true);
int j=0; int j=0;
for (it_c=currentGame->getSeatsList()->begin(); it_c!=currentGame->getSeatsList()->end(); it_c++) { for (it_c=seatList->begin(); it_c!=seatList->end(); it_c++) {
if(myId == j) { if(myId == j) {
@@ -90,7 +90,7 @@ void MyAvatarLabel::contextMenuEvent ( QContextMenuEvent *event ) {
} }
int i=0; int i=0;
for (it_c=currentGame->getSeatsList()->begin(); it_c!=currentGame->getSeatsList()->end(); it_c++) { for (it_c=seatList->begin(); it_c!=seatList->end(); it_c++) {
//also inactive player which stays on table can be voted to kick //also inactive player which stays on table can be voted to kick
if(myContextMenuEnabled && myId != 0 && myId == i && (*it_c)->getMyType() != PLAYER_TYPE_COMPUTER && ( (*it_c)->getMyActiveStatus() || (*it_c)->getMyStayOnTableStatus() ) ) if(myContextMenuEnabled && myId != 0 && myId == i && (*it_c)->getMyType() != PLAYER_TYPE_COMPUTER && ( (*it_c)->getMyActiveStatus() || (*it_c)->getMyStayOnTableStatus() ) )
@@ -182,8 +182,8 @@ void MyAvatarLabel::putPlayerOnIgnoreList() {
QStringList list; QStringList list;
PlayerListConstIterator it_c; PlayerListConstIterator it_c;
PlayerList seatList = myW->getSession()->getCurrentGame()->getSeatsList();
for (it_c=myW->getSession()->getCurrentGame()->getSeatsList()->begin(); it_c!=myW->getSession()->getCurrentGame()->getSeatsList()->end(); it_c++) { for (it_c=seatList->begin(); it_c!=seatList->end(); it_c++) {
list << QString::fromUtf8((*it_c)->getMyName().c_str()); list << QString::fromUtf8((*it_c)->getMyName().c_str());
} }
@@ -207,7 +207,8 @@ void MyAvatarLabel::reportBadAvatar() {
Game *currentGame = myW->getSession()->getCurrentGame(); Game *currentGame = myW->getSession()->getCurrentGame();
int j=0; int j=0;
PlayerListConstIterator it_c; PlayerListConstIterator it_c;
for (it_c=currentGame->getSeatsList()->begin(); it_c!=currentGame->getSeatsList()->end(); it_c++) { PlayerList seatList = currentGame->getSeatsList();
for (it_c=seatList->begin(); it_c!=seatList->end(); it_c++) {
if(myId == j) { if(myId == j) {
+2 -1
View File
@@ -981,8 +981,9 @@ QStringList startWindowImpl::getPlayerNicksList() {
QStringList list; QStringList list;
PlayerListConstIterator it_c; PlayerListConstIterator it_c;
PlayerList seatList = mySession->getCurrentGame()->getSeatsList();
for (it_c=seatList->begin(); it_c!=seatList->end(); it_c++) {
for (it_c=mySession->getCurrentGame()->getSeatsList()->begin(); it_c!=mySession->getCurrentGame()->getSeatsList()->end(); it_c++) {
list << QString::fromUtf8((*it_c)->getMyName().c_str()); list << QString::fromUtf8((*it_c)->getMyName().c_str());
} }
+474 -419
View File
File diff suppressed because it is too large Load Diff
+471 -411
View File
File diff suppressed because it is too large Load Diff
+466 -411
View File
File diff suppressed because it is too large Load Diff
+466 -411
View File
File diff suppressed because it is too large Load Diff
+119 -5
View File
@@ -268,6 +268,14 @@ Kontaktujte, prosím, výrobce stylu herního stolu na &quot;%4&quot;.</translat
<source>You will no longer receive chat messages or game invitations from this user.&lt;br&gt;Do you really want to put player &lt;b&gt;%1&lt;/b&gt; on ignore list?</source> <source>You will no longer receive chat messages or game invitations from this user.&lt;br&gt;Do you really want to put player &lt;b&gt;%1&lt;/b&gt; on ignore list?</source>
<translation>Od tohoto uživatele již nebudete přijímat žádné zprávy, ani pozvánky do her.&lt;br&gt;Opravdu chcete přidat hráče &lt;b&gt;%1&lt;/b&gt; na seznam ignorovaných?</translation> <translation>Od tohoto uživatele již nebudete přijímat žádné zprávy, ani pozvánky do her.&lt;br&gt;Opravdu chcete přidat hráče &lt;b&gt;%1&lt;/b&gt; na seznam ignorovaných?</translation>
</message> </message>
<message>
<source>Report inappropriate avatar</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Are you sure you want to report the avatar of &quot;%1&quot; as inappropriate?</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>ServerListDialog</name> <name>ServerListDialog</name>
@@ -587,7 +595,7 @@ p, li { white-space: pre-wrap; }
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt; - basic architecture, network development, windows package, MacOS package&lt;/p&gt; &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt; - basic architecture, network development, windows package, MacOS package&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt; Oskar Lindqvist (&lt;a href=&quot;mailto:tranberry@pokerth.net&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#0000ff;&quot;&gt;tranberry@pokerth.net&lt;/span&gt;&lt;/a&gt;)&lt;/p&gt; &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt; Oskar Lindqvist (&lt;a href=&quot;mailto:tranberry@pokerth.net&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#0000ff;&quot;&gt;tranberry@pokerth.net&lt;/span&gt;&lt;/a&gt;)&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt; - initial gui graphics design&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/body&gt;&lt;/html&gt;</source> &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt; - initial gui graphics design&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt; <translation type="obsolete">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt; &lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
p, li { white-space: pre-wrap; } p, li { white-space: pre-wrap; }
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:&apos;Nimbus Sans L&apos;; font-size:8pt; font-weight:400; font-style:normal;&quot;&gt; &lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:&apos;Nimbus Sans L&apos;; font-size:8pt; font-weight:400; font-style:normal;&quot;&gt;
@@ -619,7 +627,7 @@ p, li { white-space: pre-wrap; }
&lt;tr&gt; &lt;tr&gt;
&lt;td style=&quot;border: none;&quot;&gt; &lt;td style=&quot;border: none;&quot;&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;translator name - mail address&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/body&gt;&lt;/html&gt;</source> &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;translator name - mail address&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt; <translation type="obsolete">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt; &lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
p, li { white-space: pre-wrap; } p, li { white-space: pre-wrap; }
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:&apos;Nimbus Sans L&apos;; font-size:8pt; font-weight:400; font-style:normal;&quot;&gt; &lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:&apos;Nimbus Sans L&apos;; font-size:8pt; font-weight:400; font-style:normal;&quot;&gt;
@@ -654,7 +662,7 @@ p, li { white-space: pre-wrap; }
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt; - for startwindow background gfx and danuxi1 table background&lt;/p&gt; &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt; - for startwindow background gfx and danuxi1 table background&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-weight:600;&quot;&gt;heyn&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-weight:600;&quot;&gt;heyn&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt; - for moderating forum and organise bugtracker and feature requests&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/body&gt;&lt;/html&gt;</source> &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt; - for moderating forum and organise bugtracker and feature requests&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt; <translation type="obsolete">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt; &lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
p, li { white-space: pre-wrap; } p, li { white-space: pre-wrap; }
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:&apos;Nimbus Sans L&apos;; font-size:8pt; font-weight:400; font-style:normal;&quot;&gt; &lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:&apos;Nimbus Sans L&apos;; font-size:8pt; font-weight:400; font-style:normal;&quot;&gt;
@@ -680,6 +688,70 @@ p, li { white-space: pre-wrap; }
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-weight:600;&quot;&gt;heyn&lt;/span&gt;&lt;/p&gt; &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-weight:600;&quot;&gt;heyn&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt; - za moderování fóra a organizaci bugtrackeru a seznamu požadovaných vlastností&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/body&gt;&lt;/html&gt;</translation> &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt; - za moderování fóra a organizaci bugtrackeru a seznamu požadovaných vlastností&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message> </message>
<message>
<source>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
p, li { white-space: pre-wrap; }
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:&apos;Nimbus Sans L&apos;; font-size:8pt; font-weight:400; font-style:normal;&quot;&gt;
&lt;table border=&quot;0&quot; style=&quot;-qt-table-type: root; margin-top:4px; margin-bottom:4px; margin-left:4px; margin-right:4px;&quot;&gt;
&lt;tr&gt;
&lt;td style=&quot;border: none;&quot;&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-weight:600;&quot;&gt;Project page: &lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt; &lt;a href=&quot;http://www.pokerth.net&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#0000ff;&quot;&gt;http://www.pokerth.net&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-weight:600;&quot;&gt;IRC: &lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt; #pokerth (irc.freenode.net)&lt;/p&gt;
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-weight:600;&quot;&gt;Authors: &lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt; Felix Hammer (&lt;a href=&quot;mailto:doitux@pokerth.net&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#0000ff;&quot;&gt;doitux@pokerth.net&lt;/span&gt;&lt;/a&gt;)&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt; - initial idea, basic architecture, gui implementation, gui graphics editing, linux package&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt; Florian Thauer (&lt;a href=&quot;mailto:floty@pokerth.net&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#0000ff;&quot;&gt;floty@pokerth.net&lt;/span&gt;&lt;/a&gt;)&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt; - initial idea, basic architecture, engine development&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt; Lothar May (&lt;a href=&quot;mailto:lotodore@pokerth.net&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#0000ff;&quot;&gt;lotodore@pokerth.net&lt;/span&gt;&lt;/a&gt;)&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt; - basic architecture, network development, windows package, MacOS package&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt; Oskar Lindqvist (&lt;a href=&quot;mailto:tranberry@pokerth.net&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#0000ff;&quot;&gt;tranberry@pokerth.net&lt;/span&gt;&lt;/a&gt;)&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt; - initial gui graphics design&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
p, li { white-space: pre-wrap; }
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:&apos;Nimbus Sans L&apos;; font-size:8pt; font-weight:400; font-style:normal;&quot;&gt;
&lt;table border=&quot;0&quot; style=&quot;-qt-table-type: root; margin-top:4px; margin-bottom:4px; margin-left:4px; margin-right:4px;&quot;&gt;
&lt;tr&gt;
&lt;td style=&quot;border: none;&quot;&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;translator name - mail address&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
p, li { white-space: pre-wrap; }
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:&apos;Nimbus Sans L&apos;; font-size:8pt; font-weight:400; font-style:normal;&quot;&gt;
&lt;table border=&quot;0&quot; style=&quot;-qt-table-type: root; margin-top:4px; margin-bottom:4px; margin-left:4px; margin-right:4px;&quot;&gt;
&lt;tr&gt;
&lt;td style=&quot;border: none;&quot;&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;a href=&quot;http://commons.wikimedia.org/wiki/Main_Page&quot;&gt;&lt;span style=&quot; font-weight:600; text-decoration: underline; color:#0000ff;&quot;&gt;Wikimedia Commons&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-weight:600;&quot;&gt; - &lt;/span&gt;for different popular avatar picture resources&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-weight:600;&quot;&gt;Benedikt, Erhard, Felix, Florian, Linus, Lothar, Steffi, Caro&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt; - for people avatar pictures&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-weight:600;&quot;&gt;ZeiZei&lt;/span&gt; &lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt; - for &amp;quot;misc&amp;quot; avatar pictures&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;a href=&quot;http://kde-look.org/&quot;&gt;&lt;span style=&quot; font-weight:600; text-decoration: underline; color:#0000ff;&quot;&gt;http://kde-look.org/&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt; - for different gpl licensed sounds&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-weight:600;&quot;&gt;doc_dos&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt; - for self recorded chip sounds&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-weight:600;&quot;&gt;thiger, dunkanx, BerndA, coldz&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt; - for different patches&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-weight:600;&quot;&gt;kraut&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt; - for internet-game-server hosting and administration&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-weight:600;&quot;&gt;danuxi&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt; - for startwindow background gfx and danuxi1 table background&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-weight:600;&quot;&gt;heyn&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt; - for moderating forum and organise bugtracker and feature requests&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>aboutPokerthImpl</name> <name>aboutPokerthImpl</name>
@@ -807,7 +879,7 @@ Zvolte si jinou.</translation>
<message> <message>
<source>There is already a game with your choosen game name. <source>There is already a game with your choosen game name.
Please choose another one!</source> Please choose another one!</source>
<translation>Hra se stejným názvem již existuje. <translation type="obsolete">Hra se stejným názvem již existuje.
Zvolte, prosím, jiný název!</translation> Zvolte, prosím, jiný název!</translation>
</message> </message>
<message> <message>
@@ -817,9 +889,19 @@ Zvolte, prosím, jiný název!</translation>
<message> <message>
<source>There is a forbidden word in your choosen game name. <source>There is a forbidden word in your choosen game name.
Please choose another one!</source> Please choose another one!</source>
<translation>Součástí názvu hry je zakázané slovo. <translation type="obsolete">Součástí názvu hry je zakázané slovo.
Vyberte, prosím, jiný.</translation> Vyberte, prosím, jiný.</translation>
</message> </message>
<message>
<source>There is already a game with your chosen game name.
Please choose another one!</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>There is a forbidden word in your chosen game name.
Please choose another one!</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>changeHumanPlayerNameDialog</name> <name>changeHumanPlayerNameDialog</name>
@@ -1728,6 +1810,14 @@ Budete-li takto zdržovat ještě %1-krát, budete ze hry vyhozeni!
Pokud chcete ve hře zůstat, ale potřebujete si odskočit, využijte funkci &quot;Pryč&quot; z panelu napravo.</translation> Pokud chcete ve hře zůstat, ale potřebujete si odskočit, využijte funkci &quot;Pryč&quot; z panelu napravo.</translation>
</message> </message>
<message>
<source>Really want to exit?</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>PokerTH - Close Table?</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>internetGameLoginDialog</name> <name>internetGameLoginDialog</name>
@@ -2656,6 +2746,10 @@ p, li { white-space: pre-wrap; }
<source>Log File</source> <source>Log File</source>
<translation>Soubor záznamu</translation> <translation>Soubor záznamu</translation>
</message> </message>
<message>
<source>Show country flag in the corner of avatar</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>settingsDialogImpl</name> <name>settingsDialogImpl</name>
@@ -3358,6 +3452,26 @@ Prosím, zkontrolujte své uživatelské jméno a heslo.</translation>
<source>The settings are invalid for this type of game.</source> <source>The settings are invalid for this type of game.</source>
<translation>Nastavení jsou pro tento typ hry neplatná.</translation> <translation>Nastavení jsou pro tento typ hry neplatná.</translation>
</message> </message>
<message>
<source>You cannot join this game, because another player in that game has your network address.</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Your connection to the server is very slow, the game had to start without you.</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>The avatar report was accepted by the server. Thank you.</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>This avatar was already reported by another player.</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>An error occurred while reporting the avatar.</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>timeoutMsgBoxImpl</name> <name>timeoutMsgBoxImpl</name>
+536 -407
View File
File diff suppressed because it is too large Load Diff
+474 -419
View File
File diff suppressed because it is too large Load Diff
+536 -407
View File
File diff suppressed because it is too large Load Diff
+474 -419
View File
File diff suppressed because it is too large Load Diff
+536 -407
View File
File diff suppressed because it is too large Load Diff
+474 -419
View File
File diff suppressed because it is too large Load Diff
+556 -412
View File
File diff suppressed because it is too large Load Diff
+533 -468
View File
File diff suppressed because it is too large Load Diff
+536 -407
View File
File diff suppressed because it is too large Load Diff
+536 -407
View File
File diff suppressed because it is too large Load Diff
+466 -411
View File
File diff suppressed because one or more lines are too long
+474 -419
View File
File diff suppressed because it is too large Load Diff
+136 -20
View File
File diff suppressed because one or more lines are too long
+536 -407
View File
File diff suppressed because it is too large Load Diff
+491 -436
View File
File diff suppressed because it is too large Load Diff
+472 -407
View File
File diff suppressed because it is too large Load Diff
+474 -419
View File
File diff suppressed because it is too large Load Diff
+466 -411
View File
File diff suppressed because it is too large Load Diff
+466 -411
View File
File diff suppressed because it is too large Load Diff
+495 -440
View File
File diff suppressed because it is too large Load Diff