Commit Graph

39 Commits

Author SHA1 Message Date
Michael Bayne afabea71ad Big fat Bernie javadoc cleanup.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3310 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-01-24 23:08:21 +00:00
Michael Bayne 36a629c5e9 More ...Equal() -> ...() and ...() to ...Ref().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3171 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-10-23 17:36:32 +00:00
Michael Bayne a9720fd905 LGPLed the library. Hello world.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3099 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-08-27 02:21:06 +00:00
Michael Bayne a2ae7d499d Track more objects!
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3091 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-08-23 21:05:04 +00:00
Michael Bayne 79da3ac15c Let the caller know that we're refusing a duplicate interesting object.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3071 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-08-13 20:48:27 +00:00
Eric Lundberg beb2539663 Get rid of the not needed code that I had previously checked in for a
short stint of actually being used.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2988 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-03-31 02:16:12 +00:00
Eric Lundberg 74eb2bef88 Added code to allow object visitors to visit a specific section.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2986 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-03-30 01:30:38 +00:00
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 197067593f Added support for visiting just the interesting objects.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2933 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-01-11 12:21:17 +00:00
Michael Bayne eec42e8f42 Report our fully qualified tile id more human readibly.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2705 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-07-12 04:16:10 +00:00
Michael Bayne f6325c5d4c Pass all the object info along when visiting.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2615 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-27 19:04:29 +00:00
Michael Bayne 9ab9a7f84b Let's not freak out, but warn and return -1. This is one of those "should
never happen" things that keeps happening.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2603 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-22 22:18:02 +00:00
Ray Greenwell 7071f2e0da Don't save empty sections when saving scenes.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2586 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-16 17:26:07 +00:00
Michael Bayne dac610797e Added a means by which the default base tileset can be set.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2465 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-25 22:26:25 +00:00
Michael Bayne f894a18bcb Fixed bug with object removal. Added sanity checking code in addObject()
to prevent duplicate objects from being added.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2451 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-24 21:11:23 +00:00
Michael Bayne e628a8e429 Added support for specifying a default tileset for scenes.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2439 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-21 17:08:57 +00:00
Michael Bayne 0d740682db We need to be streamable.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2437 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-20 00:05:14 +00:00
Michael Bayne 5ae63595d0 Added toString() fixed broken getObjects().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2436 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-19 23:47:24 +00:00
Michael Bayne 3c94cd67f6 Various fixes to support negative tile coordinates; created sparse miso
scene model and associated business to store scene data in an arbitrary
set of blocks rather than fixed arrays; finally stuck a fork in scene
width and height as well as view width and height along with origin offset
and a few other now obsolete bits.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2434 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-19 22:40:34 +00:00
Michael Bayne 7d58b4ed93 Fixed incorrect argument ordering.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2420 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-18 22:59:18 +00:00
Michael Bayne 50bf565485 Canned setBaseTiles().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2415 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-18 18:31:21 +00:00
Michael Bayne d5701962a3 The big fat bernie revamp! Er, big fat miso revamp rather:
- Combined SceneViewPanel and IsoSceneView into one happy panel.
- Ditched the DisplayMisoScene notion; the new MisoScenePanel now manages
  resolved scene information (like base, object and fringe tiles) itself
  so that it can...
- ...support scrolling scenes by keeping blocks of resolved base, fringe
  and object information loaded only for what is potentially visible
  rather than for the whole scene.

Other things were surely cleaned up or broken in the process to keep a
keen eye out.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2413 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-17 19:21:17 +00:00
Michael Bayne d933605343 Moved object handling into base MisoSceneModel, created new
SectionedMisoSceneModel for storing info on a section of a larger scene.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2406 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-12 02:14:10 +00:00
Ray Greenwell f15987477b made Cloneable
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2299 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-05 21:17:27 +00:00
Michael Bayne 5ed8637ecf In order to properly pick up any changes made to ObjectInfo records in our
objects array, we have to recreate it completely because objects could
become interesting or uninteresting and we'd never know when to remove
them from one storage mechanism and stick them in the other.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2289 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-02-24 18:40:41 +00:00
Ray Greenwell 5962fa1e54 Made note of and implemented clearing of fringes when a base tile is set.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2287 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-02-20 00:40:13 +00:00
Michael Bayne 89e6252169 Refactored Miso scene system to support larger (tiled) scenes in the
future.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2268 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-02-12 05:39:15 +00:00
Michael Bayne 5198206dfd Modified render priority handling so that a default priority can be
returned without modifying ObjectInfo.priority which would cause the
default priority to be written out as an overridden priority.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2235 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-02-04 03:33:09 +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 68af441fbf Objects now have explicit render priorities rather than relying on the
order in which they were added to the scene (that information is no longer
available as objects are reordered arbitrarily once loaded).

Also removed old-school scene conversion.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1743 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-23 23:07:11 +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 bb6b0f56ca Changed MisoSceneModel so that it knows about the view width and height.
It no longer stores base tiles that are not visable in the view,
in fact it stores the base tiles in an array almost half the size as the
fully expanded scene array, and this new smaller array is used everywhere:
when saving the scene, serializing it to the user, or saving it in
the database.
We must now use the getBaseTile() and setBaseTile() methods to access the
base tiles because they are stored in this compressed format.
Also removed the fringe layer completely from the MisoSceneModel.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1369 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-17 19:06:23 +00:00
Michael Bayne 7ba2173174 Fixed bug whereby byte buffer that held scene data was still big enough to
accomodate the fringe layer and the way the ByteBuffer stuff works, it
writes out the whole enchilada even if there are a bunch of zeros at the
end.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1367 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-16 03:54:18 +00:00
Ray Greenwell b63c2aeeba never output the fringe layer.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1364 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-16 02:25:19 +00:00
Michael Bayne a07282b2d2 Added support for associating an action with any of the object tiles in
the scene. This will eventually be interpreted by the scene rendering code
to allow objects to be clickable.

Also rewrote scene serialization code using new Java buffer services which
are much more efficient at reading and writing arrays of integers.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@894 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-01-30 18:28:32 +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 7d108a256f Serialization jockeying.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@720 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-11-30 21:54:34 +00:00
Michael Bayne b94c5d691c Added toString() and a means by which to create a blank miso scene model.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@666 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-11-29 00:17:14 +00:00
Michael Bayne ae1052a371 Oh the vast sweeping changes, and they're not even close to complete, but
things compile and most things run so this is a good time to checkpoint.
Let me recall:

- Refactored the whole scene deal.
- Revamped the XML parser stuff (now uses Digester).
- Rethought the tile management.
- Started tile bundle stuff.
- Wrote some tests.
- Did a bit of Mike-ification.

Onward and moreward.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@621 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-11-18 04:09:23 +00:00