Andy2
d7b6cb0691
use resetGame() to populate a newly created game. With this change a
...
new network game will connect without first having been opened in the
GameConfig dialog.
2010-10-25 18:56:51 -07:00
Andy2
e1b7a0f44d
when resetting game, if it's multi-device but doesn't have a default
...
address (as will be the case if it was just created), get and give it
one.
2010-10-25 18:55:53 -07:00
Andy2
3cbda7471c
init public room vars to false
2010-10-25 18:55:15 -07:00
Andy2
54d312e523
saveSummary(0 needs to be passed context in case must init dbhelper.
2010-10-25 18:51:07 -07:00
Andy2
2e122fe9f3
default for new networked game is no robots, second player remote.
2010-10-25 18:08:09 -07:00
Andy2
b237277544
put back enum just removed; it's screwing up existing code having all
...
the followers change.
2010-10-25 18:06:48 -07:00
Andy2
39e502fe71
add not-again hints to all the buttons
2010-10-24 17:47:11 -07:00
Andy2
e909e4b343
remove redundant message; advance state to ALLCONNECTED on receipt of
...
RECONN or CONN that lists the game as full. This means we get the
all-green icon (or the A in the gtk case) when in a consummated game
rather than only when all devices are actually connected.
2010-10-23 20:29:24 -07:00
eehouse@eehouse.org
24fae0f53b
Merge branch 'relay_proxy' of ssh://xwords.git.sourceforge.net/gitroot/xwords/xwords into relay_proxy
2010-10-23 19:50:11 -07:00
Eric House
8a038dc748
Merge branch 'relay_proxy' of ssh://xwords.git.sf.net/gitroot/xwords/xwords into relay_proxy
2010-10-23 19:45:03 -07:00
Andy2
2fa76a9e24
add second button to games list to add networked game, and remove
...
ability from config dialog to make a game networked or not. This
should confuse people less. Better would be if the two buttons had
icons and those icons were associated with games in the list according
to which type of game they represent.
2010-10-23 18:41:37 -07:00
Andy2
cff95ce3de
go back to play being the onclick action (removing preference to make
...
it that way); add more newbie hints; fix DIALOG id definitions to not
overlap superclass's.
2010-10-23 14:08:57 -07:00
Andy2
038f6bd94c
rename some private methods; add onPrepareDialog to fix problem where
...
msg stuck from previous invocation
2010-10-23 14:06:03 -07:00
Andy2
dd82fa02ad
remove chat menuitem -- it's only a button now.
2010-10-23 14:00:24 -07:00
Andy2
314872d533
shrink needs-sync flag icon
2010-10-23 13:52:56 -07:00
Andy2
9383ef064d
use sync icon instead of "M" to mark games with data.
2010-10-23 13:45:31 -07:00
Andy2
43ad43b604
change meetup server back to relay
2010-10-23 11:24:19 -07:00
Andy2
b6dfa0be8b
disable background-checking code for now: make default be disabled and
...
remove Preference that allows to change it.
2010-10-23 11:19:55 -07:00
Andy2
5a5c73916e
Don't allow copy of relay-connected game.
2010-10-23 11:08:33 -07:00
Andy2
7cf4535b4c
new dbmgr API returns number of players in game; use that rather than
...
currently connected devices to populate [RE]CONNECT message
2010-10-22 22:34:43 -07:00
Andy2
593dac9d99
rotate 90 degrees
2010-10-22 22:04:09 -07:00
Eric House
85d29cf560
if can't send allcond to a device because it's not connected queue the
...
message to be sent next time it does. And since the cookieID will
change and should be there already anyway, remove it. (Should remove
the hostID too for the same reason.)
2010-10-22 19:02:52 -07:00
Eric House
6e843dec6c
make 10997 default relay port
2010-10-22 18:30:19 -07:00
Andy2
7765bd0a1a
move decision how to display connection info from CommsTransport to
...
BoardActivity (where it'll be easier to include optional not-again dialog)
2010-10-21 20:13:41 -07:00
Andy2
8fac0945b9
chat not-again message without obscenities
2010-10-21 19:22:17 -07:00
Andy2
99dbbb443c
add comms_canChat, which knows better than java code what state a
...
connected game is in, and call it to determine whether to show the
chat icon.
2010-10-21 19:14:10 -07:00
Andy2
198f39b606
don't use yes button for simple ok dialog
2010-10-21 19:12:04 -07:00
Andy2
ae97d7d0f4
shouldn't have commented that out...
2010-10-21 06:51:26 -07:00
Andy2
aa0be5e2f2
remove unused imports
2010-10-21 06:50:29 -07:00
Andy2
ea617f39fa
to deal with not being implement a common superclass for Activity and
...
ListActivity create a delegate they use for dialog-related stuff.
Move code from them into it -- and delegate.
2010-10-21 06:33:04 -07:00
Andy2
5599f91232
new prefs key and string for not-again help dlg for chat
2010-10-21 06:31:28 -07:00
Andy2
848c1493fd
chat button enabled only for multi-device games. Needs to be disabled
...
for unconnected games as well....
2010-10-21 06:30:48 -07:00
Andy2
8a891816b4
add chat button
2010-10-21 06:28:01 -07:00
Andy2
5c9cf0ebc8
add first helptext dialog, with do-not-show-again button, attached to
...
the sync menuitem. The plan's that a bunch of these will make the
game easier for newbies to use.
2010-10-20 20:48:18 -07:00
Andy2
0d4f77fb0a
add sync icon to games list menu
2010-10-20 20:00:40 -07:00
Andy2
8788f9d4d5
move OK dialog to new scheme. Using a static global Bundle instead of
...
the newer form of showDialog because that requires version 8 of the
SDK.
2010-10-20 19:52:13 -07:00
Andy2
c1dc34e25d
move common dialog code from Utils to XWActivity and XWListActivity
...
(which delegates to XWActivity.)
2010-10-20 18:34:41 -07:00
Andy2
8db6c7ad7f
add setPrefsBoolean
2010-10-20 18:09:24 -07:00
Andy2
95f5c2e023
cleanup: add missing string; remove unused strings and array.
2010-10-19 18:43:26 -07:00
Andy2
01e926e8b3
up sdk version to silence warning
2010-10-19 18:42:32 -07:00
Andy2
17f1790d52
remove unused layout files (since they take up space in the .apk even
...
if never referenced)
2010-10-19 18:42:07 -07:00
Andy2
85e32907f0
remove '\r's
2010-10-19 18:39:27 -07:00
Andy2
1fecf9dbb4
implement new check-relay menu, and use new task to check for messages
...
if there are any connected games.
2010-10-19 07:54:52 -07:00
Andy2
4a5c0832d4
use new generalized code to check for messages.
2010-10-19 07:54:10 -07:00
Andy2
94b8aedda7
generalize relay-msg-check code so can be used from two places.
2010-10-19 07:53:26 -07:00
Andy2
d1b1e6db14
refactor into common subroutine -- no behavior change
2010-10-19 07:50:23 -07:00
Andy2
994a73e28b
return null, not empty list, when nothing found
2010-10-19 07:49:54 -07:00
Andy2
f31e28dbd7
menu and strings for check-server menu added to GamesList
2010-10-19 07:49:23 -07:00
Andy2
ab8c3f985e
add generic info dialog that, with luck, can be reused.
2010-10-19 07:48:34 -07:00
Andy2
b718804a4b
new AsyncTask for pinging server on demand
2010-10-19 07:47:05 -07:00