Michael Bayne
2051770c91
Synchronize access to the tile cache so that we can load tiles on other
...
threads.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2460 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-25 18:21:49 +00:00
Michael Bayne
90391aa69d
Synchronize access to the image cache so that we can load images on other
...
threads.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2459 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-25 18:21:28 +00:00
Michael Bayne
40e72feb45
Cleaned up the image loading speed test.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2458 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-25 15:52:39 +00:00
Michael Bayne
a4741de4f8
No more MisoSceneMetrics.bounds.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2457 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-25 15:52:25 +00:00
Michael Bayne
2f80c9b057
Removed obsolete image loaders.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2456 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-25 15:51:49 +00:00
Michael Bayne
ae0376d4ec
Removed a bunch of obsolete stuff.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2455 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-25 15:51:34 +00:00
Michael Bayne
082af9eedd
Add support for putting scene object into warning mode.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2454 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-25 01:15:00 +00:00
Michael Bayne
5d5a0e8173
Allow base tiles to be cleared out; clear out the fringe when a base tile
...
is updated because the caller will need to recompute it.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2453 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-24 21:27:23 +00:00
Michael Bayne
fc9a5dc7e2
Minor restructuring.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2452 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-24 21:12:10 +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
Ray Greenwell
26d15d3d23
Corrected documentation: the resource set is supplied, not the specific
...
bundle.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2450 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-24 07:26:45 +00:00
Ray Greenwell
5d6e746b88
Wire up the magic so that data in resource bundles can be acquired via
...
URLs.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2449 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-24 07:23:47 +00:00
Michael Bayne
ea3adbb530
Use the compose() method which properly handles negative y values.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2448 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-23 00:45:24 +00:00
Michael Bayne
0eea772f57
Oh the delicacy of the negative numbers. Wasn't properly computing
...
neighbor and block keys and was thus booching object footprint coverage
computation.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2447 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-23 00:37:46 +00:00
Eric Lundberg
3d290efb21
A streamable intint map, it's amazing!
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2446 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-22 23:36:56 +00:00
Michael Bayne
995f33af84
Provide our view bounds to the radial menu services.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2445 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-22 22:00:51 +00:00
Michael Bayne
76cb19646c
Use the default base tileset when computing fringe if an actual base tile
...
is not specified.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2444 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-22 20:36:11 +00:00
Michael Bayne
1274fbb7c0
Let's inform the derived classes of the delta rather than the new _vbounds
...
upper left which is something they're already much more likely to be
making use of directly.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2443 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-22 18:12:40 +00:00
Michael Bayne
a555443c04
Log a stack trace to help us find out where this sort of thing happens if
...
it happens.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2442 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-22 01:57:44 +00:00
Michael Bayne
1da61b99c7
Disallow adding the same object in the same place twice.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2441 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-22 01:57:20 +00:00
Michael Bayne
6b0e816643
Dooh! We need to recompute our visible object set regardless of whether or
...
not new scene blocks were resolved.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2440 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-21 17:56:55 +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
1fc693523d
Add constructor that takes bounds. We love the bounds.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2438 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-20 04:52:33 +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
ac9fc9a35d
Make blockwid and blockhei shorts and make them not be multiples of ten so
...
that we tease out any bugs that may have been hidden by uniform tiling.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2435 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-19 23:06:20 +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
95b19feb51
The scene metrics are now *much* simpler.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2433 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-19 22:37:57 +00:00
Michael Bayne
1cb3d1edb5
Added floorDiv().
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2432 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-19 22:28:28 +00:00
Michael Bayne
55ecaf885a
Out with the obsolete. The "oh, so" obsolete.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2431 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-19 20:44:10 +00:00
Michael Bayne
299e0845bb
Center on the center of the scene when it is first set. Adjust our view
...
bounds to preserve the current center point when we are resized. Deep
sixed "bounded" and some other needless fiddling.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2430 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-19 17:06:08 +00:00
Michael Bayne
bdd1697a41
Don't repaint when we rethink, rearranged some things so that we can avoid
...
recomputing visible objects, etc. if no blocks were loaded or flushed.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2429 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-19 02:01:56 +00:00
Michael Bayne
7772cdc175
Make our bounds available.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2428 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-19 02:01:08 +00:00
Michael Bayne
626d59a718
Apparently revalidating ain't going to do it, so we recenter and rethink.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2427 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-19 01:04:57 +00:00
Michael Bayne
e6a1ebbd80
We need to recreate our back buffer if our frame's bounds change.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2426 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-19 01:04:29 +00:00
Michael Bayne
3abbd1c8af
Removed old testing code. Whoopskidoodle!
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2425 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-19 00:56:35 +00:00
Michael Bayne
d398c84a7b
Pass the mouse event so that other information can be obtained.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2424 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-19 00:25:13 +00:00
Michael Bayne
f0a1bf2311
Don't can all mouse button 1 presses; allow objects without actions to
...
become the hover object if derived classes really want it (like the
editor).
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2423 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-18 23:19:13 +00:00
Michael Bayne
ffb9e3b4e4
Added code to enable bounds checking of calls to index. Not enabled by
...
default because we can generally figure it out from the NPE and this gets
called a crapload so we don't want to negatively impact performance.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2422 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-18 23:18:30 +00:00
Michael Bayne
6e967c699c
Was calculating footprint dimensions incorrectly.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2421 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-18 23:17:33 +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
81f90d1ee6
Fix bounding polygon calculation.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2419 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-18 22:59:04 +00:00
Michael Bayne
a4d16abb4c
Added code to support scene editing: adding and removing objects, updating
...
base and fringe tiles.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2418 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-18 18:33:31 +00:00
Michael Bayne
3a7f7f6bdb
Allow an object to be relocated (which requires recalculation of our
...
cached screen bounds, etc.).
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2417 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-18 18:33:07 +00:00
Michael Bayne
1182241d57
Removed highlighting code; cleaned up some other stuff.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2416 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-18 18:32:24 +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
27184f6ddd
Fixed bug in footprint calculation.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2414 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-18 18:30:57 +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
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
025cb91668
Ensure that any media inserted between the call to tick() and the call to
...
renderAllMedia() is ticked in all circumstances and ticked exactly once.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2411 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-15 21:27:22 +00:00