Commit Graph

479 Commits

Author SHA1 Message Date
Michael Bayne 505d75ca6c Note our persistent record classes.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@379 c613c5cb-e716-0410-b11b-feb51c14d237
2007-07-25 23:48:10 +00:00
Michael Bayne a68b0aee35 Pipe down Mister.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@378 c613c5cb-e716-0410-b11b-feb51c14d237
2007-07-25 21:47:48 +00:00
Michael Bayne c826583754 More Depot NWO.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@377 c613c5cb-e716-0410-b11b-feb51c14d237
2007-07-25 21:07:35 +00:00
Mike Thomas e6b104f688 Don't trigger that the players have all arrived if it happens after the game has already started. This could previously occur if all the participants of the game leave and come back (without the game shutting down, possibly due to watchers).
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@376 c613c5cb-e716-0410-b11b-feb51c14d237
2007-07-25 16:33:11 +00:00
Mike Thomas 8ad7f5eaef Actually, this looks like the "right" way to do this - use the PlaceOid as our comparator.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@375 c613c5cb-e716-0410-b11b-feb51c14d237
2007-07-24 17:41:20 +00:00
Mike Thomas 85d3e3c7a7 location is an object, compare appropriately.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@374 c613c5cb-e716-0410-b11b-feb51c14d237
2007-07-24 17:31:19 +00:00
Michael Bayne 923eaf3f7d Added getSceneId(Place).
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@373 c613c5cb-e716-0410-b11b-feb51c14d237
2007-07-21 01:14:06 +00:00
Michael Bayne e03ddd71e8 Updates to reflect new BodyObject.location change. We now have a ScenePlace and
ScenedBodyObject goes away.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@372 c613c5cb-e716-0410-b11b-feb51c14d237
2007-07-21 00:47:00 +00:00
Dave Hoover c8b2f7212b Make it easier for drop puzzles to implement their own fancy drop logic
if they've got that burning need to do something out of the ordinary.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@371 c613c5cb-e716-0410-b11b-feb51c14d237
2007-07-19 22:38:32 +00:00
Dave Hoover 9d4a41f54f Widen up some drop puzzle code, and break the board filling action out into
its own function so puzzles wanting fancier fill logic can override it as
needed.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@370 c613c5cb-e716-0410-b11b-feb51c14d237
2007-07-19 19:07:50 +00:00
Michael Bayne 2123c43c3b The SceneDirector should observer location changes so that it can clear out its
current scene information if we move to a non-scene location. Previously when
we did so, it simply didn't notice and thought we were still in the last scene
that we had occupied.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@369 c613c5cb-e716-0410-b11b-feb51c14d237
2007-07-18 23:49:56 +00:00
Dave Hoover 8c88195b8b Now that games clear out their player oids when they finish, card games
need to keep around a copy to confirm that somebody is allowed to request
a rematch, and then pull everyone into it.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@368 c613c5cb-e716-0410-b11b-feb51c14d237
2007-07-18 16:39:50 +00:00
Dave Hoover 6958d99563 Widen.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@367 c613c5cb-e716-0410-b11b-feb51c14d237
2007-07-18 00:01:41 +00:00
Michael Bayne d4e113d784 Missed this.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@366 c613c5cb-e716-0410-b11b-feb51c14d237
2007-07-17 21:35:52 +00:00
Michael Bayne b6562d91e6 Keep our pending data in an extensible object so that we can easily preserve it
across server switches, when it would otherwise be cleared out.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@365 c613c5cb-e716-0410-b11b-feb51c14d237
2007-07-17 21:14:40 +00:00
Michael Bayne 08f7029220 We don't need the sceneId or version in the base class.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@364 c613c5cb-e716-0410-b11b-feb51c14d237
2007-07-17 01:24:56 +00:00
Michael Bayne cb05d5f56b Factored scene movement out into separate helper classes so that code can be a
bit more cleanly shared and the process of resolving zones and scenes and the
various fiddling done during a scene move can be more easily grokked.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@363 c613c5cb-e716-0410-b11b-feb51c14d237
2007-07-17 00:25:18 +00:00
Dave Hoover 755b835c93 Christmas comes but once a year, but svn keyword substitution day comes
whenever the urge strikes!


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@362 c613c5cb-e716-0410-b11b-feb51c14d237
2007-07-14 00:27:03 +00:00
Michael Bayne 959cf8c212 Leave all this scene registry creation to the implementing server.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@361 c613c5cb-e716-0410-b11b-feb51c14d237
2007-07-14 00:01:21 +00:00
Michael Bayne 522a96ef96 Regeneratd services, got new mo' betta type handling.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@360 c613c5cb-e716-0410-b11b-feb51c14d237
2007-07-13 23:53:31 +00:00
Michael Bayne b0f5087af3 SceneService is no longer kickin' it with the old skool crew.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@359 c613c5cb-e716-0410-b11b-feb51c14d237
2007-07-13 23:52:46 +00:00
Michael Bayne 5015ec26c2 Move SceneProvider stuff into the SceneRegistry as all the cool kids use the
new pattern of having a Provider interface which is implemented by a Manager or
other server-side entity.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@358 c613c5cb-e716-0410-b11b-feb51c14d237
2007-07-13 23:48:42 +00:00
Michael Bayne 5fbf4e17da More documentation cleanups, widening.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@357 c613c5cb-e716-0410-b11b-feb51c14d237
2007-07-13 22:27:08 +00:00
Michael Bayne a33bf1762f Widening.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@356 c613c5cb-e716-0410-b11b-feb51c14d237
2007-07-13 22:23:39 +00:00
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