simon-svn: puzzles: simon
Commits to Tartarus CVS repository.
tartarus-commits at lists.tartarus.org
Sat Sep 6 10:27:56 BST 2008
SVN root: svn://svn.tartarus.org/sgt
Changes by: simon
Revision: 8161
Date: 2008-09-06 10:27:56 +0100 (Sat, 06 Sep 2008)
Log message (18 lines):
New infrastructure feature. Games are now permitted to be
_conditionally_ able to format the current puzzle as text to be sent
to the clipboard. For instance, if a game were to support playing on
a square grid and on other kinds of grid such as hexagonal, then it
might reasonably feel that only the former could be sensibly
rendered in ASCII art; so it can now arrange for the "Copy" menu
item to be greyed out depending on the game_params.
To do this I've introduced a new backend function
(can_format_as_text_now()), and renamed the existing static backend
field "can_format_as_text" to "can_format_as_text_ever". The latter
will cause compile errors for anyone maintaining a third-party front
end; if any such person is reading this, I apologise to them for the
inconvenience, but I did do it deliberately so that they'd know to
update their front end.
As yet, no checked-in game actually uses this feature; all current
games can still either copy always or copy never.
Modified files:
U puzzles/blackbox.c
U puzzles/bridges.c
U puzzles/cube.c
U puzzles/devel.but
U puzzles/dominosa.c
U puzzles/fifteen.c
U puzzles/filling.c
U puzzles/flip.c
U puzzles/galaxies.c
U puzzles/gtk.c
U puzzles/guess.c
U puzzles/inertia.c
U puzzles/lightup.c
U puzzles/loopy.c
U puzzles/map.c
U puzzles/midend.c
U puzzles/mines.c
U puzzles/net.c
U puzzles/netslide.c
U puzzles/nullgame.c
U puzzles/osx.m
U puzzles/pattern.c
U puzzles/pegs.c
U puzzles/puzzles.h
U puzzles/rect.c
U puzzles/samegame.c
U puzzles/sixteen.c
U puzzles/slant.c
U puzzles/solo.c
U puzzles/tents.c
U puzzles/twiddle.c
U puzzles/unequal.c
U puzzles/unfinished/pearl.c
U puzzles/unfinished/separate.c
U puzzles/unfinished/slide.c
U puzzles/unfinished/sokoban.c
U puzzles/untangle.c
U puzzles/windows.c
Links:
http://svn.tartarus.org/sgt/?rev=8161&view=rev
http://svn.tartarus.org/sgt/puzzles/blackbox.c?rev=8161&r1=8160&r2=8161
http://svn.tartarus.org/sgt/puzzles/bridges.c?rev=8161&r1=8160&r2=8161
http://svn.tartarus.org/sgt/puzzles/cube.c?rev=8161&r1=8160&r2=8161
http://svn.tartarus.org/sgt/puzzles/devel.but?rev=8161&r1=8160&r2=8161
http://svn.tartarus.org/sgt/puzzles/dominosa.c?rev=8161&r1=8160&r2=8161
http://svn.tartarus.org/sgt/puzzles/fifteen.c?rev=8161&r1=8160&r2=8161
http://svn.tartarus.org/sgt/puzzles/filling.c?rev=8161&r1=8160&r2=8161
http://svn.tartarus.org/sgt/puzzles/flip.c?rev=8161&r1=8160&r2=8161
http://svn.tartarus.org/sgt/puzzles/galaxies.c?rev=8161&r1=8160&r2=8161
http://svn.tartarus.org/sgt/puzzles/gtk.c?rev=8161&r1=8160&r2=8161
http://svn.tartarus.org/sgt/puzzles/guess.c?rev=8161&r1=8160&r2=8161
http://svn.tartarus.org/sgt/puzzles/inertia.c?rev=8161&r1=8160&r2=8161
http://svn.tartarus.org/sgt/puzzles/lightup.c?rev=8161&r1=8160&r2=8161
http://svn.tartarus.org/sgt/puzzles/loopy.c?rev=8161&r1=8160&r2=8161
http://svn.tartarus.org/sgt/puzzles/map.c?rev=8161&r1=8160&r2=8161
http://svn.tartarus.org/sgt/puzzles/midend.c?rev=8161&r1=8160&r2=8161
http://svn.tartarus.org/sgt/puzzles/mines.c?rev=8161&r1=8160&r2=8161
http://svn.tartarus.org/sgt/puzzles/net.c?rev=8161&r1=8160&r2=8161
http://svn.tartarus.org/sgt/puzzles/netslide.c?rev=8161&r1=8160&r2=8161
http://svn.tartarus.org/sgt/puzzles/nullgame.c?rev=8161&r1=8160&r2=8161
http://svn.tartarus.org/sgt/puzzles/osx.m?rev=8161&r1=8160&r2=8161
http://svn.tartarus.org/sgt/puzzles/pattern.c?rev=8161&r1=8160&r2=8161
http://svn.tartarus.org/sgt/puzzles/pegs.c?rev=8161&r1=8160&r2=8161
http://svn.tartarus.org/sgt/puzzles/puzzles.h?rev=8161&r1=8160&r2=8161
http://svn.tartarus.org/sgt/puzzles/rect.c?rev=8161&r1=8160&r2=8161
http://svn.tartarus.org/sgt/puzzles/samegame.c?rev=8161&r1=8160&r2=8161
http://svn.tartarus.org/sgt/puzzles/sixteen.c?rev=8161&r1=8160&r2=8161
http://svn.tartarus.org/sgt/puzzles/slant.c?rev=8161&r1=8160&r2=8161
http://svn.tartarus.org/sgt/puzzles/solo.c?rev=8161&r1=8160&r2=8161
http://svn.tartarus.org/sgt/puzzles/tents.c?rev=8161&r1=8160&r2=8161
http://svn.tartarus.org/sgt/puzzles/twiddle.c?rev=8161&r1=8160&r2=8161
http://svn.tartarus.org/sgt/puzzles/unequal.c?rev=8161&r1=8160&r2=8161
http://svn.tartarus.org/sgt/puzzles/unfinished/pearl.c?rev=8161&r1=8160&r2=8161
http://svn.tartarus.org/sgt/puzzles/unfinished/separate.c?rev=8161&r1=8160&r2=8161
http://svn.tartarus.org/sgt/puzzles/unfinished/slide.c?rev=8161&r1=8160&r2=8161
http://svn.tartarus.org/sgt/puzzles/unfinished/sokoban.c?rev=8161&r1=8160&r2=8161
http://svn.tartarus.org/sgt/puzzles/untangle.c?rev=8161&r1=8160&r2=8161
http://svn.tartarus.org/sgt/puzzles/windows.c?rev=8161&r1=8160&r2=8161
More information about the tartarus-commits
mailing list