Commit graph

1098 commits

Author SHA1 Message Date
ehouse
022fd1cb9d util_listenPortChange gone 2005-03-19 21:45:21 +00:00
ehouse
272e66e635 nuke logging that was polluting ncurses screen 2005-03-19 21:44:35 +00:00
ehouse
af8602f63b add stringFromStreamHere() 2005-03-19 21:44:09 +00:00
ehouse
70b45e11c5 catch up with API change 2005-03-15 15:29:17 +00:00
ehouse
dd8f2f92c5 fix problems with clients in networked games making a move after the
game should end: check number of passes and that all players still
have tiles before running robot.
2005-03-15 15:18:58 +00:00
ehouse
2e0ee693bc add assert 2005-03-15 15:13:52 +00:00
ehouse
38bd3d4528 correct spelling 2005-03-15 06:27:21 +00:00
ehouse
5e547eb8b0 move playerNum into dsi so can be used in formatting score 2005-03-15 06:26:58 +00:00
ehouse
13b55cfeab use compiler flags that ease debugging 2005-03-15 06:22:48 +00:00
ehouse
26cd5c2d88 add model_recentPassCountOk 2005-03-15 03:31:52 +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
229d615e84 comment out overly-verbose logging 2005-03-09 15:19:40 +00:00
ehouse
219b6ce937 save hostIDs as part of comms; add logging 2005-03-09 15:18:17 +00:00
ehouse
f5c43f3dfc add util_addrChange 2005-03-09 15:14:10 +00:00
ehouse
ef828a0bdf fix misspelling 2005-03-09 15:12:57 +00:00
ehouse
75ae636807 remove unused file 2005-03-09 15:09:24 +00:00
ehouse
d22f34c713 add sym_util_addrChange 2005-03-09 15:06:14 +00:00
ehouse
4ca237cb32 fold reading into send socket. Now receives packets from relay,
though things break down after a few moves.
2005-03-09 15:04:28 +00:00
ehouse
26f532bcf1 fold reading into send socket 2005-03-09 14:51:11 +00:00
ehouse
68d6d04459 merge from palm 1.4 branch changes to allow arm-only, etc builds from
commandline.
2005-03-08 05:36:33 +00:00
ehouse
0f9eb528d8 fix conflict with type from Palm headers; fix for non-BEYOND_IR case. 2005-03-08 05:33:38 +00:00
ehouse
9b9f71322f first checked in 2005-03-06 18:30:59 +00:00
ehouse
39225c8622 first checkin. Works about half the time for one or two games at a
time.  Very fragile.
2005-03-06 18:27:16 +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
cb3a3854e9 add support for relay for use by NAT'd/firewalled devices: cellphones.
Include cookie users will agree on on for relay rendevouz, and
sender/receiver IDs for when there are >2 devices in game.  Supports
games between linux clients now, but needs a lot more work.
2005-03-06 17:56:34 +00:00
ehouse
71870695cc HACK: server must ping relay or it can't be contacted 2005-03-06 17:51:18 +00:00
ehouse
2e9dd5f3ea cleanup; add debugging info for state changes 2005-03-06 17:49:37 +00:00
ehouse
840f8c273a add symrsock; begin separating DEBUG and non- targets 2005-03-03 15:31:11 +00:00
ehouse
1a420d3f5f open socket for incomming, and provide callback to get incomming data
to comms.  Doesn't work yet, likely because of firewall issues, so
simple UDP may not be the answer.
2005-03-03 15:29:59 +00:00
ehouse
1879a23c34 first checked in. Untested since I can't get packets to the device
from outside the carrier's firewall.
2005-03-03 15:28:24 +00:00
ehouse
58eba68c1b cleanup 2005-03-03 15:26:19 +00:00
ehouse
8ffb617a17 open socket for incomming, and provide callback to get incomming data
to comms.  Doesn't work yet, likely because of firewall issues, so
simple UDP may not be the answer.
2005-03-03 15:24:53 +00:00
ehouse
c8b87e64f7 add sym_util_listenPortChange 2005-03-03 02:17:46 +00:00
ehouse
ca8237fe89 turn on BEYOND_IR 2005-03-02 15:01:47 +00:00
ehouse
3b899427d5 remove define that should be passed in as -D 2005-03-01 13:55:58 +00:00
ehouse
0e347790ba add socket-related libs 2005-03-01 13:54:50 +00:00
ehouse
1555e99a74 SetActive call required 2005-03-01 13:53:41 +00:00
ehouse
0e3e09eba9 initial null addr rec is normal; deal with it 2005-03-01 01:14:34 +00:00
ehouse
484fb9a631 add a bunch of methods toward actually sending something. 2005-03-01 01:13:05 +00:00
ehouse
0e9b5d6ee6 add a bunch of logging, temporarily, since this is often where
resource problems show themselves
2005-03-01 01:11:58 +00:00
ehouse
db8d98835f add a bunch of ivars and methods toward actually sending something. 2005-03-01 01:10:30 +00:00
ehouse
eae9c1ebb9 cleanup 2005-03-01 01:08:06 +00:00
ehouse
db2becd29e add clean_state target 2005-02-27 20:09:05 +00:00
ehouse
03527d0f97 wrong format string descriptor 2005-02-27 20:08:31 +00:00
ehouse
61961f3bcf passing wrong name to open 2005-02-27 20:07:05 +00:00
ehouse
7bb8787a63 use upload var if present; clean up STANDALONE_ONLY var 2005-02-26 03:00:37 +00:00
ehouse
f64ed67cc8 create and use sending socket 2005-02-26 02:59:23 +00:00
ehouse
43b42dccf1 add socket ivar 2005-02-26 02:58:10 +00:00
ehouse
f02926e59d skeleton only. 2005-02-26 02:57:19 +00:00
ehouse
95ae231a79 log name of dict unable to open 2005-02-25 04:18:50 +00:00
ehouse
c54d30202c cleanup 2005-02-25 03:38:02 +00:00
ehouse
56cacdc531 don't define XWORDS_DIR 2005-02-25 03:36:51 +00:00
ehouse
91a94660d9 hack around string concat issues. to be fixed later 2005-02-25 03:36:25 +00:00
ehouse
6a55809e5f change user-visible name 2005-02-23 14:30:59 +00:00
ehouse
b652a2952d fix from branch: position tray buttons correctly in highres case 2005-02-23 14:18:22 +00:00
ehouse
ff276276e3 fix VERSION id 2005-02-20 18:22:21 +00:00
ehouse
436b8ccd3f Fixed resource problem by passing flags to compiler. Now loads and
runs properly.
2005-02-17 15:18:52 +00:00
ehouse
7a2e371d42 generate and use UID.cpp file. This fixes simulator's refusal to
launch the app.  Stuff shows up in the log file now, so it's running.
Current crash seems to stem from a resource file problem.
2005-02-17 14:51:20 +00:00
ehouse
d42606ed23 add generated UID.cpp file 2005-02-17 14:47:03 +00:00
ehouse
38ebc98a06 first checked in. .app and .rsc are built and installed where the
emulator can find them, but the emulator says it can't launch the app.
2005-02-17 02:57:07 +00:00
ehouse
49f84117fb build bitmaps from info in specials (for Spanish) 2005-02-15 15:01:04 +00:00
ehouse
a6405c6c8a change logfile extension so device more likely to open it. 2005-02-15 14:58:45 +00:00
ehouse
7d1fa77c5f make it easier to tweak compiler optimizations (since some produce
crashing code)
2005-02-15 14:34:50 +00:00
ehouse
f89e436b5a turn on -v dynamically 2005-02-15 14:20:46 +00:00
ehouse
644110ceb9 add dictionary to .sis package 2005-02-12 23:07:09 +00:00
ehouse
1368a95f32 change loc for file search 2005-02-12 03:01:13 +00:00
ehouse
e287becec9 default dirname for mmp builds 2005-02-12 02:59:14 +00:00
ehouse
9f255656fc add missing define; copy .sis to web dir; define dir based on series
so code can find files
2005-02-12 02:58:37 +00:00
ehouse
07fd09f7b1 revert to an earlier version that didn't build crashing code. 2005-02-11 02:50:04 +00:00
ehouse
1cca026c24 update so works again. 2005-02-11 02:48:13 +00:00
ehouse
b8cb6467f0 update so works again. Some optimizations produce bad code in EVC4.
Turn them off, and choose others.  This will be the preferred way of
building from now on since the files produced by the IDE rearrange
their parts at random whenever changed, making diff useless for
figuring out what broke.
2005-02-11 02:45:59 +00:00
ehouse
fb947be169 temp hack for separate rss files 2005-02-08 07:17:40 +00:00
ehouse
590c08d355 silence check 2005-02-08 07:10:36 +00:00
ehouse
d96a0d9709 add temp and generated files from linux builds 2005-02-08 07:10:21 +00:00
ehouse
8317f28f98 protect stuff that won't compile for series 60. Need to figure out
equivalents.
2005-02-08 07:02:57 +00:00
ehouse
1eac9ca00e button for series 60 -- untested 2005-02-08 07:01:50 +00:00
ehouse
9d4f351fe1 update to work with series 60 and 80 SDKs on linux 2005-02-08 06:59:06 +00:00
ehouse
cd1e81b6a9 comment stuff out to compile for series 60 2005-02-08 06:58:25 +00:00
ehouse
2a0d67c7e5 compile on both series 2005-02-08 06:05:18 +00:00
ehouse
85ab99ee33 include diff rsg files based on SERIES; comment out stuff that blocks
SERIES_60 compilation
2005-02-08 06:02:45 +00:00
ehouse
ae6e80a9b1 include diff rsg files based on SERIES 2005-02-08 06:01:29 +00:00
ehouse
aeac846f7f first checked in 2005-02-08 06:00:23 +00:00
ehouse
2c435bac91 update to work with series 60 and 80 SDKs on linux 2005-02-08 05:52:13 +00:00
ehouse
7200abd50f add #define turning on scrollbar support for square screened devices. 2005-02-06 06:59:24 +00:00
ehouse
b3d19a6abf as a workaround for reported lockups on WM SE devices, save state
after many user actions.  This was meant to capture the state right
before the crash but seems instead to have fixed it.
2005-02-06 06:56:06 +00:00
ehouse
605a19c6d2 beta 3; 2005 copyright 2005-02-06 06:54:01 +00:00
ehouse
3a803b9dcd call ceCenterCtl() 2005-02-06 06:52:57 +00:00
ehouse
c33d55d693 add ceCenterCtl() 2005-02-06 06:52:24 +00:00
ehouse
f7de2b096a shrink a couple of dialogs to fit square screen 2005-02-05 21:49:03 +00:00
ehouse
d01b3e8929 scrolling support; determine board layout based on screen size. 2005-02-05 21:43:16 +00:00
ehouse
6e719b8e91 add fields supporting scrolling 2005-02-05 21:38:04 +00:00
ehouse
92fc69ec83 fix to generate .sis package again 2005-02-04 05:17:44 +00:00
ehouse
5894369301 when undoing for purpose of finding last move and there's no pool,
don't attempt to replace tiles.
2005-02-02 02:51:05 +00:00
ehouse
992681f1da add new bitmaps 2005-02-01 06:17:08 +00:00
ehouse
49e4c1f6e4 keep hostname as well as IP address in CommsAddrRec 2005-01-31 03:31:50 +00:00
ehouse
fa7dcd1217 EXTERN_C_START 2005-01-31 03:30:26 +00:00
ehouse
7d2bce051b start work for multi-device games: send proc and address tracking. 2005-01-31 03:27:23 +00:00
ehouse
2410e67cd4 call CloseSTDLIB 2005-01-31 03:23:49 +00:00
ehouse
e47506e4c3 handle fields for multi-device games via internet 2005-01-31 03:22:45 +00:00
ehouse
4d1641de8c cleanup 2005-01-31 03:21:05 +00:00
ehouse
cf4545c14b wrap some constants in #ifndef XWFEATURE_STANDALONE_ONLY 2005-01-31 03:19:11 +00:00
ehouse
822860bd61 ivars and params for passing device addressing info; new functions for
sending streams
2005-01-31 03:18:15 +00:00
ehouse
521f5b61e3 ivars and params for passing device addressing info 2005-01-31 03:14:55 +00:00
ehouse
5dc1026035 fields for port and host 2005-01-31 03:12:32 +00:00
ehouse
58d24907fd add _DEBUG 2005-01-31 02:25:37 +00:00
ehouse
f052b84b04 ABLD.BAT added as a target 2005-01-31 02:24:51 +00:00
ehouse
572484ad53 API change 2005-01-25 04:41:47 +00:00
ehouse
27b6f310b5 bug: comparison was dropping words with the same score as all those
already cached.
2005-01-25 04:39:55 +00:00
ehouse
472f159245 catch up with API changes; make buffer bigger so crash doesn't happen
in tile picker for long-named players.
2005-01-24 05:21:45 +00:00
ehouse
45ff7551d1 manually delete armi object files since sdk's build system doesn't
seem to
2005-01-23 18:03:53 +00:00
ehouse
336734c7ff eliminate picky compiler warnings 2005-01-23 18:02:39 +00:00
ehouse
670bdff8ca nuke unused var 2005-01-23 18:02:02 +00:00
ehouse
be6a486af4 pass backspace key through 2005-01-23 17:31:52 +00:00
ehouse
b56f12647d cleanup; indicate cells with blanks 2005-01-23 17:31:15 +00:00
ehouse
66eeeae7d6 change trayCursorLoc to be a 3-bit number so stores smaller 2005-01-23 17:28:29 +00:00
ehouse
974bf14ec4 ex/internalize cursor locations 2005-01-23 17:26:38 +00:00
ehouse
333c795f3c kill log statement 2005-01-23 08:20:13 +00:00
ehouse
67be3191c8 revert change to board_invalRect 2005-01-23 08:17:37 +00:00
ehouse
4c937beb2d remove dead param 2005-01-23 08:15:29 +00:00
ehouse
6a0a00af6b call board_invalRect rather than board_invalAll from ::Draw 2005-01-23 06:14:57 +00:00
ehouse
ee3d6381dd board_invalRect params change 2005-01-23 06:14:07 +00:00
ehouse
c256310a4e remove dead param 2005-01-23 06:03:34 +00:00
ehouse
18317446d3 use robot bitmaps 2005-01-23 06:02:35 +00:00
ehouse
92b7870651 add robot bitmaps 2005-01-23 06:02:01 +00:00
ehouse
79bc0c5c01 first checked in. Needs an artist's touch! 2005-01-23 06:01:37 +00:00
ehouse
3cc77cc8ce remove dead param; fix inval and choice of inverted cells so recent
move is not shown when pending move is.
2005-01-23 06:00:27 +00:00
ehouse
90d700356d remove dead param 2005-01-23 05:55:58 +00:00
ehouse
cabbd437e1 catch up with new libs and src files; build resources and .mbm files 2005-01-23 04:47:43 +00:00
ehouse
82c6121151 clean up TDesc usage 2005-01-22 23:22:24 +00:00
ehouse
b2c86bd115 clean up TDesc usage 2005-01-22 22:46:27 +00:00
ehouse
fa6ae7dca5 first checked in. Looks ok. 2005-01-22 22:38:18 +00:00
ehouse
06ae18922e draw game/dict names over gray background; cleanup PositionBoard. 2005-01-22 22:37:03 +00:00
ehouse
cd2b12c5bb Layout scoreboard lines in columns; add icon showing turn; cleanup
conversion from 8- to 16-bit text.
2005-01-22 22:36:13 +00:00
ehouse
405bef4e17 change menu text 2005-01-22 22:31:51 +00:00
ehouse
bef6d7c52f add turn-indicating icons 2005-01-22 22:31:21 +00:00
ehouse
4d98925b91 provide callback for most recent score; return key on hidden tray
attempts to reveal; add focus obj to saved state.
2005-01-22 19:51:48 +00:00
ehouse
7482c07ba5 add callback for most recent score 2005-01-22 19:49:19 +00:00
ehouse
646076b6bb include dict name with game above scoreboard 2005-01-22 07:36:07 +00:00
ehouse
0aef474163 Solid border for focus. Cleaner, but maybe too bright. 2005-01-22 07:34:45 +00:00
ehouse
236fb959f7 For some reason on the device only the top button in the saved games
dialog is unreachable.  Make that something less critical than "Open"
until the bug's found.
2005-01-22 07:33:40 +00:00
ehouse
337da9e210 add AIF line 2005-01-22 07:32:25 +00:00
ehouse
4d2787d130 first checked in. Rough but recognizable. 2005-01-22 07:31:54 +00:00
ehouse
74ae4d049b first checked in. Works. 2005-01-22 07:30:48 +00:00
ehouse
8ecac34cb6 fix to compile with changed api 2005-01-21 08:26:32 +00:00
ehouse
76e2f7a0e8 first checked in. Seems to work. 2005-01-21 08:01:49 +00:00
ehouse
fd780166e7 stop calling SetClippingRect 2005-01-21 08:01:01 +00:00
ehouse
f0f9fb8973 constant for rename dialog 2005-01-21 07:59:16 +00:00
ehouse
e6315f26a8 draw game name 2005-01-21 07:58:49 +00:00
ehouse
61f14ddd0e move scoreboard down and draw open game's name above it 2005-01-21 07:58:34 +00:00
ehouse
cb92bd491d add IsLegalName(), Rename() 2005-01-21 07:56:57 +00:00
ehouse
5b406ab7b9 flesh out methods for deleting and renaming 2005-01-21 07:56:00 +00:00
ehouse
189035c49c add params to methods for deleting and renaming 2005-01-21 07:55:08 +00:00
ehouse
08aa6ceb37 strings and dialog for renaming and confirming deletion of saved games 2005-01-21 07:54:10 +00:00
ehouse
de6888d7ad new source file; new library 2005-01-21 07:53:18 +00:00
ehouse
5d36894c51 turn off verbosity 2005-01-20 02:53:07 +00:00
ehouse
6e74c6fb35 add DoImmediateDraw 2005-01-20 02:50:51 +00:00
ehouse
0683fff49e use a different color for the cursor (board, tray, and the rect that
surrounds what has the focus)
2005-01-20 02:48:41 +00:00
ehouse
a74f9702ee add DoImmediateDraw 2005-01-20 02:42:51 +00:00
ehouse
f2f4b9107d library for file io 2005-01-20 02:40:34 +00:00
ehouse
6abaa53d86 new constant so clients can extend set of warnings 2005-01-20 02:37:13 +00:00
ehouse
bb7717096a test for file before opening 2005-01-19 15:15:04 +00:00
ehouse
997e030885 add Exists; improve unique name generation 2005-01-19 15:12:34 +00:00
ehouse
352231b854 confirm deletions 2005-01-19 15:11:07 +00:00
ehouse
42e680e574 don't try to copy null string 2005-01-19 15:08:57 +00:00
ehouse
68b38664d2 new method for external query 2005-01-19 15:07:37 +00:00
ehouse
7318254a46 add Exists() 2005-01-19 15:06:19 +00:00
ehouse
1d15213ec5 pass in view so its methods can be called 2005-01-19 15:05:19 +00:00
ehouse
ee95cc94cf new user-visible strings for delete confirmation 2005-01-19 15:04:17 +00:00
ehouse
12b8e0a593 save games and prefs 2005-01-18 16:01:29 +00:00
ehouse
e24ece10af create empty dicts 2005-01-18 15:11:46 +00:00
ehouse
3dc3f0e125 notify view when exiting 2005-01-18 15:09:45 +00:00
ehouse
5836e2fbe8 use constant for UID 2005-01-18 15:08:31 +00:00
ehouse
5e25ea1140 remove dead code 2005-01-18 15:07:00 +00:00
ehouse
62f49a0b59 add desc logging 2005-01-18 15:05:33 +00:00
ehouse
078b0ed8e5 save and restore games and prefs 2005-01-18 15:03:31 +00:00
ehouse
85fbaffd25 constants for saved games dlg 2005-01-18 15:00:49 +00:00
ehouse
07c7cdef1f add desc logging 2005-01-18 14:58:56 +00:00
ehouse
f619cc9434 add saved games dialog 2005-01-18 14:57:39 +00:00
ehouse
17c3f3e7e7 new source files and library 2005-01-18 14:55:57 +00:00
ehouse
9097728b2f first checked in 2005-01-18 14:53:30 +00:00
ehouse
1b0e38222e first checked in; works but confirm and rename pending 2005-01-18 14:49:23 +00:00
ehouse
9cbc3688dc separate info and query, and use the right one 2005-01-13 14:39:12 +00:00
ehouse
bc771cf3a1 default impl of getShortName 2005-01-13 14:36:42 +00:00
ehouse
c0efcd6b00 util function sig change 2005-01-13 04:37:36 +00:00
ehouse
f5a5d3d7a6 util function sig change 2005-01-13 04:30:50 +00:00
ehouse
8e656ad74a define OS_INITS_DRAW 2005-01-13 02:56:08 +00:00
ehouse
70266c075d don't call board_draw except in response to Draw() on Symbian 2005-01-13 02:52:45 +00:00
ehouse
26142ff074 fix crasher due to uninited var; add static util method 2005-01-13 02:31:15 +00:00
ehouse
ea28365c60 overload symReplaceStr 2005-01-13 02:26:05 +00:00
ehouse
aea7a28f97 stop compiler warnings 2005-01-13 02:25:01 +00:00
ehouse
e8eec6f5f0 keep a copy of dict name 2005-01-13 02:21:30 +00:00
ehouse
3bde62ee78 swap linefeeds into text so it wraps in EDWINs 2005-01-13 02:16:52 +00:00
ehouse
3f772057d5 clean up compile warnings; implement menuitems that use ask dlg 2005-01-13 02:13:17 +00:00
ehouse
f2f766d6a4 util methods for using NewGame 2005-01-13 02:08:35 +00:00
ehouse
79f93db91b tweaks for non-debug compilation 2005-01-13 02:06:59 +00:00
ehouse
dfc6934da5 overload symReplaceStr 2005-01-13 02:04:43 +00:00
ehouse
56536417d3 add static utility function 2005-01-13 02:01:31 +00:00