Commit graph

43 commits

Author SHA1 Message Date
ehouse
84a0409103 Attempt to listen for connections on a separate thread so connected
game could disconnect and reconnect, but still need work on adding a
socket to the main thread's io queue from a different thread.
2006-09-08 07:23:19 +00:00
ehouse
a605fd4d49 Start adding bt support to linux port. Required removing assumptions
that all connectivity was with relay and over streaming sockets (since
BT is using l2cap's datagram-style sockets.)  With this checkin, a full
robot-vs-robot game is possible with palm as host and linux as client.
Linux as host isn't started yet.
2006-08-26 21:15:20 +00:00
ehouse
f561989644 Set -Wunused-parameter for those versions of gcc that support it, and
deal with the output by removing params where possible and elsewhere
by adding XP_UNUSED macro wrapping __attribute__((unused)).  There
should be NO change in function in spite of the large number of files.
2006-08-16 13:44:44 +00:00
ehouse
46c5433b74 removed a param from board_handlePenUp 2006-06-27 06:31:36 +00:00
ehouse
91bfaae902 call server_do after gameinfo dialog returns in case a player has
become a robot.
2006-06-14 06:22:21 +00:00
ehouse
97ccccad48 Support new tri-part enabled type; add "game info" dialog/menu to test
read-only side; support new attributes for column head and nplayers
label; hide labels as well as controls that go with them.
2006-06-10 05:50:27 +00:00
ehouse
e8273bc9f0 Finish scrollbar work by passing number of visible rows to
util_trayHiddenChange, which means an API change.  In board, calculate
bottom of board based on bottom of tray when tray is hidden, and round
so that it's an exact multiple of cell height.  In wince, take
advantage of the new parameter to fix the scrollbar so that very
constrained boards can be scrolled even when the tray is hidden.
2006-05-19 13:44:05 +00:00
ehouse
7bc6b18885 Replace overlap param with nHidden to give more flexibility in
creating situations where board must be scrolled.
2006-05-17 06:10:24 +00:00
ehouse
92012adb50 move scrollbar into its own box so it doesn't force buttons to be over-tall 2006-05-14 15:26:21 +00:00
ehouse
db4bd5c1cd make tray hide button toggle hidden state 2006-05-12 07:59:21 +00:00
ehouse
615ee9e46e fix layout for vertical scoreboard option 2006-05-09 12:31:41 +00:00
ehouse
dc0cdfc53a catch up with API change 2006-05-09 04:04:56 +00:00
ehouse
00459487c1 fix warning 2006-02-18 06:35:48 +00:00
ehouse
dcd31cd092 update email address in header comments: no code change 2006-01-08 01:25:02 +00:00
ehouse
5581fd064e don't connect to relay unless have something to send 2005-10-30 16:28:52 +00:00
ehouse
a3305e2ca9 just log some messages so user interaction not required. 2005-09-14 05:11:29 +00:00
ehouse
6b3b5c0f90 move fireTimer to linux-common code 2005-09-09 03:12:24 +00:00
ehouse
ecce7f9d2e add an extra slot as on other platforms 2005-09-09 03:06:27 +00:00
ehouse
ad7b25eb52 add missing header. (Did gtk change?) 2005-09-09 02:57:14 +00:00
ehouse
377e514f0b for testing, add -H option to prevent client from sending heartbeat
messages to relay.
2005-09-03 15:39:15 +00:00
ehouse
889ebf6ce9 catch up with API changes 2005-09-02 06:24:47 +00:00
ehouse
0a8b5bb563 Get rid of unused param 2005-07-14 02:54:47 +00:00
ehouse
ca6c35ad78 cancel old timer before setting a new one 2005-07-05 20:59:42 +00:00
ehouse
86a37e0d13 implement new util_setTimer, and handle heartbeat timer 2005-06-23 04:20:00 +00:00
ehouse
8631466589 fix formatting; make board wide enough for timer. 2005-05-30 00:20:42 +00:00
ehouse
7c206d6d16 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
2ccdf6878a fix for api change 2005-04-03 02:47:08 +00:00
ehouse
3e281299ed check for null comms before using 2005-03-25 03:13:10 +00:00
ehouse
3d54ec402a 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
955f2180db 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
40ac233a92 fix misspelling 2005-03-09 15:12:57 +00:00
ehouse
1fba8494f3 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
fb4881a285 API change 2005-01-25 04:41:47 +00:00
ehouse
958754dbfe util function sig change 2005-01-13 04:30:50 +00:00
ehouse
688132b919 Make linux compile with latest changes 2004-11-09 02:06:32 +00:00
ehouse
81b6bde472 cleanup; use new API for limiting tile use from tray. 2004-06-27 05:01:18 +00:00
ehouse
f4708644d0 hint-rect on by default (until UI or cli option added) 2004-06-18 13:52:49 +00:00
ehouse
00c0b86d1e only call board_handlePenMove when mouse button is down. 2004-06-15 01:41:39 +00:00
ehouse
354bd96db4 make util_userQuery return bool 2004-02-17 04:00:12 +00:00
ehouse
cf1be1095a add test of board_requestHint change: limit number of tiles used in
hint.
2003-11-30 19:08:55 +00:00
ehouse
13e70c583b new menuitems (not yet used); blank-pick API change 2003-11-16 17:28:54 +00:00
ehouse
4c17ed9705 gettimeofday call burried in an assert; need to work for non-debug
builds too.
2003-11-01 05:56:24 +00:00
ehouse
6a57cef012 first checkin 2003-11-01 05:35:29 +00:00