Commit Graph

787 Commits

Author SHA1 Message Date
Michael Bayne 750ff00b3d Visual documentation!
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@787 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-12-16 04:59:11 +00:00
Walter Korman 1db2322e6a Removed obsolete miso editor script.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@786 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-12-15 19:16:55 +00:00
Michael Bayne 37b9ff1d20 Added getScreenCoords(), invalidateRect().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@785 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-12-15 04:20:55 +00:00
Michael Bayne c60c0a557b Added invalidateRect().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@784 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-12-15 04:20:26 +00:00
Michael Bayne fa0506c85a Add support for clone().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@783 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-12-15 04:20:00 +00:00
Walter Korman b00fdc6ab5 Use String.valueOf(int) to convert int to string.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@782 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-12-14 23:31:04 +00:00
Michael Bayne efd1a69caa Finished up implementation of portal traversal back-end.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@781 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-12-14 23:12:39 +00:00
Walter Korman 17ad791035 Oops, _rnd should be protected.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@780 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-12-14 16:46:01 +00:00
Walter Korman af4b1175d7 Use AncestorAdapter.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@779 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-12-14 16:08:00 +00:00
Walter Korman e5d514aa8a Added facility for setting whether the chat text entry field should
request keyboard focus.  Expanded imports.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@778 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-12-14 04:33:53 +00:00
Michael Bayne 9737db1e0e Need this to prevent circumvention (which is not quite as bad as
circumcision nor as fun as circumnavigation).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@777 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-12-14 02:44:10 +00:00
Michael Bayne 8e27b7e740 Wired up rest of location change stuff.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@776 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-12-14 01:51:46 +00:00
Walter Korman b9b0d9cd69 Revised counter piece placement and end game determination.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@775 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-12-14 01:14:50 +00:00
Michael Bayne a38684db5e Beginnings of Spot invocation services to allow moving between locations,
tracking and reporting locations of bodies within a scene and handling
chatting between users in a cluster. Other minor cleanups.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@774 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-12-14 00:12:32 +00:00
Michael Bayne 6e962013a9 Minor cleanups; added PlaceManager to MessageHandler callback.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@773 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-12-14 00:11:18 +00:00
Michael Bayne 2c1e5c1ba5 Bollocks! I forgot that using the memory cache with the ImageIO stuff
somehow borks the zip decompressor and all hell breaks loose. What a PITA.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@772 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-12-13 07:31:53 +00:00
Michael Bayne 60eddd8f85 *** empty log message ***
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@771 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-12-13 07:23:25 +00:00
Michael Bayne 748a0855a1 Orient the sprite WEST rather than SOUTHWEST so that we get a nice
angle-on view.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@770 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-12-13 06:35:52 +00:00
Michael Bayne 1731756712 Improved error checking and reporting.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@769 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-12-13 06:34:40 +00:00
Michael Bayne c64256a6e9 Made the documentation clearer with respect to fully qualified zone ids.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@768 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-12-13 05:49:50 +00:00
Michael Bayne 366914b4d1 Created ZoneUtil for composing and decomposing qualified zone ids.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@767 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-12-13 05:46:11 +00:00
Michael Bayne e670b076e6 Made toString() extendable. Oh God, how I wish I had multiple inheritance
and could just fold in a Stringable class instead of rewriting the same
code thousands of times. Three cheers for code reuse!


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@766 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-12-13 05:32:28 +00:00
Michael Bayne 18b32fff62 Need to catch Throwable rather than Exception because apparently
ClassNotFoundException is a runtime exception.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@765 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-12-13 05:15:16 +00:00
Michael Bayne 279b3b07c0 Need to reference ImageIO in the constructor to ensure that the
classloading is attempting at construct time. So we do so by disabling
disk caching which will hopefully allow ImageIO stuff to work in the
applet.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@764 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-12-13 05:14:53 +00:00
Michael Bayne 1ebc240198 Prepended rsrc to our test resource paths.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@763 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-12-13 01:35:52 +00:00
Walter Korman d4b714fab4 Forgot to make ImageIOLoader implement ImageLoader. Output the exception
associated with failure to make use of the ImageIOLoader.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@762 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-12-13 01:14:30 +00:00
Michael Bayne 41e122c18b Another esoteric library. We love 'em!
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@761 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-12-12 23:28:59 +00:00
Michael Bayne 54b02ad1ff Not to freak out if we have no scene.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@760 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-12-12 19:53:11 +00:00
Michael Bayne 563100559f Catch and report errors.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@759 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-12-12 19:52:50 +00:00
Michael Bayne a96f0f5af3 An uncommon library that we'd rather provide directly than provide
documentation on how to obtain.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@758 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-12-12 19:46:04 +00:00
Michael Bayne 4a7792f4d6 Moved the scene name into the basic scene model from the editable scene
model as we'll be having scene names in the runtime system.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@757 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-12-12 19:06:15 +00:00
Walter Korman d31ebd2b54 Added facilities for a simple robot player to optionally run rampant in
the sword game.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@756 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-12-12 18:09:20 +00:00
Walter Korman 0432219e99 Added row at top of board to show floating block entry and killing piece
placement.  Went back to not allowing the player to be killed by shaft
pieces.  Initial work on improved keyboard input.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@755 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-12-12 16:55:06 +00:00
Michael Bayne 3af0d8b1ee Added support for cloning scene models (we love doing multiple inheritance
by hand!).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@754 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-12-12 02:47:17 +00:00
Michael Bayne a11f21fb02 The time has come to check in the version of external libraries upon which
our libraries depend. We're using external libraries that are too bleeding
edge to simply have people install the publicly available versions.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@753 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-12-07 23:23:38 +00:00
Michael Bayne 509fb5c47e Was missing the name attribute.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@752 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-12-07 05:14:57 +00:00
Michael Bayne 7831d150e5 If there are no target scene or portal names, don't write them out. Also
fixed naming of <portal> element.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@751 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-12-07 05:11:25 +00:00
Michael Bayne 548acf53e8 Have to update _nextLocationId when a location is added, in case its
location id is bigger than the biggest we've seen.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@750 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-12-07 02:10:14 +00:00
Michael Bayne 940154d7e3 The image manager now falls back to loading images via the Toolkit if it
can't load the ImageIO classes. This unfortunately means that we're back
to passing a Component instance to the ImageManager at construct time.
Whee!


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@749 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-12-07 01:33:29 +00:00
Michael Bayne 14b9708e9e Added facilities for obtaining a valid location id from the scene because
it's the one that knows which location ids are in use.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@748 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-12-05 09:20:10 +00:00
Michael Bayne 7fcc918797 The fancy equals() turned out not to be useful based on the semantics of
List.indexOf(), etc.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@747 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-12-05 09:14:29 +00:00
Michael Bayne fba773c4a2 Make Location.equals() do fancy stuff to make life easier elsewhere.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@746 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-12-05 09:06:30 +00:00
Michael Bayne 2c27824718 Sweet Mary, mother of Jesus! Another fucking refactor. It turns out that
the way I was doing inheritance between the display and editable scene
implementations was not copacetic. The new method (which is for every
editable scene impl to delegate to a display scene impl so that regardless
of how far along you are on the inheritance chain, there are only ever two
actual objects, the display impl and the editable impl) is somewhat
cleaner, but makes it clear that no method can work as nicely as it would
were we to have mutliple inheritance.

The basic problem is that the editable versions of the scenes have to be
able to manipulate the instance variables in the display versions of the
scenes because they have to keep them up to date so that they are
displaying the right thing. As the editable versions are in different
packages, they don't have access to the display instance variables, so the
display versions simply have to make available enough "editable"
functionality to allow the editable versions to get their job done. It's
more coupling that I'd like, but at least it's only between the display
and editable versions across the inheritance hierarchy rather than down
the hierarchy.

Blah.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@745 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-12-05 08:45:06 +00:00
Michael Bayne 7c60cb5df2 Comment edit.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@744 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-12-05 07:38:54 +00:00
Michael Bayne f1b92df3d1 Disected and reassembled things so that a miso scene can be constructed
without a tile manager, which can be provided later, at which point all of
the tiles will be resolved. Also made it possible to replace the model in
a partially constructed scene. How's that for a turn of phrase: partially
constructed scene. Wheee!


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@743 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-12-05 07:29:06 +00:00
Michael Bayne a8e66a4191 Modified scene writer code.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@742 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-12-05 04:45:13 +00:00
Michael Bayne 3af703d31b Minor edit.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@741 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-12-05 03:49:29 +00:00
Michael Bayne 7e415d9655 Documentation update.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@740 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-12-05 03:40:32 +00:00
Michael Bayne dd69489de4 More scene and spot scene refactoring. Got parsers working for those in
the new new style (or was that the new new new style).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@739 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-12-05 03:38:10 +00:00
Michael Bayne ec9986a365 Put test code first in classpath.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@738 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-12-05 03:37:14 +00:00