Commit Graph

331 Commits

Author SHA1 Message Date
Michael Bayne daec25d27c Avoid name collision.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@516 c613c5cb-e716-0410-b11b-feb51c14d237
2007-12-06 01:42:02 +00:00
Michael Bayne 32c4464a85 Revamped some table stuff. First I don't know why I called players occupants,
that was stupid. Now they're called players. Next I added a list of watchers
rather than simply a count. If we're going to go to all the trouble to update
the table when the watchers change, let's have the goods.

This will probably break Bang and/or Yohoho. I'll fix them toot sweet.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@515 c613c5cb-e716-0410-b11b-feb51c14d237
2007-12-06 00:37:32 +00:00
Dave Hoover 0048bde6db Keyword substitution.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@514 c613c5cb-e716-0410-b11b-feb51c14d237
2007-12-03 21:09:42 +00:00
Michael Bayne 6f2dd5e614 Not so verbose.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@513 c613c5cb-e716-0410-b11b-feb51c14d237
2007-12-03 18:30:22 +00:00
Ray Greenwell 55926ab3ea Don't send a message about the request for a rematch in single-player games.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@511 c613c5cb-e716-0410-b11b-feb51c14d237
2007-11-27 02:15:49 +00:00
Ray Greenwell 451baa1fb6 Created an ezgame message bundle, use that for this rematch message.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@508 c613c5cb-e716-0410-b11b-feb51c14d237
2007-11-20 01:58:42 +00:00
Ray Greenwell 558821cb81 Unbreak the build.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@503 c613c5cb-e716-0410-b11b-feb51c14d237
2007-11-19 23:50:16 +00:00
Ray Greenwell bffb48d11b Send a chat message to the game when players request a rematch.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@502 c613c5cb-e716-0410-b11b-feb51c14d237
2007-11-19 23:37:13 +00:00
Michael Bayne 6a783e8bc4 Make the spot services work if you don't implement ClusteredBodyObject. You
won't be able to use clusters but you'll still be able to use locations and
portals.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@501 c613c5cb-e716-0410-b11b-feb51c14d237
2007-11-15 02:09:51 +00:00
Michael Bayne 3e296fce67 Similarly stay where we are on a failed move if we didn't leave our current
location in trying to get there.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@500 c613c5cb-e716-0410-b11b-feb51c14d237
2007-11-15 02:00:08 +00:00
Michael Bayne 9cfc273336 We don't need to be able to end the game here, just be a player. Simplified
some of the access checking while I was in there since the only thing that
required the turn-holder was endTurn().


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@494 c613c5cb-e716-0410-b11b-feb51c14d237
2007-11-13 21:52:16 +00:00
Ray Greenwell 1efafd649a "We'll add it when we need it" was what was said before, and now the
default non-fucking-obtuse dictionary has been replaced by a scrabble
dictionary that contains fucked-up wordfreak words.
You know, if you're playing a normal game "abys" is wrong, and "abyss"
is right.

So I at least added the parameter for selecting a dictionary.
Implementation pending.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@492 c613c5cb-e716-0410-b11b-feb51c14d237
2007-11-12 20:09:41 +00:00
Michael Bayne 679a5f1cfc Oops, we don't always have a no-show timer.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@491 c613c5cb-e716-0410-b11b-feb51c14d237
2007-11-12 01:57:38 +00:00
Michael Bayne 91b416f18e Cancel our no-show interval once the game starts so that if it expires after an
EZGame has finished it doesn't think that it's still pre-game and that it
should actually cancel the game.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@490 c613c5cb-e716-0410-b11b-feb51c14d237
2007-11-10 05:27:17 +00:00
Michael Bayne 717beba71f Extract GameManager creation into a specializable method.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@489 c613c5cb-e716-0410-b11b-feb51c14d237
2007-11-10 05:03:47 +00:00
Michael Bayne 4a06907ec0 Redundant cast removal.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@488 c613c5cb-e716-0410-b11b-feb51c14d237
2007-11-10 04:54:36 +00:00
Michael Bayne eb80403bbe No longer pass the manager in the constructor. As many of these delegates are
in the wild, we'll deprecate the old constructors rather than remove them.  Yay
cruft!


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@487 c613c5cb-e716-0410-b11b-feb51c14d237
2007-11-10 04:41:44 +00:00
Michael Bayne 265cf43941 Freak not out if we're being unstreamed on a Java client.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@486 c613c5cb-e716-0410-b11b-feb51c14d237
2007-11-10 01:35:02 +00:00
Michael Bayne 100a7e069a Added validateCanEndGame() made it possible for server entities to call
invocation service methods.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@485 c613c5cb-e716-0410-b11b-feb51c14d237
2007-11-10 01:20:42 +00:00
Michael Bayne 8059d9bc12 Allow the game manager we create to be augmented.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@484 c613c5cb-e716-0410-b11b-feb51c14d237
2007-11-10 01:20:19 +00:00
Michael Bayne 5d1bafd571 Nix unused imports.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@483 c613c5cb-e716-0410-b11b-feb51c14d237
2007-11-10 01:20:01 +00:00
Michael Bayne 026994edb6 Added a precondition.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@479 c613c5cb-e716-0410-b11b-feb51c14d237
2007-11-03 00:07:32 +00:00
Michael Bayne 3159f330e8 We don't control the XML provided by the game makers so don't generate warning
messages if they put bogus shit in their game definition.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@477 c613c5cb-e716-0410-b11b-feb51c14d237
2007-11-01 20:50:13 +00:00
Michael Bayne df7a83bb32 We don't need to log a warning on NoSuchSceneException.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@476 c613c5cb-e716-0410-b11b-feb51c14d237
2007-10-31 20:33:35 +00:00
Michael Bayne 70d3d218c0 Actually we only go up to 99.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@475 c613c5cb-e716-0410-b11b-feb51c14d237
2007-10-30 01:28:21 +00:00
Michael Bayne 1bcaff4c59 Widening, added getCounts(), getRequiredScores().
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@474 c613c5cb-e716-0410-b11b-feb51c14d237
2007-10-30 00:15:53 +00:00
Dave Hoover adaf80af0a Rerun generators.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@473 c613c5cb-e716-0410-b11b-feb51c14d237
2007-10-26 21:06:42 +00:00
Ray Greenwell 3bb6c7e3f6 - In TurnGameManagerDelegate, pulled out random-turn picking into its
own method, so that subclasses can get that behavior without assuming
  their their superclass implementation of setFirstTurnHolder does that.
- Use that in EZ's code, and also fall back to it if there's some problem
  with the user-specified next-turn value and it's nobody's turn.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@464 c613c5cb-e716-0410-b11b-feb51c14d237
2007-10-23 01:36:20 +00:00
Ray Greenwell df72a961db - Start up EZGames so that it's nobody's turn.
- If the turn ends when it's nobody's turn and the user didn't specify
  who goes next, pick a random player to go next.
- Fixed ancient bug that caused a NPE, every time. Nobody tickled it
  by having a game where turns progress in a custom order.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@463 c613c5cb-e716-0410-b11b-feb51c14d237
2007-10-23 01:27:05 +00:00
Ray Greenwell ef70bd5752 Comment spelling fix.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@461 c613c5cb-e716-0410-b11b-feb51c14d237
2007-10-23 01:23:11 +00:00
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
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 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
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