Commit graph

1066 commits

Author SHA1 Message Date
Olivier Teulière
c4635c66f9 RackWidget: better-looking drag & drop, inspired by Firefox tabs 2012-12-29 19:36:38 +01:00
Olivier Teulière
66615b54ac TileWidget: remove a duplicated line 2012-12-29 19:36:38 +01:00
Olivier Teulière
b070336886 NewGame: set tooltips for the game modes 2012-12-29 17:51:52 +01:00
Olivier Teulière
57a2c0690f Topping: keep track of all the moves played by the player.
The timing information is currently not used at all.
2012-12-29 17:51:52 +01:00
Olivier Teulière
681a7b28cb New topping mode (very beginning) 2012-12-29 17:51:16 +01:00
Olivier Teulière
5441007db1 New BoardLayout class to wrap the board layout (size and special squares).
Until now there is no user-visible change, but it should make it much
easier to add custom layouts.
2012-12-29 17:50:18 +01:00
Olivier Teulière
c138947138 Move Duplicate::setGameAndPlayersRack() to Game 2012-12-29 17:49:25 +01:00
Olivier Teulière
c775682881 RackWidget: hide tiles of the word being played.
This gives the nice impression that tiles are moved from the rack to the
board.
2012-12-29 17:48:15 +01:00
Olivier Teulière
fb8e464d7c Display the word being played on the board 2012-12-29 17:46:18 +01:00
Olivier Teulière
2c3cb83e0a Allow more types of invalid input when previewing a move being played 2012-12-29 17:46:18 +01:00
Olivier Teulière
a9f5935285 BoardWidget: preliminary version of played word preview 2012-12-29 17:46:18 +01:00
Olivier Teulière
8d85df630b PlayModel now uses a Move internally 2012-12-29 17:46:18 +01:00
Olivier Teulière
8acebbc889 Game::checkPlayedWord() now takes a Move instead of a Round 2012-12-29 17:46:18 +01:00
Olivier Teulière
0b9d8ecfbb RackWidget: initial support for drag & drop of tiles in the rack 2012-12-29 17:46:18 +01:00
Olivier Teulière
d2b39b3a0a Add a visual rack below the main board 2012-12-29 17:46:17 +01:00
Olivier Teulière
dc3535c953 Coord: do not refuse lowercase coordinates.
It fixes a regression introduced in bedcc56.
2012-12-29 17:46:17 +01:00
Olivier Teulière
d55b3b2bdf Use toLower() and toUpper() 2012-12-29 17:46:17 +01:00
Olivier Teulière
b039d55c81 New utility functions: toUpper() and toLower() 2012-12-29 17:46:17 +01:00
Olivier Teulière
05605a63ae Coord: remove useless code 2012-12-29 17:46:17 +01:00
Olivier Teulière
3fc1b51f6b GameIO: remove a useless parameter 2012-12-29 17:46:14 +01:00
Olivier Teulière
655169fda6 Remove a useless include 2012-12-29 17:45:44 +01:00
Olivier Teulière
71b0a61547 Fix a typo 2012-12-29 17:44:39 +01:00
Olivier Teulière
0097519e96 Turn: new findAllMatchingCmd() utility method 2012-12-29 17:44:39 +01:00
Olivier Teulière
19387540cd Arbitration: new search filter, filtering points 2012-12-29 17:44:39 +01:00
Olivier Teulière
487dd213ce New game dialog: disable the up/down buttons when there is no selection 2012-12-29 17:44:39 +01:00
Olivier Teulière
844105a8e8 New game dialog: allow moving the selected players up and down 2012-12-29 17:44:39 +01:00
Olivier Teulière
d686f1a083 PlayModel: add a moveChanged() signal for convenience 2012-12-18 16:03:44 +01:00
Olivier Teulière
7f5651b4bb RackWidget: add a setRack() slot 2012-12-18 16:03:44 +01:00
Olivier Teulière
bedcc561f3 Coord: do not accept invalid strings starting with valid coordinates 2012-12-18 16:03:44 +01:00
Olivier Teulière
536da10a97 Fix a typo 2012-12-18 16:03:44 +01:00
Olivier Teulière
3f269e5bd4 PlayModel: support for word changes in addition to coordinates.
This is not used anywhere yet.
2012-12-18 16:03:37 +01:00
Olivier Teulière
1e551207fb PlayModel: do not emit the coordChanged() signal when no change occurred 2012-12-18 01:26:15 +01:00
Olivier Teulière
c31b789fc5 PlayModel: remove a useless getter 2012-12-18 01:00:53 +01:00
Olivier Teulière
3f10e9faba PlayModel: exchange the order of the arguments for the coordChanged() signal 2012-12-18 00:57:04 +01:00
Olivier Teulière
c1332760d7 Rename CoordModel as PlayModel 2012-12-18 00:48:14 +01:00
Olivier Teulière
4bcd106577 RackWidget: center the tiles in the widget 2012-12-17 22:53:24 +01:00
Olivier Teulière
c21c109ddb BoardWidget: center horizontally 2012-12-17 22:53:07 +01:00
Olivier Teulière
bf5ae9fc91 TileLayout: fix the row offset on lines other than the first one 2012-12-17 22:32:44 +01:00
Olivier Teulière
b5c36bed26 TileLayout: fix a bug (the rect offset was not taken into account) 2012-12-17 20:20:18 +01:00
Olivier Teulière
db6e81a288 Stats reports: new option to embed the CSS into the HTML file 2012-12-14 10:58:25 +01:00
Olivier Teulière
f38c7361c1 Give credit for the stats report design 2012-12-13 21:37:13 +01:00
Olivier Teulière
20c93940ab Ignore .pyc files 2012-12-13 21:34:29 +01:00
Olivier Teulière
6fbd7febb0 Reports: initial version, with 2 reports.
The reports are already usable, but the statistics report could be
improved.
2012-12-11 21:33:47 +01:00
Olivier Teulière
50a2ab7996 Arbitration: disable solo-related actions when automatic handling is active 2012-12-06 00:11:07 +01:00
Olivier Teulière
2cc0b2bc39 Preferences: add a checkbox for the new automatic solos handling option 2012-12-06 00:10:29 +01:00
Olivier Teulière
19a93988ad Arbitration: new option to handle solos automatically.
The option is not yet accessible from the interface.
2012-12-05 23:56:20 +01:00
Olivier Teulière
4d38c99336 Move Arbitration::getPlayerEventCmd() into Duplicate 2012-12-05 22:05:31 +01:00
Olivier Teulière
8b3d6b9872 Use BOOST_FOREACH instead of an index-based loop 2012-12-05 21:23:25 +01:00
Olivier Teulière
e34cc25fe1 Move commands to the game/cmd/ sub-directory.
The abstract Command class (from which all the others inherit)
is still game/, to hide the cmd/ subdir from most clients.
2012-12-05 20:26:47 +01:00
Olivier Teulière
bea6a41cd4 Small simplification 2012-11-29 19:47:19 +01:00