Commit Graph

586 Commits

Author SHA1 Message Date
Dave Hoover bbbdd3bb60 Let NamedSetAdapter do the lifting for us.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5779 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-05-12 23:24:42 +00:00
Dave Hoover 21cd434b4f Would've been better if I didn't misread the docs for "match" and had
realized my last change didn't actually work. We'll FIND stop words in
text now so our regexp doesn't have to match the whole string.

Took a peek at the as docs for RegExp.test() and it looks like the flash
side of things should be working properly after Ray duplicated this over
there, but I wouldn't mind if someone w/ that built could just double 
check that stopwords are still working properly there.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5769 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-05-04 18:25:12 +00:00
Dave Hoover f3e5b1a9c2 We don't need to make _stopMatcher match the entire content of the
text that contains the stop word since the filter only cares if it
exists at all in the text.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5766 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-05-02 06:29:40 +00:00
Michael Bayne f6a689cd47 Ray points out a flaw in our vizname to authname approach:
1. User logs onto node 1, node 2 establishes a viztoauth mapping.
2. User logs onto node 3 without logging out of 1, overwriting their
session.
3. Node 2 sees "member logged onto 3" and updates the viztoauth mapping.
4. Node 2 sees "member logged off of 2" and clears the viztoauth mapping.
5. Viola, there is no active viztoauth mapping, but user is online.

Distributed programming is hard. Fortunately on Whirled we can convert any
vizname to an authname without needing a mapping, so we'll just foist that
requirement onto every user of the crowd peer services (this will break Bang).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5755 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-04-28 17:00:10 +00:00
Michael Bayne c754d42f5b Oops, it's called addDispatcher() now.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5740 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-04-20 17:58:18 +00:00
Michael Bayne 9155065ca8 Let's call it addDispatcher() to distinguish it from InvocationManager's
registerDispatcher() which requires a corresponding call to clearDispatcher().


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5739 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-04-20 17:55:33 +00:00
Michael Bayne 398ee3cfa2 Grant handy automatic invocation service clearing to place manager delegates.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5738 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-04-20 17:53:24 +00:00
Michael Bayne 1eefc50828 Common problem: place managers register dispatchers when started up and forget
to clear them when they shutdown. Solution: add a mechanism for registering
dispatchers such that they are auto-cleared when the manager shuts down.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5737 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-04-20 17:44:03 +00:00
Michael Bayne e1b29dbf6f The BodyObject can definitely supply its Name.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5717 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-04-14 16:31:17 +00:00
Ray Greenwell bc6929d239 Actually, let's make a whitelist the valid modes.
YAGNI code, no ability to break-out the whitelist.
No other game of ours uses other valid modes, does it?


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5701 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-03-26 23:36:03 +00:00
Michael Bayne 688f2580ed Varargified log calls.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5697 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-03-26 00:02:19 +00:00
Ray Greenwell 647a25dfdc Even better: have the base PeerManager call clientLoggedOn and clientLoggedOff
for every client on another node when it connects or disconnects from that node.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5696 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-03-25 23:10:02 +00:00
Ray Greenwell 4a5136d3f0 Bugfix: chat bug.
If node A started up and connected to node B, which already had players logged on,
then nobody on A could send chat to anyone on B.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5695 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-03-25 22:56:29 +00:00
Ray Greenwell a419ed8455 Support for broadcasting with either a custom attention level
(for system messages), or a custom mode (for user broadcasts).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5693 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-03-25 21:23:32 +00:00
Michael Bayne 4a7cb2c82f Rethink! Instead of hacking up the peer ClientInfo system for the one thing
that actually needs to look clients up by visible name (chat forwarding), we'll
just leave things as is (as in mapped by auth username) and take care of our
own shit in ClientPeerManager.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5683 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-03-11 17:47:35 +00:00
Ray Greenwell 849aeed79c Me wrap you long line.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5669 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-02-24 02:25:02 +00:00
Dave Hoover 41003c6059 Widen/remove unused variable
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5663 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-02-23 21:53:18 +00:00
Michael Bayne 1f6f8edeb9 Allow custom BodyLocators to be provided to different PlaceManagers. Twisty
maze of passages!


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5655 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-02-13 03:08:01 +00:00
Michael Bayne 9a4f2edc5d We can just inject the injector.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5653 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-02-13 02:51:34 +00:00
Par Winzell 3171bc1ff4 Change the behaviour of the NameUpdater to play nicely with Name implementations where equal() does not depend on display name. Write cumbersome TODO comment.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5648 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-02-02 22:03:26 +00:00
Michael Bayne a34f1592f4 Code hygiene.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5626 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-01-08 22:16:23 +00:00
Ray Greenwell 8dcc87a749 Match some of the changes on the actionscript side, but did not
bring the "ChatSnooper" interface over, because it's not yet needed here.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5623 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-01-07 02:22:47 +00:00
Michael Bayne 8fcfa6e211 Added bodyWillLeave() to go with bodyWillEnter() for great symmetry and
justice. Cleaned up some other stuff in the process.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5620 542714f4-19e9-0310-aa3c-eee0fc999fb1
2009-01-06 03:08:21 +00:00
Par Winzell fb4a28b2ed Give Bureaus their own client object subclass. It does nothing at the moment, but we need it to be a distinct type for access control purposes.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5600 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-12-12 15:36:46 +00:00
Michael Bayne 82da1521f3 I swear this was generating unchecked type warnings before, but it seems not to
be now.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5596 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-12-11 01:21:45 +00:00
Michael Bayne f6f5a86db0 Here too.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5594 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-12-11 01:12:06 +00:00
Michael Bayne 4e01505dc5 We need the body here as well.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5588 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-12-10 01:05:49 +00:00
Michael Bayne 49f2bdb493 Extract occupant info adding into an overridable method so that derived classes
can both participate in the combined event that adds an occupant's info and can
coordinate whether their info is added before or after.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5586 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-12-10 01:04:05 +00:00
Michael Bayne 343a2a7026 Nix unread variable.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5582 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-12-08 19:01:17 +00:00
Michael Bayne 92713ee4b8 Let's do our adding in a single event.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5580 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-12-05 22:03:04 +00:00
Michael Bayne 74bccd4223 Clean up occupant info creation and whatnot. Now we have a nice calldown method
bodyWillEnter() where the PlaceManager can do whatever they want when the body
enters, before or after the occupant info creation process.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5579 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-12-05 22:01:25 +00:00
Michael Bayne c793aff440 Unused import nixage.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5578 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-12-05 03:08:57 +00:00
Michael Bayne 12da80af98 Fix NameUpdater name.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5577 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-12-05 01:39:12 +00:00
Michael Bayne 6ece773295 NameUpdater not NameUpdate.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5576 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-12-05 01:38:40 +00:00
Michael Bayne 0942566fc3 Added a handy update for changing an occupant's name.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5575 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-12-05 01:31:30 +00:00
Michael Bayne c116f93a7b Fiddlesticks. Let's unify these update methods and do away entirely with the
old dangerous way of updating. We will now use only the timeless way.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5574 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-12-05 00:51:37 +00:00
Michael Bayne 62f393db95 Hold the phone. I already wrote this code. Sheesh.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5573 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-12-04 23:29:42 +00:00
Michael Bayne 420333df51 Made it easier to update occupant info the correct way in hopes of discouraging
people from updating it the wrong way.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5572 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-12-04 23:28:50 +00:00
Dave Hoover e1afaccd23 Cleanup some unused stuff & mark some overrides.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5547 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-11-12 18:46:06 +00:00
Michael Bayne f71613e3d6 We go to all the trouble of implementing ShutdownManager.Shutdowner, let's go
ahead and actually register ourselves with the ShutdownManager.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5530 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-11-11 00:13:39 +00:00
Charlie Groves a5a8272900 Cancel the shutdowner at the end of didShutdown in case shutting down emptied the room and caused it to schedule.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5522 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-11-07 22:44:25 +00:00
Michael Bayne b81ccde75b ClientFactory -> SessionFactory, etc.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5509 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-11-06 18:24:44 +00:00
Michael Bayne c69630b7e0 PresentsClient -> PresentsSession (Jamie's suggestion) and associated changes
on down the client.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5508 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-11-06 18:04:42 +00:00
Michael Bayne a3e74276f5 Implement these listeners in helper classes rather than in ourselves where they
become undesirably part of our public interface.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5485 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-31 17:33:26 +00:00
Mike Thomas f511469901 Purge the use of the getChatName() hack.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5482 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-29 22:26:56 +00:00
Dave Hoover da52d29a0a Javadoc nitpickery
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5478 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-28 20:37:28 +00:00
Michael Bayne 6fd2882fa9 Actually we need to set up our local attribute here.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5476 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-28 20:02:51 +00:00
Michael Bayne d1be746bdb Created ClientLocal and BodyLocal which is where we'll track server-only
information.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5474 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-28 17:55:17 +00:00
Mike Thomas c4e0d1d278 Be a bit more flexible with the generics here.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5456 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-23 23:18:44 +00:00
Michael Bayne de6558a25b Guard against naughtiness, intentional and not.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5446 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-10-14 23:16:39 +00:00