Commit graph

293 commits

Author SHA1 Message Date
ehouse
268442b782 use __VA_ARGS__ in debug macros 2006-02-17 07:29:25 +00:00
ehouse
a8add11453 clean up usage 2006-02-17 07:28:41 +00:00
ehouse
de830f328f don't include in curses-only build 2006-02-17 07:28:17 +00:00
ehouse
e9499cb4ed formatting only 2006-02-17 07:27:58 +00:00
ehouse
5aeb5dc6fa makefile cleanup 2006-02-17 07:27:36 +00:00
ehouse
92485783af update email address in header comments: no code change 2006-01-08 01:25:02 +00:00
ehouse
95005e45eb don't connect to relay unless have something to send 2005-10-30 16:28:52 +00:00
ehouse
d29937a734 add a const 2005-10-30 05:06:41 +00:00
ehouse
a422f21ad5 add error message; cast to avoid compile warnings 2005-10-30 05:06:23 +00:00
ehouse
880b626070 add a few consts 2005-10-30 05:05:45 +00:00
ehouse
5e693ee022 fix misspelling; tweak error messages 2005-10-19 03:21:19 +00:00
ehouse
8c8babc762 new error message 2005-10-14 08:25:51 +00:00
ehouse
50df4d7cf4 catch up with API change 2005-10-01 15:53:56 +00:00
ehouse
237deee542 just log some messages so user interaction not required. 2005-09-14 05:11:29 +00:00
ehouse
5dace1cc7a add enough timer support for heartbeat; fix redraw bug 2005-09-09 03:14:11 +00:00
ehouse
18fc5e2c14 add linuxFireTimer 2005-09-09 03:12:58 +00:00
ehouse
264f34d97d move fireTimer to linux-common code 2005-09-09 03:12:24 +00:00
ehouse
368d2b82d6 add an extra slot as on other platforms 2005-09-09 03:06:27 +00:00
ehouse
763cd70632 add missing header. (Did gtk change?) 2005-09-09 02:57:14 +00:00
ehouse
5e4fd3368e add role to newgame dialog 2005-09-05 05:31:11 +00:00
ehouse
aa0a9ec158 add error message; don't assert (crash) when socket closes. 2005-09-04 20:31:34 +00:00
ehouse
1aed9882ef new (commented-out) info message 2005-09-03 18:36:08 +00:00
ehouse
ca8877a5de for testing, add -H option to prevent client from sending heartbeat
messages to relay.
2005-09-03 15:39:15 +00:00
ehouse
1114784217 Add strings for error codes for relay disconnect events. 2005-09-03 06:58:05 +00:00
ehouse
e3cadfbf79 catch up with API changes 2005-09-02 06:24:47 +00:00
ehouse
c0bdfb54c9 constant name changed 2005-08-21 14:18:56 +00:00
ehouse
bc3515272c Get rid of unused param 2005-07-14 02:54:47 +00:00
ehouse
3b53363e16 Pass protocol version code with connect request, and return error if
it isn't what relay can handle.  Report error to user.
2005-07-06 01:36:52 +00:00
ehouse
c3f5fb4639 cancel old timer before setting a new one 2005-07-05 20:59:42 +00:00
ehouse
2871778cb7 remove logging 2005-06-25 05:44:30 +00:00
ehouse
767de5a284 implement new util_setTimer, and handle heartbeat timer 2005-06-23 04:20:00 +00:00
ehouse
cfa1a42fcd fix formatting; make board wide enough for timer. 2005-05-30 00:20:42 +00:00
ehouse
40634e33c6 add justification to draw_string_at to better position using pango. 2005-05-30 00:03:58 +00:00
ehouse
8c201ff01b give tiles a background color 2005-05-29 21:17:23 +00:00
ehouse
a83f1b46b6 Switch to GTK 2.n. 2005-05-29 20:40:38 +00:00
ehouse
3c23117a2a New fields in drawCtxt for pango-based text layout; other tweaks for
switch to GTK 2.n.
2005-05-29 20:39:01 +00:00
ehouse
7986e14d08 huge set of changes to get working with GTK 2.n. Type changes and
casts, rewrite of img-button creation, tweaks in startup ordering that
may not have been necessary.
2005-05-29 20:37:35 +00:00
ehouse
521de82234 huge set of changes to get working with GTK 2.n. Use pango for text
drawing, getting rid of all GdkFonts; get rid of clipping until I
understand why it was prevent all drawing.  Etc.
2005-05-29 20:32:48 +00:00
ehouse
2a39b6950f switch to g_signal_connect 2005-05-29 20:17:09 +00:00
ehouse
ae8a861098 formatting fixes; casts for GTK 2005-05-29 19:37:42 +00:00
ehouse
961ca6e256 add linux_util_addrChange (stubbed out) 2005-04-03 16:56:39 +00:00
ehouse
bf331a2805 fix for api change 2005-04-03 02:47:08 +00:00
ehouse
b64103ad7e don't use null comms 2005-03-25 13:41:18 +00:00
ehouse
b3432d4dfa check for null comms before using 2005-03-25 03:13:10 +00:00
ehouse
1f3d94998f define XP_LD 2005-03-20 21:03:18 +00:00
ehouse
7d622f9484 fix and cleanup linux client to move to using tcp. Add the ability to
deal with socket dying and (maybe) being replaced.  Only connect on
demand now, when first packet's ready to go.
2005-03-19 22:07:53 +00:00
ehouse
02bc9178db add XP_STRNCPY 2005-03-19 22:06:23 +00:00
ehouse
13b55cfeab use compiler flags that ease debugging 2005-03-15 06:22:48 +00:00
ehouse
912f53178b move playerNum into dsi so can be used in formatting score; show
most recent turn (like symbian 80)
2005-03-15 03:29:37 +00:00
ehouse
36bba4024b move playerNum into dsi so can be used in formatting score 2005-03-15 03:27:24 +00:00
ehouse
af1416ed99 api change 2005-03-12 05:33:40 +00:00
ehouse
1c7e530538 deal with tcp streams the same in curses as on gtk. Both work now
with the relay.
2005-03-12 05:33:30 +00:00
ehouse
ef828a0bdf fix misspelling 2005-03-09 15:12:57 +00:00
ehouse
897caf4e88 Replace UDP-based messaging with TCP. Stream protocol says distinct
message is length plus data.  Use non-deprecated gtk select-like
function.  With these changes can play full games through the relay on
gtk.  Untested on ncurses but probably broken.
2005-03-06 18:07:00 +00:00
ehouse
572484ad53 API change 2005-01-25 04:41:47 +00:00
ehouse
f5a5d3d7a6 util function sig change 2005-01-13 04:30:50 +00:00
ehouse
6a569d5632 add missing param 2004-12-11 04:17:07 +00:00
ehouse
28b98cfd79 add HintAtts param to draw_drawBoardArrow 2004-11-14 16:27:51 +00:00
ehouse
4971a622ce Make linux compile with latest changes 2004-11-09 02:06:32 +00:00
ehouse
00cc411f39 fix linux build: set up super's vtable 2004-10-30 17:01:20 +00:00
ehouse
b7f847194e fix help message 2004-09-30 01:49:46 +00:00
ehouse
39f563cffb turn on new features by default 2004-06-27 05:03:48 +00:00
ehouse
00c1f802fc cleanup; use new API for limiting tile use from tray. 2004-06-27 05:01:18 +00:00
ehouse
d9efe4258b cleanup for no hintlimit feature case 2004-06-27 04:35:42 +00:00
ehouse
2d63cdeda0 cleanup for no hintlimit feature case; add new param 2004-06-27 04:35:20 +00:00
ehouse
1568a27e3f hint-rect on by default (until UI or cli option added) 2004-06-18 13:52:49 +00:00
ehouse
7efcdc80fe draw borders on cells that are part of hint-constraint rect 2004-06-15 01:44:39 +00:00
ehouse
8164f918f7 only call board_handlePenMove when mouse button is down. 2004-06-15 01:41:39 +00:00
ehouse
61a05c3387 formatting fixes; add string for attempt to undo tile assignment. 2004-05-14 09:05:45 +00:00
ehouse
deaf860c5b catch up with score-summary changes 2004-05-12 05:46:08 +00:00
ehouse
e85dc01638 new string as part of displaying last turn when score tapped 2004-04-30 08:38:46 +00:00
ehouse
d71e6a5a75 add XP_STRCAT 2004-04-30 08:37:30 +00:00
ehouse
bd5da24595 fix formatting 2004-02-28 05:23:10 +00:00
ehouse
0244afcde6 make util_userQuery return bool 2004-02-17 04:00:12 +00:00
ehouse
f684ec9461 draw_boardBegin returns bool now 2004-02-17 03:58:40 +00:00
ehouse
b447decb78 fix formatting 2004-02-17 03:56:12 +00:00
ehouse
34547f7fb7 drawBegin sig change 2004-02-13 13:54:52 +00:00
ehouse
05f2ae79b7 tweak dict-building sanity check 2004-01-25 14:31:34 +00:00
ehouse
d1df5342e4 set new dict variable 2003-12-14 17:55:45 +00:00
ehouse
5a915fe5d1 new file; -D option to workaround extra event leftover from probably
bug in new nTiles select dialog.
2003-11-30 19:10:47 +00:00
ehouse
589d9d3eaf new slot 2003-11-30 19:09:39 +00:00
ehouse
03baf8cb2b add test of board_requestHint change: limit number of tiles used in
hint.
2003-11-30 19:08:55 +00:00
ehouse
31017a455b folloe board_requestHint signature change 2003-11-30 19:07:01 +00:00
ehouse
183eb9e283 first checked in 2003-11-30 19:06:22 +00:00
ehouse
8f1cfaec23 first checked in 2003-11-16 17:30:19 +00:00
ehouse
38f211270e new menuitems (not yet used); blank-pick API change 2003-11-16 17:28:54 +00:00
ehouse
e9f34e8484 common code does more picking work now. 2003-11-16 17:25:46 +00:00
ehouse
4d31200290 util_userPickTile replaces util_askBlankFace 2003-11-16 17:17:04 +00:00
ehouse
f2766ec8e9 first checked in 2003-11-16 17:15:41 +00:00
ehouse
b5f54608da remove code to new shared file 2003-11-16 17:14:28 +00:00
ehouse
9e966e7815 new files; commented-out -D option to turn on tile picking 2003-11-16 17:14:01 +00:00
ehouse
9bc9550a07 gettimeofday call burried in an assert; need to work for non-debug
builds too.
2003-11-01 05:56:24 +00:00
ehouse
5776da0b93 first checkin 2003-11-01 05:35:29 +00:00