ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/kgsueme/kgsueme/board.pl
(Generate patch)

Comparing kgsueme/kgsueme/board.pl (file contents):
Revision 1.15 by pcg, Tue Jul 22 21:24:50 2003 UTC vs.
Revision 1.16 by pcg, Fri Jul 25 03:50:33 2003 UTC

1package Gtk2::GoBoard; 1package Gtk2::GoBoard;
2 2
3use Scalar::Util; 3use Scalar::Util;
4 4
5use KGS::Constants;
6use KGS::Game::Board;
7
8use POSIX qw(ceil);
9
5use Gtk2; 10use Gtk2;
11
6use Glib::Object::Subclass 12use Glib::Object::Subclass
7 Gtk2::AspectFrame, 13 Gtk2::AspectFrame,
8 properties => [ 14 properties => [
9 Glib::ParamSpec->IV ( 15 Glib::ParamSpec->IV (
10 "size", 16 "size",
13 2, 38, 19, 19 2, 38, 19,
14 [qw(construct-only writable readable)], 20 [qw(construct-only writable readable)],
15 ), 21 ),
16 ]; 22 ];
17 23
18use KGS::Constants;
19use KGS::Game::Board;
20
21use POSIX qw(ceil);
22
23sub TRAD_WIDTH (){ 42.42 } # traditional board width 24sub TRAD_WIDTH (){ 42.42 } # traditional board width
24sub TRAD_HEIGHT (){ 45.45 } # traditional board height 25sub TRAD_HEIGHT (){ 45.45 } # traditional board height
25sub TRAD_SIZE_B (){ 2.18 } # traditional black stone size 26sub TRAD_SIZE_B (){ 2.18 } # traditional black stone size
26sub TRAD_SIZE_W (){ 2.12 } # traditional white stone size 27sub TRAD_SIZE_W (){ 2.12 } # traditional white stone size
27 28

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines