Ray Greenwell
cf99e657e7
Allow a LinePath to be constructed with only one point, and the
...
source point will be the position of the pathable at initialization time.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2584 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-16 02:22:19 +00:00
Ray Greenwell
2f166d2bb1
Added getInt(high, low).
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2583 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-16 02:21:37 +00:00
Michael Bayne
54b02327c1
Track the number of nodes considered when computing a path; minor
...
rearrangement.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2582 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-16 00:49:44 +00:00
Michael Bayne
ded2a44c28
No longer check for on-screen paths here, we'll leave that to Yohoho!, but
...
we do allow derived classes to dictate whether or not unresolved tiles are
passable. Additionally, we sanity check the number of nodes searched when
computing paths.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2581 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-16 00:49:16 +00:00
Michael Bayne
21db8d27bc
Further cleanups, eliminated TilePathNode which is no longer needed.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2580 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-16 00:26:18 +00:00
Michael Bayne
e190c1625f
Removed vestigal code, generally cleaned up.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2579 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-16 00:22:22 +00:00
Michael Bayne
16aaad3daf
Report the block bounds and the view bounds when a block is reported as
...
having become visible during resolution.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2578 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-15 23:03:29 +00:00
Michael Bayne
80aa40ac72
Keep the vbounds centered in the resolution view.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2577 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-15 22:49:38 +00:00
Michael Bayne
863af05b72
Allow derived classes to dictate whether or not we allow traversal of
...
tiles that are offscreen.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2576 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-15 18:24:01 +00:00
Ray Greenwell
e44f7c243a
Close streams immediately after using them.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2575 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-14 21:34:01 +00:00
Michael Bayne
37011fed41
Use user.home rather than user.dir as a fallback.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2574 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-14 20:46:25 +00:00
Ray Greenwell
a323d157dd
UniformTileSets no longer need to have their tileCount set, they will
...
figure it out from their width/height compared to the source image's
width/height.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2573 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-13 21:33:58 +00:00
Michael Bayne
c0aacd5f41
Provide the colorization index when asking for an object colorization.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2572 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-13 02:16:21 +00:00
Ray Greenwell
83a4d141f9
added lineIntersection()
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2571 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-12 05:22:34 +00:00
Michael Bayne
45033c8623
Use a much smaller scene block size which smooths out block resolution and
...
generally makes everything happier.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2569 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-12 02:04:16 +00:00
Michael Bayne
7f08d36ce7
Up the default tile cache to 2 megs.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2568 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-12 02:03:53 +00:00
Michael Bayne
8ca388fb7e
Implemented a debugging view that shows when scene blocks are being
...
resolved; adjusted influential bounds based on new strategy for scrolling
around and resolving blocks.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2567 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-12 02:03:31 +00:00
Michael Bayne
48a102de5a
Allow scene block resolution to be suspended.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2566 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-12 01:53:19 +00:00
Michael Bayne
c93802c455
Off with the verbose logging.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2565 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-10 01:05:33 +00:00
Michael Bayne
98e3e530da
Remove verbose logging.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2563 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-09 18:40:07 +00:00
Michael Bayne
d4c4596403
Build our new unsafe library (on Linux at least) and some other random
...
viztool crap that doesn't really matter.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2561 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-09 03:24:12 +00:00
Michael Bayne
cde14e4bfa
Ignore the generated .def files.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2560 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-09 03:22:39 +00:00
Michael Bayne
9a5bea62fd
Possibly working code to cross-compile Windows native DLL. Whee!
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2559 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-09 03:22:16 +00:00
Michael Bayne
286cd5019e
Oh god, unresolved blocks are again unpassable.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2558 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-09 01:12:06 +00:00
Michael Bayne
fa5c8cc6a3
Use our native (select()-based) sleep() on Linux to achieve 10ms
...
granularity instead of 20ms which is what we get from Thread.sleep() which
probably uses the less than aptly named nanosleep() which seems to give
about that granularity.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2557 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-08 21:26:27 +00:00
Michael Bayne
ff691ca88c
There's no two ways about it. This shit is definitely not safe.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2556 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-08 21:25:20 +00:00
Michael Bayne
704cee77d1
No more regions of interest, now we follow pathables.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2555 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-08 16:10:50 +00:00
Michael Bayne
fac7c3cb75
The frame manager may decide not to paint us if needsPaint() returns
...
false, but we still need to call willPaint() after *every* tick, so we
have to do that in needsPaint() where we can be sure it will get called.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2554 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-08 05:46:45 +00:00
Ray Greenwell
4d267ebc8c
Allow specification of a background image to tile the background
...
of the panel in an aligned manner.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2553 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-08 04:52:24 +00:00
Ray Greenwell
1387c9f08b
Clarified documentation somewhat. It's too hot today.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2552 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-07 19:47:02 +00:00
Ray Greenwell
b545d1ff05
Added moveDirection() which can move a point in the specified
...
screen direction.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2551 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-07 19:41:57 +00:00
Michael Bayne
684102f32e
Use mirages in tileImage*.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2550 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-07 19:14:38 +00:00
Michael Bayne
f1bcf698db
Rather than allow an Error to be thrown, we just log a warning and go on
...
about our business.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2549 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-07 05:31:09 +00:00
Ray Greenwell
e174e71b8a
Subsumed tileImageAcross and tileImageDown into the new tileImage.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2548 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-07 01:48:27 +00:00
Ray Greenwell
61ce868a11
Register the "resource" url handler with a factory instead of using
...
the system property. The factory works under JWS, but is a little
worrisome because you can only have one factory per JVM.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2547 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-06 18:48:18 +00:00
Michael Bayne
061e27d54c
Fixed up cluster object handling; wasn't doing the right thing on
...
reconnect and needs to know the name of the field to listen for to avoid
issuing rapid-fire subscription requests.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2546 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-06 00:21:59 +00:00
Ray Greenwell
b9fdc60650
added a loadTileSet() that takes an ImageProvider,
...
added a way to register TileSets.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2545 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-05 22:34:48 +00:00
Michael Bayne
456dc57129
Moved the creation of the shutdown hook into the same static block that
...
creates the temp cache directory so that it is only registered once even
if multiple resource managers are created by the JVM (which happens in ant
builds).
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2544 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-05 18:02:37 +00:00
Michael Bayne
56df0d29f5
Let's actually use the flip buffer capabilities that we go to such trouble
...
to create.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2543 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-05 01:41:57 +00:00
Michael Bayne
baf4873fa6
Not to freak out if we can't get a graphics to lay out our FPS label.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2542 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-04 23:28:18 +00:00
Michael Bayne
21210eae62
Documentation clarification.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2541 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-04 18:50:23 +00:00
Ray Greenwell
7f8ef8f01e
Use FileUtil's deleteRecursive()
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2540 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-03 00:51:13 +00:00
Ray Greenwell
c3737ca73f
Register a shutdown hook to destroy the resource cache directory when
...
the JVM exits.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2539 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-03 00:45:36 +00:00
Ray Greenwell
9643db4632
Use RunAnywhere.isLinux() to determine if we should skip draining.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2538 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-03 00:13:04 +00:00
Michael Bayne
7457e46374
MacOS safety project, phase 1.1.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2537 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-03 00:12:12 +00:00
Michael Bayne
352b3d3d6d
We need to dispose of the graphics that we obtain from getDrawGraphics().
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2536 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-02 23:54:56 +00:00
Michael Bayne
2d0897ed4b
Default to flip-buffer rendering on the MacOS because the volatile back
...
buffer approach don't work.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2535 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-02 23:53:55 +00:00
Michael Bayne
df50d9fb0d
Only do the Windows copyArea() workaround on Windows because it crashes
...
the MacOS JVM (though the MacOS JVM has the same fricking bug, it's just
that the workaround doesn't "work").
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2534 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-02 23:49:57 +00:00
Michael Bayne
daa9c8ee0e
We can use the raw images here because we eventually splat all fringe
...
tiles into a composited image which has been prepared for display.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2533 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-02 23:33:30 +00:00
Michael Bayne
55e84b0ae4
We can use the raw image here because we only use its dimensions.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2532 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-02 23:32:56 +00:00