Andy2
92614370ce
Merge branch 'android_branch' into send_in_background
...
Conflicts:
xwords4/common/comms.c
2011-09-20 06:21:54 -07:00
Andy2
9eacdb3856
add server_listWordsPlayed, and implement via function in model.c that
...
uses existing stack and undo features to run a WordNotifierInfo over
some number of scoring passes to gather the words seen. Seems to work
as tested from gtk version. Now need to try from android....
2011-09-18 17:20:01 -07:00
Eric House
84931f34ff
Merge branch 'android_branch' into send_in_background
2011-09-07 21:44:36 -07:00
Andy2
2d2f3e23fd
change signature of util_playerScoreHeld(): pass player num rather
...
than formatted text. Client code can use new
model_getPlayersLastScore() or whatever else it wants to build text to
show the user.
2011-09-02 18:36:03 -07:00
Andy2
dadf41ad2e
add "cancel trade" menu item
2011-09-02 06:38:30 -07:00
Andy2
c2150bc9ed
get rid of util_setInTrade()
2011-09-02 06:14:29 -07:00
eehouse@eehouse.org
b6e5327b1a
Merge branch 'android_branch' into send_in_background
2011-08-31 06:46:42 -07:00
Eric House
c01981bc8f
Make miniwindow stuff compile-time optional. The goal's to use native
...
features where they look better or are easier to manage, e.g. Toasts
and dialogs on Android.
2011-08-29 20:36:01 -07:00
Andy2
dfab747504
make server_do() take a new param to allow caller to call it until
...
there's nothing more to do (without the assumption it's driven from an
event queue.)
2011-08-16 19:28:59 -07:00
Eric House
cbfdf992bd
add compile-time option to allow passing game seed from commandline.
...
This should allow testing relay changes to deal better with duplicate
seeds.
2011-07-31 22:23:46 -07:00
Andy2
4c5c435fb5
add new parameter so client always gets notified on connection
...
including how many players are still missing.
2011-05-19 05:51:00 -07:00
Eric House
3cc105da0b
add ability to dump board (model) as text, protected by ifdef that
...
will likely only get set on Linux. Uses lower-case to designate
blanks. For that and maybe string size assumptions is very broken for
non-ascii languages, including Spanish.
2011-04-13 06:45:22 -07:00
Andy2
3b7b4802a9
add ability to specify, track and use separate dictionaries for each
...
player. Works for gtk client. Compiles for Android but there's no UI
yet to specify more than one dict. Management of dupicate dicts
without duplicating memory -- refcounting -- will be up to the
platforms.
2011-04-01 19:57:10 -07:00
Andy2
80e0edbf03
cleanup
2011-03-31 06:41:11 -07:00
Andy2
fc4fddb055
check if can hint (to refresh buttons) after enter/leaving trade mode
2011-03-08 07:41:16 -08:00
Andy2
bf0582f0aa
make hint buttons en/disabled based on board_canHint() results.
2011-02-01 18:56:37 -08:00
Eric House
4bf613a006
move pipe handling code to where can be shared by curses and gtk -- but use from curses is untested.
2011-01-24 22:20:47 -08:00
Andy2
825cda9125
new feature for testing proxy: --with-pipe option causes linux client
...
to, instead of putting up UI, blocking on pipe and once it's readable
opening saved game and passing messages into it from pipe then saving
it when done. Works, but requires gtk so far.
2011-01-23 21:52:26 -08:00
Andy2
fc8cac3b6a
handle new device-gone message by posting timed-out dialog.
2010-11-11 06:43:36 -08:00
Andy2
2d9851902c
replace chat menuitem with chat button enabled using comms_canChat()
2010-11-01 06:55:37 -07:00
Andy2
ab708e4db1
add devOrder (= hostID) to params passed on connect. Make linux apps compile after API change.
2010-10-29 06:32:18 -07:00
Andy2
7e0bcee6d2
add room name to callback used when device connects: fix linux to compile
2010-10-28 18:46:07 -07:00
Andy2
a13bb34419
plug memory leak
2010-10-04 22:14:44 -07:00
Eric House
14fd1f9023
add test code for chat feature: display incoming chat and send via
...
menu. Sent message is hard-coded for now; should fix that.
2010-10-03 18:13:48 -07:00
Andy2
00cdbc97d3
Install a no-op TERM handler at first then replace later with one that
...
just exits main loop. Do cleanup/file saving on exit from mainloop.
Fixes occasional crash where TERM came in before we were setup to
cleanup.
2010-09-20 04:55:35 -07:00
Andy2
452e3fc86b
timeout in milliseconds instead of seconds
2010-09-16 04:46:04 -07:00
Andy2
fa50bd00f1
timeout final scores alert
2010-09-16 03:42:57 -07:00
Andy2
0d7165f881
add ability to run gtk from newrelay.sh. Trying to run 50 instances
...
crashes the relay as ACKs take too long to come back.
2010-09-16 01:44:54 -07:00
Eric House
9fc39a55ed
add params to set public-room-related booleans; add timeout option on
...
modal dialogs so gtk version can run unattended.
2010-09-14 21:13:45 -07:00
Andy2
34a94f23a0
fix error message to not specify host or guest
2010-09-10 01:24:42 -07:00
Andy2
6dc21ae7a8
pass (hard-coded) param controlling non-turn board switching
2010-07-17 06:22:42 -07:00
Andy2
6484a2fb9b
fix to compile (with or without KEYBOARD_NAV undefined)
2010-07-09 06:50:39 -07:00
Andy2
4425ff838c
add buttons (gtk) to test new prev-move feature; modify to fit new api
...
(curses).
2010-07-07 05:29:04 -07:00
Andy2
3452666231
use board_canTogglePending to disable button
2010-07-03 11:39:10 -07:00
Andy2
592d99ba80
add new button and handler to test redo of undone pending moves.
2010-07-02 18:53:37 -07:00
Andy2
e150db29ee
use board_canFlip() to prototype disabling flip button when useless.
2010-06-30 20:25:56 -07:00
Andy2
80aa22b2d1
add common prefs field sortNewTiles and way to set on linux cmdline
2010-06-17 18:10:32 -07:00
eehouse
f514717428
Change board_zoom to indicate direction only of zoom, not number of
...
cols. When figuring internal dimensions zoom out as needed to meet
maxSize value. This fixes problem where rotating a zoomed portrait
board to landscape leaves cells bigger than they can be made by
zooming, but then the desired zoom has been changed and stored and so
on return to portrait cells are smaller/less zoomed. Need to see if I
can live with that.
2010-06-05 03:40:23 +00:00
eehouse
a80d874e9d
change api for board_zoom and change callers. No effect on java and
...
no behavior change.
2010-06-05 03:39:06 +00:00
eehouse
a2d2b0adbd
quick hack to enable/disable zoom buttons so can debug board.c w/out
...
android.
2010-06-05 03:38:40 +00:00
eehouse
e1d956ac09
catch up with board_setPos API change.
2010-06-03 04:58:02 +00:00
eehouse
04835a09e1
add missing params so compiles
2010-04-23 09:32:14 +00:00
eehouse
ad2c725a58
always install scrollbar because zooming can require it after the
...
fact.
2010-04-15 02:16:40 +00:00
eehouse
1950e38bda
remove bogus assert and logging
2010-04-08 04:15:08 +00:00
eehouse
d263b47a56
lots of changes, still rough, to allow zooming in and out on board.
...
Includes ability to scroll horizontally by dragging. Board init API
changes to specify board width and max height instead of cell
dimensions, so now board owns task of picking cell size. If the
number of cells does not evenly divide into a board dimension then the
extra pixels are distributed among some columns/rows in a way that
still allows bitblit-based scroll implementations (though horizontal
scrolling at this point always does an invalAll()). Not yet tested
with overlapping tray. And still need to allow rows to be taller than
cols are wide if platform code has given the space. Stream format
changes with this checkin.
2010-04-08 04:14:14 +00:00
eehouse
603462fc33
add option to skip modal dialog showing final game score (may prevent
...
curses version from becoming nonresponsive when used from playme.sh);
add menu command to curses version to resend messages.
2010-03-28 16:08:54 +00:00
eehouse
cb5cc975b3
add new params required for comms_getInitialAddr
2010-03-25 04:53:16 +00:00
eehouse
b3a4ac306e
actually do something (on the gtk side at least) when -S param is
...
passed.
2010-03-21 03:10:29 +00:00
eehouse
6893fe742a
fix r3013 breakage: remove gameID params
2010-02-01 01:50:38 +00:00
ehouse
4425eaa99e
move showColors into CommonPrefs, removing separate storage in linux
...
and wince and removing setter from board and jni APIs. Palm change
pending.
2010-01-26 04:14:18 +00:00