Commit Graph

264 Commits

Author SHA1 Message Date
Michael Bayne 55c4847a17 Added support for distributed sets: unordered collections of elements
where the elements are user defined objects that know how to read and
write themselves on a stream. Sets are required to contain elements all of
the same type to make network traffic more efficient (avoid sending the
classname every time an element is added or removed).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@264 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-16 03:31:09 +00:00
Michael Bayne 3aa5302b00 Moved the stream related methods into a separate streamable interface that
can be implemented by objects that are streamable but that don't have an
associated type code.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@263 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-16 03:25:14 +00:00
Walter Korman 8520b2e84b Allow setting the sprite velocity to be used when following a path.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@262 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-15 22:48:41 +00:00
Walter Korman cff9a1fbef Renamed IsoSceneModel to IsoSceneViewModel to reflect reality.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@261 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-15 22:16:43 +00:00
Walter Korman affc3e82b7 Fixed up path-finding, path-following, and tile coordinate drawing.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@260 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-15 22:06:21 +00:00
Michael Bayne 9f620978e5 Added dist to the all target.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@259 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-15 18:40:58 +00:00
Michael Bayne 3c413b9f3d Added documentation; modified internal array management to use ListUtil.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@258 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-15 18:38:54 +00:00
Michael Bayne c2d6e8baad Notes.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@257 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-15 18:38:33 +00:00
Walter Korman c701da25e4 Fixed initial minor bugs in path-finding.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@256 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-15 03:13:06 +00:00
Walter Korman 0616f0f464 Moved AmbulatorySprite around and made it implement the Traverser
interface.  Initial version of AStarPathUtil and hooked it in to
SceneView.getPath().  Not yet tested.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@255 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-15 02:30:28 +00:00
Michael Bayne ce7869c279 Change the way we instantiate the resource manager.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@254 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-15 02:13:51 +00:00
Michael Bayne a84eadb351 Use File.separator rather than fetching the system property ourself.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@253 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-15 02:13:36 +00:00
Michael Bayne 84bb54eb0f Complain if we're unable to load a scene once we've fully entered it.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@252 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-15 02:13:12 +00:00
Michael Bayne 5feef4694b Load resources from the classpath rather than from a base URL.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@251 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-15 02:12:46 +00:00
Michael Bayne 2cbed37cac Whirled Scene ids are ints. Need to bust the upgrade from shorts.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@250 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-15 01:10:09 +00:00
Michael Bayne a07f5d4d13 Changed Scene to MisoScene. Made MisoScene implement Whirled's Scene
interface.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@249 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-15 01:08:49 +00:00
Michael Bayne 1ffbae2cc4 Added note.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@248 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-15 01:08:00 +00:00
Michael Bayne 8d017e268f Because only the editor and viewer even care about the scene repository,
we're eliminating the concept entirely from the MISO runtime stuff and
having the editor and viewer just talk directly to the XML file scene
repository.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@247 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-15 00:10:59 +00:00
Michael Bayne d26dc0372e Helped the scene manager to depart from the scene. The viewer and editor
applications really need to deal directly with the scene repository. The
display part of the MISO code doesn't need a scene manager, per se,
because it is simply told to visualize a particular scene and scene
management happens entirely externally. This is in preparation for making
the MISO code work and place nicely with the Whirled code.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@246 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-15 00:00:52 +00:00
Michael Bayne 3eea4dcaad Moved sprite stuff into media package, removed coupling between miso stuff
and sprite stuff by added some interfaces in the sprite stuff and
implementing them with the miso stuff.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@245 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-14 23:35:22 +00:00
Michael Bayne 0d0cb7f8ec Moved sprite stuff into media package. Need to abstract out and remove
miso dependencies.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@244 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-14 22:54:45 +00:00
Walter Korman 1502dcaa06 Moved scene util classes into a separate package.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@243 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-14 21:29:40 +00:00
Michael Bayne 89293034c8 A whirlwind of whirled updates. Moving from scene to scene seems to mostly
work now. Scene activation is implemented. Some tests are written.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@242 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-14 06:51:07 +00:00
Michael Bayne 5f0e2e2570 We're testing the whirled client/server presently. I should probably make
other versions of these scripts or enhance this one to allow selection of
client and server with a flag.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@241 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-14 06:50:21 +00:00
Michael Bayne 24a3d7cf0a Added getPlaceObject(); changed _place to _plobj; added a method that
makes it possible for derived classes to do the right thing if changing
location fails halfway through (meaning we can't subscribe to our place
object).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@240 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-14 06:49:28 +00:00
Michael Bayne 1ba8fed46b Whoops. Need to create our queue before we use it.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@239 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-14 06:48:31 +00:00
Michael Bayne 744a5f395d Created a utility function for easily looking up methods.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@238 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-14 06:48:08 +00:00
Michael Bayne e9909aa34f Log a stack trace when an invocation handler fails.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@237 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-14 06:47:38 +00:00
Michael Bayne 64691eda21 Look up invocation service methods using the full signature (arguments and
all) and no longer cache the lookups because creating the cache key would
be as expensive as reflecting the method.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@236 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-14 06:47:15 +00:00
Michael Bayne fc1432ddfe Modified location manager to make it more amenable to being extended and
frobbed.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@235 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-14 03:23:06 +00:00
Michael Bayne 0da19f558e Documented class.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@234 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-14 03:22:19 +00:00
Michael Bayne b11dcb28e7 Notes.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@233 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-14 03:21:40 +00:00
Michael Bayne 5a1cef4e39 Made a file for general notes.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@232 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-14 03:21:14 +00:00
Walter Korman 18e6b0b95b Added passability to tile objects. Changed TileSetManager to retrieve
tiles in their entirety from their TileSet.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@231 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-13 19:54:39 +00:00
Walter Korman d54d562992 Updated comments.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@230 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-13 15:00:24 +00:00
Walter Korman 546e39b0bb Added support for creating and editing exits.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@229 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-13 05:42:36 +00:00
Michael Bayne 5a2196bd0c Beginnings of Whirled service which is a system for building worlds made
of interconnected scenes on top of the Cocktail services.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@228 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-11 04:09:51 +00:00
Michael Bayne 5daf0d734f Throw an instantiation exception rather than returning null if there's an
error while creating a place manager.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@227 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-11 04:03:25 +00:00
Michael Bayne 5e60f1ef02 Notes.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@226 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-11 04:02:44 +00:00
Michael Bayne f28c645067 Fail requests to move to the location a client already occupies.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@225 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-11 02:07:20 +00:00
Michael Bayne f17562945f Check to be sure that the client is still around before we send the
invocation response. (Better to catch it and report it here than have the
dobjmgr complain when it tries to dispatch an event on a non-existent
object.)


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@224 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-11 02:02:24 +00:00
Michael Bayne 23821aeff6 Created a class that makes it easy to run stuff off of the dobjmgr thread
and then deal with the results of it back on the dobjmgr thread.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@223 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-11 01:20:38 +00:00
Michael Bayne 7ad883b4f6 Added the ability to post runnable units of executable code onto the
distributed object manager thread. These are slipped into the normal event
processing loop.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@222 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-11 01:00:26 +00:00
Michael Bayne 15e84da041 Notes.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@221 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-11 00:59:20 +00:00
Michael Bayne a5ef549091 Separated the code that does the moveTo from the code that processes the
invocation request. This will allow more complicated services to be built
atop the same location management system provided by the Party services.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@220 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-11 00:22:55 +00:00
Michael Bayne 8ba65f8304 Scripts to run the test server and client.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@219 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-11 00:12:37 +00:00
Michael Bayne c0334d178d Comment fiddling.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@218 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-11 00:12:11 +00:00
Michael Bayne 8a67066c57 Do the right thing if subscribers remove themselves after we've been
destroyed.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@217 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-11 00:11:53 +00:00
Michael Bayne a44e552eb8 Modified invocation services such that providers are responsible for
delivering their own responses. They now have all the information
necessary to do so which means that they can delay the delivery of a
response until some other asynchronous event has taken place (like a
database load completing). Prior to this, they were required to complete
their service immediately and return the response back to the invocation
manager.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@216 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-11 00:05:58 +00:00
Walter Korman 9f4d4e3ac0 Fixed reference to old exit member data.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@215 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-08-11 00:01:40 +00:00