Michael Catanzaro
6d95ad3b3a
Handle pause correctly before the game has started
...
Since the clock doesn't start until after White's first move, it
shouldn't be possible to pause/unpause the game during this time,
either. This means the pause button must be insensitive, and we don't
want to see any warnings if we unfocus the window prior to making the
first move.
2013-08-03 14:28:34 -05:00
Michael Catanzaro
91810128c6
ChessClock: verify clock state before (un)pause
...
If the clock is active, don't allow unpause. If it's not, don't allow
unpause. Checking if the timer exists is not sufficient here.
2013-08-03 10:04:04 -05:00
Michael Catanzaro
313daeeca3
ChessClock pause/unpause were reversed
...
This went unnoticed because they were used reversed, due to the
confusing parameter name in GnomeChess.set_paused_state.
The previous commit was more prescient than I'd hoped....
2013-08-03 09:24:40 -05:00
Michael Catanzaro
22db4e6d35
trivial: add copyright notice to chess-clock.vala
...
Having just refactored this file, I don't want Robert to take all the
blame for what I've done :)
2013-08-02 22:37:57 -05:00
Michael Catanzaro
8ee7af6608
Make ChessClock class harder to misuse
...
This class has never really been safe. Pay off some technical debt.
https://bugzilla.gnome.org/show_bug.cgi?id=701578
2013-08-02 08:19:31 -05:00
Plamena Manolova
f6eb2afa07
game: Add pause game button
...
Adds a pause game button as well as the functionality
to pause/start game when the game window loses/gains focus.
https://bugzilla.gnome.org/show_bug.cgi?id=701578
2013-08-02 08:19:31 -05:00
Robert Ancell
156fd11604
Add license headers
2013-07-08 09:14:29 +12:00
Michael Catanzaro
c49284e494
Chess clock should start after the first move
...
White should have unlimited time for his first move.
2013-05-21 21:24:59 -05:00
Michael Catanzaro
e028fa89f6
ChessClock: _active_color should be private
2013-05-21 18:09:17 -05:00
Robert Ancell
84323c51aa
Get a chess clock working
2011-01-07 15:20:27 +11:00
Robert Ancell
f91833db8a
Start work on a chess clock
2011-01-07 09:10:29 +11:00