Commit Graph

228 Commits

Author SHA1 Message Date
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
Michael Bayne d44557eadd Minor adjustment to cluster handling.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2281 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-02-14 21:34:26 +00:00
Michael Bayne 63c5d9a3a3 Let's be a good key.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2279 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-02-13 23:01:35 +00:00
Michael Bayne 2d5d1c56a8 Small changes to the cluster services: cluster information is published in
the scene object; clusters are centered within their group of occupants; a
player must start a cluster with another player rather than by themselves.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2278 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-02-13 21:55:22 +00:00
Michael Bayne 2a4385ad33 The amazing refactor forteen hundred billion: eliminated "locations",
portals will by dynamically created, combined display/runtime/editable
scenes into one, enhanced support for modifying scenes and distributing
updates to the clients, various other small stuff that should not be
sweated.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2274 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-02-12 07:23:32 +00:00
Michael Bayne f3db47e22b Switch from IntListUtil to ArrayUtil.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2245 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-02-06 18:58:30 +00:00
Michael Bayne fc1a45dbaa Make where() publicly accessible.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2242 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-02-05 00:23:52 +00:00
Michael Bayne 019981ac71 Added setVersion().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2238 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-02-04 17:25:09 +00:00
Michael Bayne 543705b935 Added a method for adding a portal.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2234 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-02-04 03:12:07 +00:00
Michael Bayne e6796b2d55 The amazing revamp four hundred billion. Let's see:
- Reworked colorization repository such that we now have arbitrary named
  "colorization classes" which can be used by various and sundry entities
  to colorize themselves.

- Added support for individual object colorizations as well as "spots"
  that go along with objects (will be used to automatically create portals
  into buildings and automatically position users properly when at a
  "station").

- Repackaged things in miso to more closely mimic what we do everywhere
  else (no more miso.scene, now we have miso.data and miso.client).

- Fixed up miso scene XML representation so that objects can more easily
  be expanded to have yet more stuff if we think of more stuff that they
  might aught to have in the future. Structured the miso scene model so
  that "uninteresting" objects (those that simply sit somewhere and don't
  do anything) take up a lot less memory than "interesting" objects (those
  that have action strings, "spots", colorizations and the works). I may
  want to roll colorizations into the "uninteresting" realm, but that
  remains to be seen.

- Made it possible for object tilesets to specify default render
  priorities for objects in that tileset. This will hopefully allow us to
  get by without any "custom" render priorities that are specified on
  scene objects, instead relying on the default priorities to resolve
  common conflicts.

There are surely other cleanups in there, but I think that was the major
thrust of it.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2228 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-31 23:10:46 +00:00
Michael Bayne a11f45dec4 Added convenience method for writing a scene to a file using a scene
writer.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2227 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-30 19:16:50 +00:00
Michael Bayne 48d04dc3ba Enhanced error reporting.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2193 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-18 22:59:17 +00:00
Michael Bayne 49e3e42b13 Enhanced error reporting.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2192 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-18 22:52:38 +00:00
Michael Bayne 01bd0d33e8 Added ZoneUtil.toString(qualifiedZoneId).
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2191 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-18 22:45:16 +00:00
Michael Bayne 99d66fe5c6 Report the type and id separately when reporting a zone move.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2186 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-18 20:12:49 +00:00
Walter Korman 3c2a65441c Make sure to clear out any previous cluster object subscription business
when we receive notice that we've successfully subscribed to a new cluster
object.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2095 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-03 23:07:00 +00:00
Michael Bayne 48823b10f9 More revamped serialization cleanup.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2079 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-12-20 23:41:27 +00:00
Michael Bayne aeab40a411 Let's be using the same code to enter a scene.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2067 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-12-14 01:51:00 +00:00
Walter Korman 2fde0b7117 Made to implement the RuntimeSpotScene interface as was surely intended.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2054 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-12-11 23:06:24 +00:00
Walter Korman 8ef2721d73 Fixed javadoc typo.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2044 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-12-09 04:44:33 +00:00
Michael Bayne b27571c8c0 Created an extensible mechanism for clearing out a client's location
information when they end their session.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2014 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-12-03 06:58:57 +00:00
Walter Korman b0056f0f41 Added zone adapter.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1934 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-11-12 19:53:35 +00:00
Michael Bayne d81451c2c1 Create ClusterObject instances for cluster chat objects.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1892 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-11-04 23:02:10 +00:00
Michael Bayne 6edc33c6ed Created a specialization of DObject to use for cluster event dispatch.
This is mainly so that these objects show up as distinct in our DObject
table reports.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1891 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-11-04 22:33:39 +00:00
Michael Bayne e8ee391d24 Report moveTo() for now as it may inform the hunt for the puzzle in world
view bug.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1888 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-11-03 01:15:36 +00:00
Michael Bayne 6781e1da56 Oh the price we pay for wanting to be able to logoff and log back on
without exiting the client.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1843 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-27 21:24:58 +00:00
Michael Bayne a0e9044e93 Config clean up and unification. The base servers were doing more than
they needed to and when all that was stripped away, they didn't really
need their own config files.

Now what little config they need is provided by the users of these basic
services so that said users can make their own decisions about where to
obtain configuration information.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1820 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-21 20:56:21 +00:00
Michael Bayne 4da35c0f0b Provide a means by which a place manager can check, early in the
initialization process, whether or not it actually wants to be created,
and allow it to abort the whole deal if it doesn't.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1777 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-06 00:44:58 +00:00
Michael Bayne 27d7a59994 Transactions should be started outside the try/finally block that ensures
their committal. This prevents double-fuckage if starting the transaction
fails (because the finally block would still be executed which would try
to end the non-existent transaction, throwing another exception which
hides the first).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1774 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-04 01:33:10 +00:00
Michael Bayne d8af715498 Keep the sceneId of the currently occupied scene in the body object.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1718 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-20 00:54:06 +00:00
Michael Bayne 335ef8eb05 New occupant info handling facilities that prevent rapid fire modifiers
from stepping on one anothers' toes.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1676 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-13 00:20:43 +00:00
Ray Greenwell 530188e5f2 Don't clone the occupantinfo when changing the location, just change it.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1675 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-12 23:04:04 +00:00
Ray Greenwell 752ee2fe8b added static moveBodyToDefaultPortal()
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1669 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-09 23:22:28 +00:00
Michael Bayne 99edb5cd5e Regenerated services and receivers to fix bugs and use updated templates.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1659 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-08-20 19:38:16 +00:00
Michael Bayne 9de7ff77ba Added isLocationOccupied() which allows server-side entities to determine
definitively whether or not someone is in a location and/or has it
reserved via a call to getUnoccupiedLocation().


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1653 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-08-20 18:21:45 +00:00
Michael Bayne e54a4d41f4 The great invocation services rethink of 2002! Rearchitected the remote
method invocation services and converted everything to the new style.
Could this be my biggest checkin ever?


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1642 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-08-14 19:08:01 +00:00
Ray Greenwell ef52f31ad4 Created client-side message objects which are the only thing passed
to the newly simplified ChatDisplay interface, which now has but one method.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1620 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-07-26 20:35:02 +00:00
Michael Bayne eb0f92fcef Brought things into line with new streaming world order.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1607 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-07-23 05:54:53 +00:00
Ray Greenwell 71c7a488c9 byte'd chat mode code
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1600 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-07-22 22:54:04 +00:00
Ray Greenwell 5c5038690b Added support for think and emote.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1599 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-07-22 22:26:26 +00:00