Commit Graph

319 Commits

Author SHA1 Message Date
Michael Bayne c8f680696d It's a party in here. We have a method that handles checking whether to start
up a shutdown interval. Let's override that method and implement GameManager's
special requirements instead of overriding an unrelated method and duplicating
most of the code from it.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@588 c613c5cb-e716-0410-b11b-feb51c14d237
2008-04-29 18:57:15 +00:00
Ray Greenwell 759050d576 3 things: Sanity, clarity, correctness.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@587 c613c5cb-e716-0410-b11b-feb51c14d237
2008-04-29 18:33:46 +00:00
Charlie Groves e3cf4a762d Knock the idleUnloadPeriod down to 0 since GameManagers don't go idle and having a shutdown interval just keeps them resident in memory
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@586 c613c5cb-e716-0410-b11b-feb51c14d237
2008-04-29 17:55:03 +00:00
Charlie Groves 865c5def8b Return a boolean from setBaseTile to indicate if the tile was actually updated
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@585 c613c5cb-e716-0410-b11b-feb51c14d237
2008-04-25 00:45:43 +00:00
Charlie Groves 99ee2f5a5f Allow the minimum distance to be specified in computeEnteringLocation
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@584 c613c5cb-e716-0410-b11b-feb51c14d237
2008-04-22 17:35:21 +00:00
Michael Bayne 4ca129e527 Do some fiddly business to update our roundId locally in gameWillStart so that
all pre-game processing can properly know what round it is, but then actually
publish that value to the clients so that we can trigger off ROUND_ID to call
roundDidStart without having roundDidStart get called before gameDidStart.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@583 c613c5cb-e716-0410-b11b-feb51c14d237
2008-04-22 01:02:05 +00:00
Mike Thomas de194d5392 Break out the scene manager's method for handling moving to the default portal so that subclasses can override.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@582 c613c5cb-e716-0410-b11b-feb51c14d237
2008-04-19 00:23:07 +00:00
Charlie Groves 4a7cc53a88 Allow things other than portals to be painted using the portal drawing code
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@581 c613c5cb-e716-0410-b11b-feb51c14d237
2008-04-17 18:12:03 +00:00
Michael Bayne 47c9418eab @Entity -> @Table.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@579 c613c5cb-e716-0410-b11b-feb51c14d237
2008-04-01 21:39:08 +00:00
Charlie Groves 99205455e7 Move the common functionality from ObjectEditorDialog and PortalDialog into EditorDialog
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@578 c613c5cb-e716-0410-b11b-feb51c14d237
2008-03-26 03:23:40 +00:00
Michael Bayne 29460ce450 Don't let a player create a new table or join an existing table if they're
already sitting at a table. We also enforce this in the UI (though not in
certain cases in MSOY at the moment which is how this was uncovered).


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@577 c613c5cb-e716-0410-b11b-feb51c14d237
2008-03-24 23:00:09 +00:00
Michael Bayne c0ce0d188b Allow the no-show timer to be customized.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@576 c613c5cb-e716-0410-b11b-feb51c14d237
2008-03-21 18:17:03 +00:00
Dave Hoover 828753344d This got broken in the reorg; it's still possible for someone
to be asking for scene updates starting farther back than what 
we know about, so notice that case & return back a null list of 
updates rather than an incomplete one.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@575 c613c5cb-e716-0410-b11b-feb51c14d237
2008-03-19 17:36:22 +00:00
Michael Bayne ae4435d389 Actually just go back to returning null. That's what the javadocs say.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@574 c613c5cb-e716-0410-b11b-feb51c14d237
2008-03-18 23:51:51 +00:00
Michael Bayne b1e4460f0f Only claim to have updates if we have a non-zero sized array.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@573 c613c5cb-e716-0410-b11b-feb51c14d237
2008-03-18 23:49:53 +00:00
Michael Bayne 5710ea9d37 Allow scene updates to increment the version number by more than 1.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@572 c613c5cb-e716-0410-b11b-feb51c14d237
2008-03-18 22:54:51 +00:00
Mark Johnson ee6889395f This is throwing a wrench in bang, reverting it now and will take a better look at it later
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@571 c613c5cb-e716-0410-b11b-feb51c14d237
2008-03-13 20:21:48 +00:00
Charlie Groves 53655b2856 - Expose the results of addObject and deleteObject on EditorScenePanel
- Allow subclasses of EditorFrame to specify the EditorScenePanel and StageSceneWriter used



git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@570 c613c5cb-e716-0410-b11b-feb51c14d237
2008-03-12 06:09:41 +00:00
Charlie Groves d96a1390c5 Allow an orient to be specified to locationForObject
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@569 c613c5cb-e716-0410-b11b-feb51c14d237
2008-03-10 20:08:28 +00:00
Dave Hoover 04ff848f00 Thought I'd committed this ages ago when I was poking around at this stuff,
but apparently not. Use the helper method to see if the game's in play since
it's there for just that reason.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@566 c613c5cb-e716-0410-b11b-feb51c14d237
2008-02-29 19:06:07 +00:00
Charlie Groves a09b5a1324 Genericize
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@564 c613c5cb-e716-0410-b11b-feb51c14d237
2008-02-19 00:15:34 +00:00
Ray Greenwell bc0a042866 Parlor moves back here.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@559 c613c5cb-e716-0410-b11b-feb51c14d237
2008-02-17 00:59:38 +00:00
Ray Greenwell 3a9708b3de EZgame merges with whirled games.
Starting the checkins, this will break the build.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@557 c613c5cb-e716-0410-b11b-feb51c14d237
2008-02-17 00:46:49 +00:00
Charlie Groves 6ffedb1676 genericize
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@553 c613c5cb-e716-0410-b11b-feb51c14d237
2008-01-31 02:21:07 +00:00
Dave Hoover d622907abb Make the spot cluster chat stuff operate on UserMessages instead of creating
one at the 11th hour so we can pass in our own fancier UserMessage subclasses
as appropriate.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@552 c613c5cb-e716-0410-b11b-feb51c14d237
2008-01-29 19:09:30 +00:00
Dave Hoover c0dde2751c Break out registration of scene resolution listeners into its own function
so it's easily accessible to subclasses that are managing scene loading in
their own special ways.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@549 c613c5cb-e716-0410-b11b-feb51c14d237
2008-01-18 22:23:58 +00:00
Dave Hoover 16b210affe Little bit of type safety, little bit of redundant cast removal.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@548 c613c5cb-e716-0410-b11b-feb51c14d237
2008-01-17 01:25:18 +00:00
Michael Bayne 4d12a7f65e Fail earlier and more informatively.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@546 c613c5cb-e716-0410-b11b-feb51c14d237
2008-01-10 19:16:29 +00:00
Ray Greenwell 2de9fef19d A spot of cleanup.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@543 c613c5cb-e716-0410-b11b-feb51c14d237
2008-01-09 00:51:59 +00:00
Ray Greenwell 6e5142f938 At the end of a game, forget the current turn holder.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@541 c613c5cb-e716-0410-b11b-feb51c14d237
2008-01-05 01:09:39 +00:00
Ray Greenwell 8d55a105a9 Made turns work in party games as well as seated games.
In a party game, if a next player is unspecified, the player that has
been around the longest without getting a turn will get the turn.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@539 c613c5cb-e716-0410-b11b-feb51c14d237
2008-01-05 01:05:52 +00:00
Michael Bayne fea5deae0a Don't choke if we get a null locale parameter. Who knows what those kooky
callers might try.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@533 c613c5cb-e716-0410-b11b-feb51c14d237
2007-12-20 20:13:29 +00:00
Michael Bayne 8b2c12bd7d Nixed redundant casts.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@532 c613c5cb-e716-0410-b11b-feb51c14d237
2007-12-18 20:03:23 +00:00
Michael Bayne c37ddc3277 Revamped percentile tracker to support minimum and maximum value tracking.
While testing the new code I discovered that redistribution of large data sets
that approximate a normal curve can cause some funny quantization because the
redistribution algorithm assumes all values in a single bucket are flatly
distributed, but if they actually skew substantially toward the high or low end
of the bucket, then the redistribution generates a choppy curve. Fortunately
this has almost no impact on the percentile curve, which is what's actually
important, it just makes the graph of the contents of the buckets look less
smooth and sexy. Alas.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@530 c613c5cb-e716-0410-b11b-feb51c14d237
2007-12-14 02:17:27 +00:00
Mike Thomas 679f3c85cb This appears to have gotten misdirected in the great occupants-players renaming of '07. It always used to reference the member var, not the local var, and appears to still need to since the indices include all slots, not just the filled ones.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@527 c613c5cb-e716-0410-b11b-feb51c14d237
2007-12-13 18:50:54 +00:00
Ray Greenwell 8ee89b60e8 EZGame's done get gameWillReset(), so just clear the turn holder
in gameWillStart.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@523 c613c5cb-e716-0410-b11b-feb51c14d237
2007-12-07 21:41:22 +00:00
Michael Bayne 4f94248d8b Wait to start a party and seated continuous EZ games until we've heard
playerReady() from at least one player.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@522 c613c5cb-e716-0410-b11b-feb51c14d237
2007-12-07 21:33:31 +00:00
Ray Greenwell ddba842c5c Clear out the turn when the game restarts.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@519 c613c5cb-e716-0410-b11b-feb51c14d237
2007-12-07 19:44:48 +00:00
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