Commit Graph

267 Commits

Author SHA1 Message Date
Michael Bayne d618d3c771 Eclipse suggested cleanup.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2971 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-02-25 14:50:28 +00:00
Michael Bayne ede1aafffd Allow a custom cluster record to be used.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2908 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-12-11 22:50:55 +00:00
Michael Bayne eac5cc2e01 The body object might have already been destroyed by the time we get here.
If so, don't start a transaction on it just let the events quietly float
off into the ether.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2898 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-12-09 20:57:14 +00:00
Michael Bayne 4436720153 Added where().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2872 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-11-24 21:06:36 +00:00
Michael Bayne 29d2d781f6 Not a warnable offense.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2871 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-11-24 20:42:22 +00:00
Michael Bayne 0fd5923421 This is not a warnable offense.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2870 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-11-24 18:17:41 +00:00
Michael Bayne 0fc8813314 Let's not freak out if our caller disappears while we're off resolving a
scene.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2834 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-10-25 00:10:35 +00:00
Michael Bayne 2afc52d18d Don't freak out if we're missing our scene.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2823 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-10-10 19:18:18 +00:00
Michael Bayne b032f51b84 Refuse moves to invalid zones, scenes or places.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2819 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-10-03 20:41:32 +00:00
Michael Bayne c1c3285b96 Added a toString() to our scene loading unit.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2813 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-09-25 00:26:16 +00:00
Michael Bayne d675a1612e Cleaning up more straining debugging.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2803 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-09-22 23:57:20 +00:00
Michael Bayne 0d890bc8c4 Let's go ahead and log this so that we can determine whether or not it
actually happens.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2802 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-09-22 23:48:58 +00:00
Michael Bayne b6c3c58ca3 Commented out some debug logging that's creating storms of strings on the
server and added more sanity checking to handleJoinCluster().


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2801 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-09-22 23:42:49 +00:00
Ray Greenwell e876090b93 Cluster chat is still a special case: make a special call to the filter
method of the chat director prior to sending cluster chat.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2796 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-09-16 21:26:15 +00:00
Michael Bayne 199daccacc Make damned sure a body is removed from any clusters they occupied when
they leave our scene. Somehow we're not properly catching cluster
departures in some circumstances.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2789 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-08-20 21:02:16 +00:00
Michael Bayne c2299fbbd7 Require that the current scene be specified in the change location request
because odd things frequently happen if a player somehow double clicks or
in some other way queues up a change scene then a change loc from the
previous scene.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2768 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-08-13 00:11:03 +00:00
Michael Bayne ef2d31db0b Canned vestigal population crap.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2719 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-07-22 07:29:11 +00:00
Eric Lundberg 957faac149 Slap the CommunicationAuthorizer code in such that we block all user
communication if the user is not authorized.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2715 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-07-18 01:58:38 +00:00
Ray Greenwell 829f3ad0eb Start transactions outside of the try-finally clause so that if there
is a problem with starting a transaction, we don't get an exception
for failing to commit the transaction.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2712 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-07-16 18:03:30 +00:00
Michael Bayne f1ac86936e Be speaker aware. Big brother loves us.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2655 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-14 00:55:40 +00:00
Michael Bayne 1c7fbbdccf Need to name this differently to avoid conflicts.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2650 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-11 17:06:42 +00:00
Michael Bayne 575337b429 Added support for dispatching scene updates made to the currently occupied
scene.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2649 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-11 04:14:11 +00:00
Michael Bayne 087f26b41b Further work on dynamic scene updating.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2648 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-11 02:48:07 +00:00
Ray Greenwell 40afe3cb94 Chat revamp, phase 1.
- Repackaged crowd/chat
- All messages are delivered to the client via ChatMessage messages,
  including tells.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2631 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-03 21:41:33 +00:00
Michael Bayne 061e27d54c Fixed up cluster object handling; wasn't doing the right thing on
reconnect and needs to know the name of the field to listen for to avoid
issuing rapid-fire subscription requests.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2546 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-06 00:21:59 +00:00
Michael Bayne 2c94e12490 Regenerated DObject definitions with new policy.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2514 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-30 22:45:57 +00:00
Michael Bayne 3de98670db Give scene managers the opportunity to do something when a player
traverses a portal and give them the ability to position the player other
than on top of the entering portal when entering.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2412 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-17 19:17:07 +00:00
Michael Bayne 8d49b3cf7c Log message edits.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2385 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-07 21:50:04 +00:00
Michael Bayne dca70506f0 Cluster oid turns out to be zero when we don't have one, not -1.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2374 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-04 05:44:47 +00:00
Michael Bayne b2c24763ba Logging to help debug repeated subscription to cluster objects.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2373 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-03 22:16:51 +00:00
Michael Bayne f870b025b8 Make our intended location available.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2366 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-31 22:54:09 +00:00
Michael Bayne dea75fde0d Added some debug logging.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2355 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-30 19:45:58 +00:00
Michael Bayne 4c74d96eee Add facilities for vetoing a start cluster request.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2353 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-30 03:33:52 +00:00
Michael Bayne f0ef1a95bb Don't resubscribe if nothing changed.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2341 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-27 17:24:55 +00:00
Michael Bayne 9532dbe02a Whoops, have to add them in the proper order otherwise the target walks
over to the person who started the cluster rather than vice versa.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2340 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-27 17:13:38 +00:00
Michael Bayne dfe0e7aa5e Report to the caller (by excepting) when a cluster is full; demoted log
messages to debug.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2339 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-27 16:45:30 +00:00
Michael Bayne 5bf27ca281 Whoops, wrong error code.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2338 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-27 16:04:26 +00:00
Michael Bayne 07a426fe9b Make cluster extend Rectangle so that we get all of its lovely methods.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2337 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-27 15:57:47 +00:00
Michael Bayne c8b1404483 New error code.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2336 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-27 00:10:29 +00:00
Michael Bayne 4be173c19f More cluster fiddly.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2335 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-27 00:10:08 +00:00
Michael Bayne d29fef39ba Added getFootprint().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2334 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-26 23:42:41 +00:00
Michael Bayne 3ebff402de Provide an extensible way (what a fancy way to describe a protected
method) for validating whether a body can stand at their requested
location.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2333 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-26 22:34:24 +00:00
Michael Bayne 0c6a54380a Added canAddBody() and locationForBody().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2332 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-26 18:18:29 +00:00
Michael Bayne 590c993599 Include the bounds in the cluster rather than a center and an occupant
count. The client can figure out the occupants if it needs them.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2331 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-26 02:37:08 +00:00
Michael Bayne 5d6883c75c Revamped location and cluster handling so that we can implement the fancy
new dynamic cluster system all good and proper.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2330 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-26 02:06:06 +00:00
Michael Bayne a3ff1486e0 Regenerated minus the ever changing timestamps.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2329 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-26 01:35:41 +00:00
Michael Bayne be1f2eb1fc Further whipping of dynamic clusters into shape.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2323 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-25 19:28:59 +00:00
Michael Bayne 0dd5966c9a Extend SimpleStreamableObject so that we get a useful default toString().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2321 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-25 03:16:11 +00:00
Michael Bayne 0bddc6767f Added basic hook for portal traversal access control.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2309 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-17 19:34:26 +00:00
Michael Bayne 56b0012782 Use Comparable for the to be removed distributed set key.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2290 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-02-26 17:54:56 +00:00