chiark / gitweb /
WIP island determination; ocr resolver can make query to user
[ypp-sc-tools.main.git] / pctb / yppsc-resolver-pixoptions
1 #!/usr/bin/perl -w
2
3 # helper program for determining pixmap resolution options
4
5 # This is part of ypp-sc-tools, a set of third-party tools for assisting
6 # players of Yohoho Puzzle Pirates.
7 #
8 # Copyright (C) 2009 Ian Jackson <ijackson@chiark.greenend.org.uk>
9 #
10 # This program is free software: you can redistribute it and/or modify
11 # it under the terms of the GNU General Public License as published by
12 # the Free Software Foundation, either version 3 of the License, or
13 # (at your option) any later version.
14 #
15 # This program is distributed in the hope that it will be useful,
16 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 # GNU General Public License for more details.
19 #
20 # You should have received a copy of the GNU General Public License
21 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
22 #
23 # Yohoho and Puzzle Pirates are probably trademarks of Three Rings and
24 # are used without permission.  This program is not endorsed or
25 # sponsored by Three Rings.
26
27 @ARGV==1 or die "You probably don't want to run this program directly.\n";
28 our ($which) = shift @ARGV;
29
30 $which =~ s/\W//g;
31
32 &{"main__$which"}();
33
34 sub main__sunshinewidget () {
35     print <<END
36 Land {On land} {
37     Crew   Crew
38     Shoppe Shoppe
39     Ye     Ye
40     Booty  Booty
41     Ahoy!  Ahoy!
42 }
43 Ship {On board a ship} {
44     Crew   Crew
45     Vessel Vessel
46     Ye     Ye
47     Booty  Booty
48     Ahoy!  Ahoy!
49 }
50 END
51     or die $!;
52 }