[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdenonbeta/kttt/src
From: Albert Astals Cid <tsdgeos () terra ! es>
Date: 2003-09-12 16:13:04
[Download RAW message or body]
CVS commit by aacid:
Remove a useless slot.
Make the computer player move when it is the first after a settings change and a \
started but not played game
M +32 -32 board.h 1.6
M +2 -1 boardwidget.cpp 1.8
M +15 -15 boardwidget.h 1.5
M +4 -10 kttt.cpp 1.7
M +5 -6 kttt.h 1.4
--- kdenonbeta/kttt/src/boardwidget.cpp #1.7:1.8
@@ -168,4 +168,5 @@ void boardWidget::readSettings()
player1 = newPlayer1;
player2 = newPlayer2;
+ if (player1 == COMPUTER) moveComputer();
}
}
--- kdenonbeta/kttt/src/kttt.cpp #1.6:1.7
@@ -31,5 +31,4 @@ kttt::kttt() : KMainWindow(0, "kttt")
show();
connect(p_board, SIGNAL(statusBarMessage(const QString&)), statusBar(), \
SLOT(message(const QString&)));
- connect(p_board, SIGNAL(gameEnded()), this, SLOT(gameEnded()));
connect(p_board, SIGNAL(playerwin(int, bool)), this, SLOT(playerwin(int, \
bool))); connect(p_board, SIGNAL(win()), this, SLOT(humanwin()));
@@ -58,9 +57,4 @@ void kttt::quitGame()
}
-void kttt::gameEnded()
-{
- endGameAction -> setEnabled(false);
-}
-
void kttt::playerwin(int number, bool human)
{
--- kdenonbeta/kttt/src/kttt.h #1.3:1.4
@@ -29,5 +29,4 @@ Q_OBJECT
void quitGame();
- void gameEnded();
void playerwin(int number, bool human);
void humanwin();
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic