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
Ray Greenwell
f1a511d80c
Bye-bye extensible player lists. Your functionality will be simplified and
...
supplanted by the one true player list.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@458 c613c5cb-e716-0410-b11b-feb51c14d237
2007-10-18 02:31:03 +00:00
Michael Bayne
2736d652e3
Need to do that before we clear out _userFuncs.
...
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@457 c613c5cb-e716-0410-b11b-feb51c14d237
2007-10-18 00:59:43 +00:00
Michael Bayne
60b3eabc16
Disconnect the client side when we disconnect on the backend so that we don't
...
end up differing in opinion about whether or not we're connected.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@456 c613c5cb-e716-0410-b11b-feb51c14d237
2007-10-18 00:57:56 +00:00
Michael Bayne
4e462ce974
getOccupants -> getOccupantIds.
...
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@455 c613c5cb-e716-0410-b11b-feb51c14d237
2007-10-17 21:38:46 +00:00
Michael Bayne
ec1a243d19
When we start and end a transaction in EZGame do so on the InvocationDirector
...
as that's where all of our messages are generated.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@454 c613c5cb-e716-0410-b11b-feb51c14d237
2007-10-17 21:33:52 +00:00
Ray Greenwell
18ac5a065f
getOccupants() -> getOccupantIds(), which is more accurate and consistent
...
with SeatingControl's getPlayerIds().
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@453 c613c5cb-e716-0410-b11b-feb51c14d237
2007-10-17 21:09:48 +00:00
Ray Greenwell
c9fddfdc39
Checkpoint this crap, even though it's going to be moved and reworked.
...
Meanwhile I'm busy investigating rabbit holes of rabbit holes.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@452 c613c5cb-e716-0410-b11b-feb51c14d237
2007-10-17 19:24:29 +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
Ray Greenwell
e8bd79d1e3
Start the game immediately if the user specifies to restart in 0 seconds.
...
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@450 c613c5cb-e716-0410-b11b-feb51c14d237
2007-10-15 18:28:40 +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
a70048dfde
Don't start the game while we're still initializing the manager. Let the
...
manager finish the startup process and then call startGame().
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@448 c613c5cb-e716-0410-b11b-feb51c14d237
2007-10-10 03:32:03 +00:00
Robert Zubeck
f6b716c4ea
Reset the round number to zero before each EZ game (in case the player keeps restarting the
...
game without quitting it). This also ensures they will get a fresh RoundStarted event at the
beginning of each new game.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@447 c613c5cb-e716-0410-b11b-feb51c14d237
2007-10-10 00:52:26 +00:00
Michael Bayne
70ea63f6cb
Un-negate the round id if a game does decide to endRound() first and then endGame().
...
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@446 c613c5cb-e716-0410-b11b-feb51c14d237
2007-10-09 23:49:02 +00:00
Michael Bayne
d136386348
Note that endRound() should not be called immediately prior to endGame(),
...
rather endGame() should be called and the last round is never officially
"ended". This ensures that GameObject.roundId is left in a sane state at the
end of the game in case of a rematch.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@445 c613c5cb-e716-0410-b11b-feb51c14d237
2007-10-09 23:47:37 +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
Par Winzell
2558e82959
Make sure our seatedness variable accurately reflects the departure of our table.
...
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@441 c613c5cb-e716-0410-b11b-feb51c14d237
2007-10-02 23:01:40 +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
Michael Bayne
c76474a640
Drop forced move requests if they come in while we have a move pending. We may
...
have to do some things on the server as well which blindly ejects the user from
their current place, but now the worst case is that a player ends up nowhere in
the event of extreme lag and clicks the button to go somewhere again rather
than having a move half-completed get aborted and the code ending up confused
and not properly able to clean up after itself.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@436 c613c5cb-e716-0410-b11b-feb51c14d237
2007-09-24 20:49:01 +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
81f49e4125
Use junit4.jar.
...
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@421 c613c5cb-e716-0410-b11b-feb51c14d237
2007-08-28 20:26:18 +00:00
Nathan Curtis
de0537d516
how long has this been broken? In party games, there is a "private" checkbox instead of a
...
"watchable" checkbox, but it was treating it like "watchable", even thought that makes no sense
for party games (at present).
As it turns out, party games are broken right now anyway, which is what I'm going to fix next.
For now, we'll allow party games to use a "Private" checkbox, in case someone wants to play
by themselves. Private party games won't be given a "join" button.
This solution is wacky, as is noted in one of the comments. This will need to be re-visited in the
future, most likely when we do the massive game lobby revamp.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@420 c613c5cb-e716-0410-b11b-feb51c14d237
2007-08-27 18:53:54 +00:00
Michael Bayne
cc3976a213
Use playerInRoom() to let the game manager know we've arrived but aren't ready
...
to start the game yet.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@419 c613c5cb-e716-0410-b11b-feb51c14d237
2007-08-24 23:54:06 +00:00
Michael Bayne
388c616b40
Reset EZ games to PRE_GAME after they end so that they can be restarted.
...
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@418 c613c5cb-e716-0410-b11b-feb51c14d237
2007-08-24 23:45:47 +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
74665f1663
Added EZGameControl.restartGameIn(seconds).
...
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@416 c613c5cb-e716-0410-b11b-feb51c14d237
2007-08-23 23:19:51 +00:00
Michael Bayne
71f2a1442c
Added setWinners().
...
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@415 c613c5cb-e716-0410-b11b-feb51c14d237
2007-08-23 23:10:02 +00:00
Michael Bayne
b9ba20c19b
Derived classes that are not in this package need to be able to call
...
dispatch().
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@414 c613c5cb-e716-0410-b11b-feb51c14d237
2007-08-23 00:32:36 +00:00
Michael Bayne
7c29339626
Extract that handy method.
...
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@413 c613c5cb-e716-0410-b11b-feb51c14d237
2007-08-22 23:54:01 +00:00
Michael Bayne
1a272ef171
Widening and removal of compatibility code for never-in-the-wild functionality.
...
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@412 c613c5cb-e716-0410-b11b-feb51c14d237
2007-08-22 23:29:54 +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