0.8.3 translation source update, list refactoring for crash bugfix in qt/*
This commit is contained in:
@@ -595,7 +595,7 @@ void gameTableImpl::applySettings(settingsDialogImpl* mySettingsDialog) {
|
|||||||
myStartWindow->getSession()->getCurrentGame()->getCurrentHand()->getBoard()->getMyCards(tempBoardCardsArray);
|
myStartWindow->getSession()->getCurrentGame()->getCurrentHand()->getBoard()->getMyCards(tempBoardCardsArray);
|
||||||
GameState currentState = myStartWindow->getSession()->getCurrentGame()->getCurrentHand()->getCurrentBeRo()->getMyBeRoID();
|
GameState currentState = myStartWindow->getSession()->getCurrentGame()->getCurrentHand()->getCurrentBeRo()->getMyBeRoID();
|
||||||
if(currentState >= GAME_STATE_FLOP && currentState <= GAME_STATE_POST_RIVER)
|
if(currentState >= GAME_STATE_FLOP && currentState <= GAME_STATE_POST_RIVER)
|
||||||
for(int i=0; i<3; i++) {
|
for(int i=0; i<3; i++) {
|
||||||
QPixmap card = QPixmap::fromImage(QImage(myCardDeckStyle->getCurrentDir()+QString::number(tempBoardCardsArray[i], 10)+".png"));
|
QPixmap card = QPixmap::fromImage(QImage(myCardDeckStyle->getCurrentDir()+QString::number(tempBoardCardsArray[i], 10)+".png"));
|
||||||
boardCardsArray[i]->setPixmap(card, FALSE);
|
boardCardsArray[i]->setPixmap(card, FALSE);
|
||||||
}
|
}
|
||||||
@@ -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);
|
||||||
@@ -779,10 +782,11 @@ void gameTableImpl::refreshButton() {
|
|||||||
void gameTableImpl::refreshPlayerName() {
|
void gameTableImpl::refreshPlayerName() {
|
||||||
|
|
||||||
if(myStartWindow->getSession()->getCurrentGame()) {
|
if(myStartWindow->getSession()->getCurrentGame()) {
|
||||||
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;
|
||||||
@@ -821,12 +825,14 @@ void gameTableImpl::refreshPlayerAvatar() {
|
|||||||
|
|
||||||
QPixmap onePix = QPixmap::fromImage(QImage(myAppDataPath +"gfx/gui/misc/1px.png"));
|
QPixmap onePix = QPixmap::fromImage(QImage(myAppDataPath +"gfx/gui/misc/1px.png"));
|
||||||
|
|
||||||
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();
|
||||||
QString countryString(QString(myStartWindow->getSession()->getClientPlayerInfo((*it_c)->getMyUniqueID()).countryCode.c_str()).toLower());
|
for (it_c=seatsList->begin(), seatPlace=0; it_c!=seatsList->end(); it_c++, seatPlace++) {
|
||||||
countryString = QString(":/cflags/cflags/%1.png").arg(countryString);
|
|
||||||
|
QString countryString(QString(myStartWindow->getSession()->getClientPlayerInfo((*it_c)->getMyUniqueID()).countryCode.c_str()).toLower());
|
||||||
|
countryString = QString(":/cflags/cflags/%1.png").arg(countryString);
|
||||||
|
|
||||||
if((*it_c)->getMyActiveStatus()) {
|
if((*it_c)->getMyActiveStatus()) {
|
||||||
|
|
||||||
@@ -889,12 +895,13 @@ void gameTableImpl::refreshAction(int playerID, int playerAction) {
|
|||||||
QStringList actionArray;
|
QStringList actionArray;
|
||||||
actionArray << "" << "fold" << "check" << "call" << "bet" << "raise" << "allin";
|
actionArray << "" << "fold" << "check" << "call" << "bet" << "raise" << "allin";
|
||||||
|
|
||||||
boost::shared_ptr<HandInterface> currentHand = myStartWindow->getSession()->getCurrentGame()->getCurrentHand();
|
boost::shared_ptr<HandInterface> currentHand = myStartWindow->getSession()->getCurrentGame()->getCurrentHand();
|
||||||
|
|
||||||
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) {
|
||||||
@@ -945,10 +952,11 @@ void gameTableImpl::refreshAction(int playerID, int playerAction) {
|
|||||||
|
|
||||||
void gameTableImpl::refreshCash() {
|
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()));
|
||||||
@@ -965,9 +973,10 @@ void gameTableImpl::refreshGroupbox(int playerID, int status) {
|
|||||||
|
|
||||||
if(playerID == -1 || status == -1) {
|
if(playerID == -1 || status == -1) {
|
||||||
|
|
||||||
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.
|
||||||
@@ -1075,9 +1084,10 @@ void gameTableImpl::refreshAll() {
|
|||||||
refreshSet();
|
refreshSet();
|
||||||
refreshButton();
|
refreshButton();
|
||||||
|
|
||||||
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());
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1091,9 +1101,10 @@ void gameTableImpl::refreshChangePlayer() {
|
|||||||
|
|
||||||
refreshSet();
|
refreshSet();
|
||||||
|
|
||||||
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());
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1101,7 +1112,7 @@ void gameTableImpl::refreshChangePlayer() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void gameTableImpl::refreshPot() {
|
void gameTableImpl::refreshPot() {
|
||||||
boost::shared_ptr<HandInterface> currentHand = myStartWindow->getSession()->getCurrentGame()->getCurrentHand();
|
boost::shared_ptr<HandInterface> currentHand = myStartWindow->getSession()->getCurrentGame()->getCurrentHand();
|
||||||
|
|
||||||
textLabel_Sets->setText("$"+QString("%L1").arg(currentHand->getBoard()->getSets()));
|
textLabel_Sets->setText("$"+QString("%L1").arg(currentHand->getBoard()->getSets()));
|
||||||
textLabel_Pot->setText("$"+QString("%L1").arg(currentHand->getBoard()->getPot()));
|
textLabel_Pot->setText("$"+QString("%L1").arg(currentHand->getBoard()->getPot()));
|
||||||
@@ -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()) {
|
||||||
@@ -1371,10 +1383,12 @@ 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);
|
||||||
|
|
||||||
@@ -1641,9 +1655,10 @@ 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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1693,15 +1711,16 @@ 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;
|
||||||
@@ -1711,21 +1730,22 @@ int gameTableImpl::getMyBetAmount() {
|
|||||||
void gameTableImpl::myCall(){
|
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();
|
||||||
@@ -1743,47 +1763,49 @@ 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();
|
||||||
@@ -1805,28 +1827,29 @@ 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();
|
||||||
@@ -1967,13 +1990,14 @@ void gameTableImpl::myActionDone() {
|
|||||||
|
|
||||||
void gameTableImpl::nextPlayerAnimation() {
|
void gameTableImpl::nextPlayerAnimation() {
|
||||||
|
|
||||||
boost::shared_ptr<HandInterface> currentHand = myStartWindow->getSession()->getCurrentGame()->getCurrentHand();
|
boost::shared_ptr<HandInterface> currentHand = myStartWindow->getSession()->getCurrentGame()->getCurrentHand();
|
||||||
|
|
||||||
//refresh Change Player
|
//refresh Change Player
|
||||||
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2045,13 +2069,14 @@ void gameTableImpl::postRiverRunAnimation2() {
|
|||||||
horizontalSlider_bet->setDisabled(TRUE);
|
horizontalSlider_bet->setDisabled(TRUE);
|
||||||
spinBox_betValue->setDisabled(TRUE);
|
spinBox_betValue->setDisabled(TRUE);
|
||||||
|
|
||||||
boost::shared_ptr<HandInterface> currentHand = myStartWindow->getSession()->getCurrentGame()->getCurrentHand();
|
boost::shared_ptr<HandInterface> currentHand = myStartWindow->getSession()->getCurrentGame()->getCurrentHand();
|
||||||
|
|
||||||
bool internetOrNetworkGame = (myStartWindow->getSession()->getGameType() == Session::GAME_TYPE_INTERNET || myStartWindow->getSession()->getGameType() == Session::GAME_TYPE_NETWORK);
|
bool internetOrNetworkGame = (myStartWindow->getSession()->getGameType() == Session::GAME_TYPE_INTERNET || myStartWindow->getSession()->getGameType() == Session::GAME_TYPE_NETWORK);
|
||||||
|
|
||||||
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();
|
||||||
}
|
}
|
||||||
@@ -2101,12 +2126,13 @@ void gameTableImpl::postRiverRunAnimation2() {
|
|||||||
|
|
||||||
void gameTableImpl::postRiverRunAnimation3() {
|
void gameTableImpl::postRiverRunAnimation3() {
|
||||||
|
|
||||||
boost::shared_ptr<HandInterface> currentHand = myStartWindow->getSession()->getCurrentGame()->getCurrentHand();
|
boost::shared_ptr<HandInterface> currentHand = myStartWindow->getSession()->getCurrentGame()->getCurrentHand();
|
||||||
|
|
||||||
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());
|
||||||
}
|
}
|
||||||
@@ -2229,8 +2255,8 @@ 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();
|
||||||
@@ -2273,7 +2301,7 @@ void gameTableImpl::postRiverRunAnimation6() {
|
|||||||
playerNameLabelArray[i]->show();
|
playerNameLabelArray[i]->show();
|
||||||
}
|
}
|
||||||
|
|
||||||
boost::shared_ptr<HandInterface> currentHand = myStartWindow->getSession()->getCurrentGame()->getCurrentHand();
|
boost::shared_ptr<HandInterface> currentHand = myStartWindow->getSession()->getCurrentGame()->getCurrentHand();
|
||||||
|
|
||||||
refreshCash();
|
refreshCash();
|
||||||
refreshPot();
|
refreshPot();
|
||||||
@@ -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());
|
||||||
@@ -2325,14 +2354,16 @@ void gameTableImpl::postRiverRunAnimation6() {
|
|||||||
|
|
||||||
void gameTableImpl::showHoleCards(unsigned playerId, bool allIn)
|
void gameTableImpl::showHoleCards(unsigned playerId, bool allIn)
|
||||||
{
|
{
|
||||||
boost::shared_ptr<HandInterface> currentHand = myStartWindow->getSession()->getCurrentGame()->getCurrentHand();
|
boost::shared_ptr<HandInterface> currentHand = myStartWindow->getSession()->getCurrentGame()->getCurrentHand();
|
||||||
//TempArrays
|
//TempArrays
|
||||||
QPixmap tempCardsPixmapArray[2];
|
QPixmap tempCardsPixmapArray[2];
|
||||||
int tempCardsIntArray[2];
|
int tempCardsIntArray[2];
|
||||||
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);
|
||||||
@@ -2359,18 +2390,19 @@ void gameTableImpl::showHoleCards(unsigned playerId, bool allIn)
|
|||||||
|
|
||||||
void gameTableImpl::flipHolecardsAllIn() {
|
void gameTableImpl::flipHolecardsAllIn() {
|
||||||
|
|
||||||
boost::shared_ptr<HandInterface> currentHand = myStartWindow->getSession()->getCurrentGame()->getCurrentHand();
|
boost::shared_ptr<HandInterface> currentHand = myStartWindow->getSession()->getCurrentGame()->getCurrentHand();
|
||||||
|
|
||||||
if(!flipHolecardsAllInAlreadyDone) {
|
if(!flipHolecardsAllInAlreadyDone) {
|
||||||
//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());
|
||||||
@@ -2563,7 +2595,7 @@ void gameTableImpl::keyPressEvent ( QKeyEvent * event ) {
|
|||||||
|
|
||||||
// cout << event->key() << endl;
|
// cout << event->key() << endl;
|
||||||
|
|
||||||
//bool ctrlPressed = FALSE;
|
//bool ctrlPressed = FALSE;
|
||||||
|
|
||||||
if (event->key() == Qt::Key_Enter || event->key() == Qt::Key_Return ) /*ENTER*/ {
|
if (event->key() == Qt::Key_Enter || event->key() == Qt::Key_Return ) /*ENTER*/ {
|
||||||
if(spinBox_betValue->hasFocus()) {
|
if(spinBox_betValue->hasFocus()) {
|
||||||
@@ -2607,7 +2639,7 @@ void gameTableImpl::keyPressEvent ( QKeyEvent * event ) {
|
|||||||
if (event->key() == Qt::Key_Shift) {
|
if (event->key() == Qt::Key_Shift) {
|
||||||
if(myStartWindow->getSession()->getGameType() == Session::GAME_TYPE_LOCAL) {
|
if(myStartWindow->getSession()->getGameType() == Session::GAME_TYPE_LOCAL) {
|
||||||
pushButton_break->click();
|
pushButton_break->click();
|
||||||
//ctrlPressed = TRUE;
|
//ctrlPressed = TRUE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// if (event->key() == Qt::Key_Escape && (myActionIsBet || myActionIsRaise)) {
|
// if (event->key() == Qt::Key_Escape && (myActionIsBet || myActionIsRaise)) {
|
||||||
@@ -2876,7 +2908,7 @@ void gameTableImpl::mouseOverFlipCards(bool front) {
|
|||||||
|
|
||||||
void gameTableImpl::updateMyButtonsState(int mode) {
|
void gameTableImpl::updateMyButtonsState(int mode) {
|
||||||
|
|
||||||
boost::shared_ptr<HandInterface> currentHand = myStartWindow->getSession()->getCurrentGame()->getCurrentHand();
|
boost::shared_ptr<HandInterface> currentHand = myStartWindow->getSession()->getCurrentGame()->getCurrentHand();
|
||||||
|
|
||||||
if(currentHand->getLastPlayersTurn() == 0) {
|
if(currentHand->getLastPlayersTurn() == 0) {
|
||||||
myButtonsCheckable(FALSE);
|
myButtonsCheckable(FALSE);
|
||||||
@@ -2920,7 +2952,7 @@ void gameTableImpl::clearMyButtons() {
|
|||||||
void gameTableImpl::myButtonsCheckable(bool state) {
|
void gameTableImpl::myButtonsCheckable(bool state) {
|
||||||
|
|
||||||
Game *currentGame = myStartWindow->getSession()->getCurrentGame();
|
Game *currentGame = myStartWindow->getSession()->getCurrentGame();
|
||||||
boost::shared_ptr<HandInterface> currentHand = currentGame->getCurrentHand();
|
boost::shared_ptr<HandInterface> currentHand = currentGame->getCurrentHand();
|
||||||
|
|
||||||
if(state) {
|
if(state) {
|
||||||
//checkable
|
//checkable
|
||||||
@@ -3006,8 +3038,8 @@ void gameTableImpl::changeSpinBoxBetValue(int value) {
|
|||||||
betSliderChangedByInput = FALSE;
|
betSliderChangedByInput = FALSE;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
int temp;
|
int temp;
|
||||||
if(horizontalSlider_bet->maximum() <= 1000 ) {
|
if(horizontalSlider_bet->maximum() <= 1000 ) {
|
||||||
temp = (int)((value/10)*10);
|
temp = (int)((value/10)*10);
|
||||||
}
|
}
|
||||||
else if(horizontalSlider_bet->maximum() > 1000 && horizontalSlider_bet->maximum() <= 10000) {
|
else if(horizontalSlider_bet->maximum() > 1000 && horizontalSlider_bet->maximum() <= 10000) {
|
||||||
@@ -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));
|
||||||
|
|||||||
@@ -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 {
|
||||||
@@ -391,9 +394,12 @@ void guiLog::logNewBlindsSetsMsg(int sbSet, int bbSet, QString sbName, QString b
|
|||||||
logFileStreamString += bbName+" ($"+QString::number(bbSet,10)+")";
|
logFileStreamString += bbName+" ($"+QString::number(bbSet,10)+")";
|
||||||
|
|
||||||
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());
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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) {
|
||||||
|
|
||||||
|
|||||||
@@ -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
File diff suppressed because it is too large
Load Diff
+471
-411
File diff suppressed because it is too large
Load Diff
+466
-411
File diff suppressed because it is too large
Load Diff
+466
-411
File diff suppressed because it is too large
Load Diff
+119
-5
@@ -268,6 +268,14 @@ Kontaktujte, prosím, výrobce stylu herního stolu na "%4".</translat
|
|||||||
<source>You will no longer receive chat messages or game invitations from this user.<br>Do you really want to put player <b>%1</b> on ignore list?</source>
|
<source>You will no longer receive chat messages or game invitations from this user.<br>Do you really want to put player <b>%1</b> on ignore list?</source>
|
||||||
<translation>Od tohoto uživatele již nebudete přijímat žádné zprávy, ani pozvánky do her.<br>Opravdu chcete přidat hráče <b>%1</b> na seznam ignorovaných?</translation>
|
<translation>Od tohoto uživatele již nebudete přijímat žádné zprávy, ani pozvánky do her.<br>Opravdu chcete přidat hráče <b>%1</b> 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 "%1" 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; }
|
|||||||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> - basic architecture, network development, windows package, MacOS package</p>
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> - basic architecture, network development, windows package, MacOS package</p>
|
||||||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> Oskar Lindqvist (<a href="mailto:tranberry@pokerth.net"><span style=" text-decoration: underline; color:#0000ff;">tranberry@pokerth.net</span></a>)</p>
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> Oskar Lindqvist (<a href="mailto:tranberry@pokerth.net"><span style=" text-decoration: underline; color:#0000ff;">tranberry@pokerth.net</span></a>)</p>
|
||||||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> - initial gui graphics design</p></td></tr></table></body></html></source>
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> - initial gui graphics design</p></td></tr></table></body></html></source>
|
||||||
<translation><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
<translation type="obsolete"><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
||||||
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
||||||
p, li { white-space: pre-wrap; }
|
p, li { white-space: pre-wrap; }
|
||||||
</style></head><body style=" font-family:'Nimbus Sans L'; font-size:8pt; font-weight:400; font-style:normal;">
|
</style></head><body style=" font-family:'Nimbus Sans L'; font-size:8pt; font-weight:400; font-style:normal;">
|
||||||
@@ -619,7 +627,7 @@ p, li { white-space: pre-wrap; }
|
|||||||
<tr>
|
<tr>
|
||||||
<td style="border: none;">
|
<td style="border: none;">
|
||||||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">translator name - mail address</p></td></tr></table></body></html></source>
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">translator name - mail address</p></td></tr></table></body></html></source>
|
||||||
<translation><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
<translation type="obsolete"><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
||||||
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
||||||
p, li { white-space: pre-wrap; }
|
p, li { white-space: pre-wrap; }
|
||||||
</style></head><body style=" font-family:'Nimbus Sans L'; font-size:8pt; font-weight:400; font-style:normal;">
|
</style></head><body style=" font-family:'Nimbus Sans L'; font-size:8pt; font-weight:400; font-style:normal;">
|
||||||
@@ -654,7 +662,7 @@ p, li { white-space: pre-wrap; }
|
|||||||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> - for startwindow background gfx and danuxi1 table background</p>
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> - for startwindow background gfx and danuxi1 table background</p>
|
||||||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">heyn</span></p>
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">heyn</span></p>
|
||||||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> - for moderating forum and organise bugtracker and feature requests</p></td></tr></table></body></html></source>
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> - for moderating forum and organise bugtracker and feature requests</p></td></tr></table></body></html></source>
|
||||||
<translation><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
<translation type="obsolete"><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
||||||
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
||||||
p, li { white-space: pre-wrap; }
|
p, li { white-space: pre-wrap; }
|
||||||
</style></head><body style=" font-family:'Nimbus Sans L'; font-size:8pt; font-weight:400; font-style:normal;">
|
</style></head><body style=" font-family:'Nimbus Sans L'; font-size:8pt; font-weight:400; font-style:normal;">
|
||||||
@@ -680,6 +688,70 @@ p, li { white-space: pre-wrap; }
|
|||||||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">heyn</span></p>
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">heyn</span></p>
|
||||||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> - za moderování fóra a organizaci bugtrackeru a seznamu požadovaných vlastností</p></td></tr></table></body></html></translation>
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> - za moderování fóra a organizaci bugtrackeru a seznamu požadovaných vlastností</p></td></tr></table></body></html></translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
||||||
|
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
||||||
|
p, li { white-space: pre-wrap; }
|
||||||
|
</style></head><body style=" font-family:'Nimbus Sans L'; font-size:8pt; font-weight:400; font-style:normal;">
|
||||||
|
<table border="0" style="-qt-table-type: root; margin-top:4px; margin-bottom:4px; margin-left:4px; margin-right:4px;">
|
||||||
|
<tr>
|
||||||
|
<td style="border: none;">
|
||||||
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Project page: </span></p>
|
||||||
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> <a href="http://www.pokerth.net"><span style=" text-decoration: underline; color:#0000ff;">http://www.pokerth.net</span></a></p>
|
||||||
|
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p>
|
||||||
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">IRC: </span></p>
|
||||||
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> #pokerth (irc.freenode.net)</p>
|
||||||
|
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p>
|
||||||
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Authors: </span></p>
|
||||||
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> Felix Hammer (<a href="mailto:doitux@pokerth.net"><span style=" text-decoration: underline; color:#0000ff;">doitux@pokerth.net</span></a>)</p>
|
||||||
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> - initial idea, basic architecture, gui implementation, gui graphics editing, linux package</p>
|
||||||
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> Florian Thauer (<a href="mailto:floty@pokerth.net"><span style=" text-decoration: underline; color:#0000ff;">floty@pokerth.net</span></a>)</p>
|
||||||
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> - initial idea, basic architecture, engine development</p>
|
||||||
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> Lothar May (<a href="mailto:lotodore@pokerth.net"><span style=" text-decoration: underline; color:#0000ff;">lotodore@pokerth.net</span></a>)</p>
|
||||||
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> - basic architecture, network development, windows package, MacOS package</p>
|
||||||
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> Oskar Lindqvist (<a href="mailto:tranberry@pokerth.net"><span style=" text-decoration: underline; color:#0000ff;">tranberry@pokerth.net</span></a>)</p>
|
||||||
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> - initial gui graphics design</p></td></tr></table></body></html></source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
||||||
|
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
||||||
|
p, li { white-space: pre-wrap; }
|
||||||
|
</style></head><body style=" font-family:'Nimbus Sans L'; font-size:8pt; font-weight:400; font-style:normal;">
|
||||||
|
<table border="0" style="-qt-table-type: root; margin-top:4px; margin-bottom:4px; margin-left:4px; margin-right:4px;">
|
||||||
|
<tr>
|
||||||
|
<td style="border: none;">
|
||||||
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">translator name - mail address</p></td></tr></table></body></html></source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
||||||
|
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
||||||
|
p, li { white-space: pre-wrap; }
|
||||||
|
</style></head><body style=" font-family:'Nimbus Sans L'; font-size:8pt; font-weight:400; font-style:normal;">
|
||||||
|
<table border="0" style="-qt-table-type: root; margin-top:4px; margin-bottom:4px; margin-left:4px; margin-right:4px;">
|
||||||
|
<tr>
|
||||||
|
<td style="border: none;">
|
||||||
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><a href="http://commons.wikimedia.org/wiki/Main_Page"><span style=" font-weight:600; text-decoration: underline; color:#0000ff;">Wikimedia Commons</span></a></p>
|
||||||
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;"> - </span>for different popular avatar picture resources</p>
|
||||||
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Benedikt, Erhard, Felix, Florian, Linus, Lothar, Steffi, Caro</span></p>
|
||||||
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> - for people avatar pictures</p>
|
||||||
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">ZeiZei</span> </p>
|
||||||
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> - for &quot;misc&quot; avatar pictures</p>
|
||||||
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><a href="http://kde-look.org/"><span style=" font-weight:600; text-decoration: underline; color:#0000ff;">http://kde-look.org/</span></a></p>
|
||||||
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> - for different gpl licensed sounds</p>
|
||||||
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">doc_dos</span></p>
|
||||||
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> - for self recorded chip sounds</p>
|
||||||
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">thiger, dunkanx, BerndA, coldz</span></p>
|
||||||
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> - for different patches</p>
|
||||||
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">kraut</span></p>
|
||||||
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> - for internet-game-server hosting and administration</p>
|
||||||
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">danuxi</span></p>
|
||||||
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> - for startwindow background gfx and danuxi1 table background</p>
|
||||||
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">heyn</span></p>
|
||||||
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> - for moderating forum and organise bugtracker and feature requests</p></td></tr></table></body></html></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 "Pryč" z panelu napravo.</translation>
|
Pokud chcete ve hře zůstat, ale potřebujete si odskočit, využijte funkci "Pryč" 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
File diff suppressed because it is too large
Load Diff
+474
-419
File diff suppressed because it is too large
Load Diff
+536
-407
File diff suppressed because it is too large
Load Diff
+474
-419
File diff suppressed because it is too large
Load Diff
+536
-407
File diff suppressed because it is too large
Load Diff
+474
-419
File diff suppressed because it is too large
Load Diff
+556
-412
File diff suppressed because it is too large
Load Diff
+533
-468
File diff suppressed because it is too large
Load Diff
+536
-407
File diff suppressed because it is too large
Load Diff
+536
-407
File diff suppressed because it is too large
Load Diff
+466
-411
File diff suppressed because one or more lines are too long
+474
-419
File diff suppressed because it is too large
Load Diff
+136
-20
File diff suppressed because one or more lines are too long
+536
-407
File diff suppressed because it is too large
Load Diff
+491
-436
File diff suppressed because it is too large
Load Diff
+472
-407
File diff suppressed because it is too large
Load Diff
+474
-419
File diff suppressed because it is too large
Load Diff
+466
-411
File diff suppressed because it is too large
Load Diff
+466
-411
File diff suppressed because it is too large
Load Diff
+495
-440
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user