Michael Bayne
c6f72fbdf8
Create an empty occupants and oids array if we're creating a party table.
...
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@459 c613c5cb-e716-0410-b11b-feb51c14d237
2007-10-19 22:04:33 +00:00
Michael Bayne
1b7f810246
Added getTopRatings(), moved constants into RatingCodes.
...
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@451 c613c5cb-e716-0410-b11b-feb51c14d237
2007-10-15 19:28:20 +00:00
Michael Bayne
1fca67a044
Factored createTable() out into a method that can be called on the server.
...
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@449 c613c5cb-e716-0410-b11b-feb51c14d237
2007-10-12 01:09:46 +00:00
Michael Bayne
a88a5a3482
No need to wait for didStartup() to create this set.
...
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@444 c613c5cb-e716-0410-b11b-feb51c14d237
2007-10-08 17:14:17 +00:00
Michael Bayne
2862b32763
Comment fiddling; clear out _pendingOids at the end of the game to avoid
...
potential weirdness if someone got into the room but never reported ready.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@443 c613c5cb-e716-0410-b11b-feb51c14d237
2007-10-08 17:12:46 +00:00
Nathan Curtis
377d0c93f5
Keep track of of players that have arrived and players that are ready separately. The old check
...
would start the game as soon as everyone had arrived and *one* person called playerReady(). Now
we do the right thing and only start the game once everyone has arrived and everyone has called
playerReady().
As with the old code, this only affects clients that use the playerInRoom() method.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@442 c613c5cb-e716-0410-b11b-feb51c14d237
2007-10-06 00:35:30 +00:00
Michael Bayne
962c33d900
Pass the GameManager to gameCreated().
...
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@440 c613c5cb-e716-0410-b11b-feb51c14d237
2007-09-27 19:38:09 +00:00
Michael Bayne
52259f26dd
Track the last update time for ratings.
...
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@439 c613c5cb-e716-0410-b11b-feb51c14d237
2007-09-25 16:32:59 +00:00
Michael Bayne
3eff6e03cd
Allow derived classes to not rate games for other reasons.
...
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@438 c613c5cb-e716-0410-b11b-feb51c14d237
2007-09-25 16:32:17 +00:00
Michael Bayne
2d24116c97
Don't rate anything if the game is not marked as rated.
...
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@437 c613c5cb-e716-0410-b11b-feb51c14d237
2007-09-25 16:12:28 +00:00
Par Winzell
e21c14c4c1
Since returning -1 is perfectly acceptable for this method, let's be robust in handling an call to it for an unknown player; we already checked for unknown opponents.
...
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@435 c613c5cb-e716-0410-b11b-feb51c14d237
2007-09-14 15:35:25 +00:00
Michael Bayne
6194948d56
Added toString().
...
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@434 c613c5cb-e716-0410-b11b-feb51c14d237
2007-09-12 02:16:19 +00:00
Michael Bayne
8e52521b20
Nix debug logging.
...
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@433 c613c5cb-e716-0410-b11b-feb51c14d237
2007-09-11 22:24:21 +00:00
Michael Bayne
ea3ab0bf3f
Nix PercentileRecord.type allow gameId to be fiddled by derive class.
...
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@432 c613c5cb-e716-0410-b11b-feb51c14d237
2007-09-11 21:47:06 +00:00
Michael Bayne
fe3db313bf
Grammar patrol.
...
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@431 c613c5cb-e716-0410-b11b-feb51c14d237
2007-09-11 20:58:28 +00:00
Michael Bayne
93d65cfb61
Need to reset modified when saving rating for departing player.
...
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@430 c613c5cb-e716-0410-b11b-feb51c14d237
2007-09-11 20:57:42 +00:00
Michael Bayne
8316c3f40c
Revamped the rating manager delegate to support party games and to only read
...
and write ratings once regardless of how many times the game is played.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@429 c613c5cb-e716-0410-b11b-feb51c14d237
2007-09-11 20:56:45 +00:00
Michael Bayne
9450dc5f2c
Don't complain about transitioning back to PRE_GAME.
...
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@428 c613c5cb-e716-0410-b11b-feb51c14d237
2007-09-11 19:45:38 +00:00
Michael Bayne
2b81903c73
Zoiks, missed the parameterized type.
...
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@427 c613c5cb-e716-0410-b11b-feb51c14d237
2007-09-11 18:39:05 +00:00
Michael Bayne
e95d0aa58f
Oops, we need 412 bytes to store a percentiler's data.
...
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@426 c613c5cb-e716-0410-b11b-feb51c14d237
2007-09-11 02:20:30 +00:00
Michael Bayne
27c8eac61c
Added getRecordedCount().
...
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@425 c613c5cb-e716-0410-b11b-feb51c14d237
2007-09-11 01:50:24 +00:00
Michael Bayne
c08cad2642
Added tracking for percentiler modification; nixed some unneeded casts.
...
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@424 c613c5cb-e716-0410-b11b-feb51c14d237
2007-09-11 00:36:35 +00:00
Michael Bayne
15dd17a308
Added SCHEMA_VERSION.
...
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@423 c613c5cb-e716-0410-b11b-feb51c14d237
2007-09-10 23:17:19 +00:00
Michael Bayne
5dd8695a9a
Added support for tracking multiple per-game percentile distributions.
...
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@422 c613c5cb-e716-0410-b11b-feb51c14d237
2007-09-10 20:44:50 +00:00
Michael Bayne
5392df8770
Make it possible for a player to report in when they arrive in a room but not
...
cause the game to start. In Whirled we'll have all players report in
immediately for games that want to handle playerReady() themselves so that they
can do whatever they want before the game starts and then finally start it with
a call to playerReady() from all the players.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@417 c613c5cb-e716-0410-b11b-feb51c14d237
2007-08-24 23:40:21 +00:00
Michael Bayne
8f3293eb0b
Don't try to rate players if there are no winners. Otherwise everyone is rated
...
as losing.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@411 c613c5cb-e716-0410-b11b-feb51c14d237
2007-08-22 00:19:02 +00:00
Michael Bayne
f1a94dfac9
More tidying.
...
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@410 c613c5cb-e716-0410-b11b-feb51c14d237
2007-08-22 00:14:26 +00:00
Michael Bayne
a6398a2d60
Oops missed a spot.
...
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@409 c613c5cb-e716-0410-b11b-feb51c14d237
2007-08-22 00:10:59 +00:00
Michael Bayne
f6481922f6
Tidied things up, avoid doing things on the invoker thread that should be done
...
on the dobj thread.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@408 c613c5cb-e716-0410-b11b-feb51c14d237
2007-08-22 00:09:57 +00:00
Michael Bayne
abeac5d1b2
Allow rating records to be deleted (we'll probably want a delete for just the
...
game and one for just the user as well but I'll add those later).
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@406 c613c5cb-e716-0410-b11b-feb51c14d237
2007-08-21 21:50:11 +00:00
Par Winzell
4567264b91
We're not going to do this INDEX: comment thing.
...
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@404 c613c5cb-e716-0410-b11b-feb51c14d237
2007-08-16 21:53:47 +00:00
Michael Bayne
b4e207eeae
columns -> fields.
...
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@401 c613c5cb-e716-0410-b11b-feb51c14d237
2007-08-13 23:21:16 +00:00
Par Winzell
e386d6c3a0
Add an index, document index use for Depot operations. Do you think this is worthwhile? We should really just about never see a non-indexed query during normal production use and one way to maintain that discipline is with a comment line like this.
...
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@399 c613c5cb-e716-0410-b11b-feb51c14d237
2007-08-07 18:05:44 +00:00
Michael Bayne
09ad0ca87d
Updates to reflect SpeakProvider refactoring.
...
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@395 c613c5cb-e716-0410-b11b-feb51c14d237
2007-07-31 21:05:36 +00:00
Michael Bayne
2885a2b41c
Use a PersistenceContext to initialize the RatingRepository.
...
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@380 c613c5cb-e716-0410-b11b-feb51c14d237
2007-07-26 00:22:38 +00:00
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
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
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
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
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
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
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
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
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
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
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
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