Commit Graph

505 Commits

Author SHA1 Message Date
Michael Bayne a49e2c26f3 Adapt or perish!
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@355 c613c5cb-e716-0410-b11b-feb51c14d237
2007-07-13 22:10:26 +00:00
Michael Bayne d5023554e8 Allow a SceneService.moveTo() to respond by requesting that the client move to
a new server and reissue its request, which it, in theory, now does.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@354 c613c5cb-e716-0410-b11b-feb51c14d237
2007-07-13 21:59:46 +00:00
Michael Bayne 6a77a7e1f1 Widening.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@353 c613c5cb-e716-0410-b11b-feb51c14d237
2007-07-13 19:57:46 +00:00
Par Winzell 872d13660c If there's nothing to query, don't query.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@352 c613c5cb-e716-0410-b11b-feb51c14d237
2007-07-10 16:42:13 +00:00
Ray Greenwell 9b5d3cca12 Use the new ObjectMarshaller.
Note that the default value of the encodeArrayElements has changed to reflect
the more general-purpose use.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@351 c613c5cb-e716-0410-b11b-feb51c14d237
2007-07-06 22:27:16 +00:00
Ray Greenwell 54c571f7f5 Bugfix: user cookies should be validated as serializable.
This breaks UD's current cookie mechanism, but it's easily fixed.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@350 c613c5cb-e716-0410-b11b-feb51c14d237
2007-07-06 21:43:17 +00:00
Par Winzell 48bde23d17 Don't rate guests, and don't include guests in the rating adjustments for persistent players. Generally more robust code.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@349 c613c5cb-e716-0410-b11b-feb51c14d237
2007-07-06 01:07:03 +00:00
Par Winzell 3484e8cd1f Let the rating repository accept integers rather than Names, and tweak the delegate accordingly. Hrm, does this handle guests correctly, actually?
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@348 c613c5cb-e716-0410-b11b-feb51c14d237
2007-07-05 23:18:44 +00:00
Michael Bayne a78c1a35d9 Exception not needed.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@347 c613c5cb-e716-0410-b11b-feb51c14d237
2007-07-05 19:54:12 +00:00
Michael Bayne 4628b8fdff Move UserIdentifier up to GameManager where it can be used by other services.
Revamped the way the GameCookieManager does its business.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@346 c613c5cb-e716-0410-b11b-feb51c14d237
2007-07-05 19:50:33 +00:00
Par Winzell 63adadcd24 Third time's a charm.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@345 c613c5cb-e716-0410-b11b-feb51c14d237
2007-07-05 16:01:07 +00:00
Par Winzell 84300e0576 This would be easier if I had Yohoho checked out.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@344 c613c5cb-e716-0410-b11b-feb51c14d237
2007-07-05 15:51:55 +00:00
Par Winzell bebdd273cd Don't compile parlor/ratings if we don't use Depot.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@343 c613c5cb-e716-0410-b11b-feb51c14d237
2007-07-05 15:39:20 +00:00
Par Winzell a3d1d0b7cb First draft of rating support in Vilya. The algorithm implementation was stolen from Bang and mutated. This implementation assumes that the subclasser can always map Name to an integer user identifier. If this is not the case we'll need to do something tricky with subclassed generic RatingRecords or whatever.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@342 c613c5cb-e716-0410-b11b-feb51c14d237
2007-07-05 15:06:49 +00:00
Michael Bayne 1a21229cd4 Remove the cookie when the player leaves the room, not necessarily when their
game ends. We may need their when the game is not in play. playerGameDidEnd()
was removing based on player index rather than playerOId which was is correct.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@341 c613c5cb-e716-0410-b11b-feb51c14d237
2007-07-03 02:10:20 +00:00
Michael Bayne b7e78fa8ac Allow the GameCookieManager to be initialized for local operation using Java's
preferences system to store cookies so that cookies will work in the standalone
test environment.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@340 c613c5cb-e716-0410-b11b-feb51c14d237
2007-07-02 20:39:41 +00:00
Par Winzell eb153ea11f Vilya will be harnessing the awesome power of Depot now, so let's bring in the genrecord task.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@339 c613c5cb-e716-0410-b11b-feb51c14d237
2007-07-02 18:30:00 +00:00
Michael Bayne b19e96796c Check autoReady_v1 in a backwards compatible way (old games won't have set it
at all).


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@338 c613c5cb-e716-0410-b11b-feb51c14d237
2007-06-28 07:02:47 +00:00
Michael Bayne 33fbff4aba getPresentPlayer() fails after the game is ended because _playerOids is cleared
out. Use the caller's name instead.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@337 c613c5cb-e716-0410-b11b-feb51c14d237
2007-06-28 06:37:17 +00:00
Dave Hoover b7f32ddd96 computeEnteringLocation's signature changed back in r322. Fixed this up to
match, and threw in a bunch of @Overrides so that we won't get bitten by
that again in this particular file.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@336 c613c5cb-e716-0410-b11b-feb51c14d237
2007-06-27 22:26:06 +00:00
Michael Bayne 43d53e73a8 Fix booches.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@335 c613c5cb-e716-0410-b11b-feb51c14d237
2007-06-27 22:06:23 +00:00
Michael Bayne ebdf4f8fe2 Allow the border to be turned off entirely.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@334 c613c5cb-e716-0410-b11b-feb51c14d237
2007-06-27 22:05:44 +00:00
Dave Hoover ae4596def5 Bag out if we get a progress event from a non-player as we'll just blow
up on an ArrayIndexOutOfBoundsException a second later anyways.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@333 c613c5cb-e716-0410-b11b-feb51c14d237
2007-06-27 21:18:19 +00:00
Dave Hoover f85958032f Move the check for events for a non-puzzler after the checks
for invalid rounds and straggling events; if we've ended the
game and are getting straggling events, _playerOids has already
been cleared out, so it'll always look like a non-player.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@332 c613c5cb-e716-0410-b11b-feb51c14d237
2007-06-27 00:27:00 +00:00
Dave Hoover 6b1066169f Tabs -> spaces
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@331 c613c5cb-e716-0410-b11b-feb51c14d237
2007-06-26 00:07:57 +00:00
Michael Bayne 1c92282772 Freak not out if someone adds a click handler to something and removes said
thing from the stage in their click handler.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@330 c613c5cb-e716-0410-b11b-feb51c14d237
2007-06-25 23:57:19 +00:00
Michael Bayne 338e9e789b gameDidEnd():
Clear out _playerOids when a game ends so that all players must re-call
playerReady() to restart the game.

playersAllhere();
Start the game if all players call playerReady() when the game is not in play
(previously this only happened if the game was in the pre-game state).

I know of one place this will affect Yohoho which I will fix, but if there's
anywhere else where we are restarting an ended game, fixes will be needed.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@329 c613c5cb-e716-0410-b11b-feb51c14d237
2007-06-25 20:38:45 +00:00
Michael Bayne b87eacd9d6 Allow a game to delay its start until all of its players are actually ready
rather than assuming that as soon as they construct the EZGameControl, they're
ready to play. That's not totally unreasonable, but with this new explicit
mechanism, games can also "rematch" (or just replay if it's single player) by
having all clients call playerReady() again after the game has ended.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@328 c613c5cb-e716-0410-b11b-feb51c14d237
2007-06-25 20:36:16 +00:00
Michael Bayne 15bbb435c7 Grab our starting location from the scene when we switch scenes so that
getIntendedLocation() will return a valid value even before we've moved
somewhere in our new scene.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@327 c613c5cb-e716-0410-b11b-feb51c14d237
2007-06-23 02:08:03 +00:00
Michael Bayne d895c99484 Widening.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@326 c613c5cb-e716-0410-b11b-feb51c14d237
2007-06-23 02:00:20 +00:00
Michael Bayne b452746dc2 Must've been my cracksmoking. (int)-1 == (short)-1.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@325 c613c5cb-e716-0410-b11b-feb51c14d237
2007-06-22 23:48:18 +00:00
Michael Bayne e1ca37cb16 (int)-1 != (short)-1. Yay for automatic integer type widening.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@324 c613c5cb-e716-0410-b11b-feb51c14d237
2007-06-22 23:03:13 +00:00
Michael Bayne af9a9b4895 Use the right portal id.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@323 c613c5cb-e716-0410-b11b-feb51c14d237
2007-06-22 22:08:41 +00:00
Michael Bayne fbfed05247 One more bit.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@322 c613c5cb-e716-0410-b11b-feb51c14d237
2007-06-22 22:01:50 +00:00
Michael Bayne fe2fc21830 Widened, modified traversePortal() so that the entire portal being traversed is
kept around and passed to mapEnteringBody() so that in Whirled instead of
having a portal map to a destination portal we can simply have the source
portal contain the location in the destination scene at which the arriver is to
be mapped.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@321 c613c5cb-e716-0410-b11b-feb51c14d237
2007-06-22 21:59:04 +00:00
Michael Bayne 114fc2f0e7 Widening.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@320 c613c5cb-e716-0410-b11b-feb51c14d237
2007-06-22 01:00:23 +00:00
Mike Thomas a22a6e5551 Ensure we've registered our receiver before we call our superclass's function, since this queues up a playerReady and it's important that our addToReceivers event is queued up before that so the game doesn't start before we're ready to go.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@319 c613c5cb-e716-0410-b11b-feb51c14d237
2007-06-21 00:10:25 +00:00
Michael Bayne 3e56079a1a Use GameDefinition.controller if it is configured.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@318 c613c5cb-e716-0410-b11b-feb51c14d237
2007-06-18 19:59:57 +00:00
Ray Greenwell bdef34eb69 Exposed a method to allow users to batch property set requests into a
dobj transaction. Thanks to mdb for the idea of accepting a function to run
for the batch, rather than exposing startTransaction() and commitTransaction()
directly.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@317 c613c5cb-e716-0410-b11b-feb51c14d237
2007-06-18 19:33:02 +00:00
Michael Bayne 5116ab7089 Widened, nixed unneeded "throws SQLException".
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@316 c613c5cb-e716-0410-b11b-feb51c14d237
2007-06-15 02:01:08 +00:00
Dave Hoover 4af30e853e Actually do keyword substitution on those freshly headered files.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@315 c613c5cb-e716-0410-b11b-feb51c14d237
2007-06-14 18:20:31 +00:00
Nathan Curtis e4240b1b08 Let the method fetching the container set its style and width.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@314 c613c5cb-e716-0410-b11b-feb51c14d237
2007-06-14 18:02:33 +00:00
Michael Bayne c47d1a7c5a Header fixy.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@313 c613c5cb-e716-0410-b11b-feb51c14d237
2007-06-14 17:41:07 +00:00
Ray Greenwell e7c10e2a98 It sucks that we have so many old things that use -1 to mean "no value".
I'm going to assume that this one is ok to change to 0, because that's
what a body's sceneId is going to be before they're ever placed in a scene.
(Which is why 0 is a much better default value.)


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@312 c613c5cb-e716-0410-b11b-feb51c14d237
2007-06-12 23:42:47 +00:00
Nathan Curtis 5f04c759c7 private -> watchable. Defaults to watchable. The table config itself is left alone, and retains
the concept of private, rather than watchable.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@311 c613c5cb-e716-0410-b11b-feb51c14d237
2007-06-06 18:25:37 +00:00
Ray Greenwell fb24ff77cc T time!
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@310 c613c5cb-e716-0410-b11b-feb51c14d237
2007-06-05 04:00:12 +00:00
Ray Greenwell e066a12dee Actually, let's make that take a prefix argument, and only return properties
that begin with that prefix.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@309 c613c5cb-e716-0410-b11b-feb51c14d237
2007-06-05 03:48:15 +00:00
Ray Greenwell 13fdafe0e5 Unneeded import.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@308 c613c5cb-e716-0410-b11b-feb51c14d237
2007-06-05 03:45:48 +00:00
Ray Greenwell f85af6ffab Added getPropertyNames(), which used to be unnecessary because you could get
the data Object (actually a proxy to it) and do a for or for-each on that,
but we removed that when we made 3 different kinds of sets.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@307 c613c5cb-e716-0410-b11b-feb51c14d237
2007-06-05 03:44:47 +00:00
Jonathan Le Plastrier c491a2db1d Fix the docs links.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@306 c613c5cb-e716-0410-b11b-feb51c14d237
2007-05-30 22:27:31 +00:00