Michael Bayne
5414507e3a
Don't allow the resource bundles to attempt to access their resource jar
...
files until they are known to be safely updated and ready to go.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2185 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-18 19:56:45 +00:00
Michael Bayne
bddca90c0d
Try to cope if we were unable to load our tileset image and ended up with
...
a placeholder image.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2184 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-18 03:53:31 +00:00
Michael Bayne
18c11e90a7
Sprites now dispatch their events immediately rather than queueing them up
...
to be dispatched after tick() has been called on all sprites.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2183 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-18 03:15:14 +00:00
Michael Bayne
4d764ad42a
We now copy abstract media objects to a separate array when ticking them
...
so that we can ensure that only tick()ed media will be painted and so that
we aren't affected by additions and removals that happen during tick().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2182 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-18 03:14:29 +00:00
Michael Bayne
51017ec302
Have to tick() a sprite before painting it since we're using it outside
...
its normal media panel happy place.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2181 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-18 03:13:32 +00:00
Michael Bayne
1d4d5be6ed
We now automatically handle lazy action sequence compositing.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2180 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-18 03:13:08 +00:00
Ray Greenwell
35f0954744
Restore the Pathable to its original position when we're removed.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2179 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-17 23:19:20 +00:00
Michael Bayne
0dcb5d67d1
Added Path.wasRemoved(), call it in the Sprite code.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2178 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-17 22:57:08 +00:00
Michael Bayne
dfe837a9d8
Jumped the gun. I suppose we want to allow hot swapping of paths and once
...
the old path is replaced, it will go away quietly and cleanly.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2177 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-17 03:50:10 +00:00
Michael Bayne
08cfd0a9f7
Defensive programming rides again.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2176 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-17 03:44:20 +00:00
Michael Bayne
f2c3211534
Added support for obtaining estimated memory usage of a tile; modified
...
tile cache to be based on memory usage rather than tile count.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2175 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-17 02:30:50 +00:00
Michael Bayne
6f7ad6a09f
Added support for obtaining the estimated memory usage of a Mirage.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2174 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-17 02:30:21 +00:00
Michael Bayne
34144c86de
Configured our LRU image cache to flush images when we reach a certain
...
number of bytes used rather than a certain image count.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2173 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-17 02:29:32 +00:00
Michael Bayne
380762962b
Cast manager now caches based on memory usage of the cached action frame
...
images, except that this is all fucked because the action frames get
generated on the fly which means that we'd need to update the LRU cache
with info on our new size which would hugely complicated things, so
instead we're going to rework the whole business in the future to cache
individually composited images rather than the whole goddamned action
frame kit and kaboodle.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2172 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-17 02:28:32 +00:00
Michael Bayne
2640baf727
Made getEstimatedMemoryUsage() do more of the right thing.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2171 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-17 02:27:02 +00:00
Walter Korman
a5c348a775
Added support for specifying the delay in milliseconds before a pressed
...
key begins to auto-repeat.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2170 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-17 01:33:34 +00:00
Ray Greenwell
91c173b6e5
added commented out method that caused me trouble, but we may want it
...
or a varient someday.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2169 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-17 00:41:49 +00:00
Michael Bayne
07b9dc3177
Changed sound manager not to use LockableLRUHashMap because intermixing
...
locked items and non-locked items in the same cache will screw up an
otherwise healthy cache by forcing it to flush otherwise frequently used
items because there's no room left by locked items.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2168 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-17 00:21:10 +00:00
Michael Bayne
0ad5e615b7
Provide means by which resource resolution and download observers can be
...
notified on the AWT thread rather than the download thread.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2167 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-16 22:50:29 +00:00
Ray Greenwell
0e26fdcf18
BufferedImage has versions of getWidth() and getHeight() that don't
...
need an ImageObserver.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2166 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-16 21:38:11 +00:00
Walter Korman
fbb5fb841a
Don't post the key press command when the repeat interval fires if the key
...
has been released.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2165 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-16 21:18:02 +00:00
Walter Korman
2fc3e90773
Fixed typo.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2164 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-15 21:44:52 +00:00
Michael Bayne
1032c513e6
We love to do it with logic!
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2163 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-15 21:43:33 +00:00
Walter Korman
26378d816f
Fixed bug wherein we no longer considered off-screen coordinates to be
...
traversable.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2162 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-15 21:27:41 +00:00
Walter Korman
ec2664a5f3
Removed obsolete debug rendering configuration parameters.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2161 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-15 21:14:28 +00:00
Walter Korman
2314fa2059
Obsolete.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2160 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-15 21:13:01 +00:00
Walter Korman
90480544e1
Revised various iso scene view debug rendering options to be accessible
...
via the runtime adjustments.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2159 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-15 21:12:45 +00:00
Michael Bayne
cb9daa9f41
More serialization fun! Happy happy joy joy!
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2158 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-15 09:28:43 +00:00
Michael Bayne
8c831a0f9f
Oh how I love to fiddle with the serialVersionUID.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2157 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-15 09:11:37 +00:00
Michael Bayne
bafffbd6fd
A repository for client side preferences for the miso package.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2156 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-15 07:41:31 +00:00
Walter Korman
e4ed924095
Added runtime adjustment to toggle debug rendering that highlights covered
...
and non-traversable tiles.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2155 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-15 04:25:45 +00:00
Michael Bayne
c98f45e3a0
Let's get those nots in the right places.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2154 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-15 02:50:36 +00:00
Michael Bayne
0558830cff
Had the beans above the frank.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2153 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-15 02:48:45 +00:00
Michael Bayne
bd943707f3
Add debug toggles for running blank and disabling image preparation.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2152 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-15 02:45:37 +00:00
Michael Bayne
6ab0215ea3
Created a prefs repository for the cast stuff; use a runtime adjustment to
...
obtain our cache size.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2151 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-15 02:36:59 +00:00
Michael Bayne
01a3630493
Use the adjustment directly rather than going through the prefs.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2150 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-15 02:36:18 +00:00
Michael Bayne
43bc29afd8
Static variables go above static constants.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2149 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-15 02:31:50 +00:00
Walter Korman
c9dc85cd0d
Added a variety of test listeners for the frame so that we can observe
...
events the frame receives, and a flag to toggle whether to add the
listeners. Make sure to dispose of the frame graphics context if it
becomes invalid. Removed code to prevent adding a frame participant more
than once since the observer list now handles that for us.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2148 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-15 02:21:07 +00:00
Walter Korman
17298d5710
Revised to use image manager to create blank image.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2147 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-15 02:17:52 +00:00
Michael Bayne
65af7a36e4
A preferences repository for narya.media preferences.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2146 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-15 00:47:29 +00:00
Michael Bayne
60a60d49ec
Use runtime adjustments for our image and tile cache size.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2145 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-15 00:47:09 +00:00
Ray Greenwell
4ba1fe57c3
Modified so that it will work if re-inited with a new Pathable.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2144 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-14 22:37:38 +00:00
Walter Korman
a2867539bc
Log interesting system information on server startup; logging at start of
...
init() also provides immediate feedback re: the server starting up and a
timestamp in the log against which subsequent action timeliness may be
weighed. I suspect mdb will decide this is better off residing in the
Yohoho-specific server and outputting to something like the server state
audit log, but I like it here and so I've forged ahead. If this does get
the axe, I still claim that logging "Server starting up..." as the first
business in init() is useful and desirable.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2143 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-14 22:36:58 +00:00
Ray Greenwell
9587014664
A Path used to bobble a sprite...
...
..she's starting to shimmy!
..she's starting to shake!
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2142 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-14 04:40:45 +00:00
Michael Bayne
6c7b0b3836
Create our image through the image manager.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2141 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-14 04:18:25 +00:00
Michael Bayne
f26cfb322d
Temporary hack to make all images translucent since that works around
...
strange slow rendering problems we see when we allow mixed BITMASK and
TRANSLUCENT images to be rendered.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2140 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-14 04:05:56 +00:00
Michael Bayne
e38c4aaf80
Allow tilesets to be loaded in the background.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2139 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-14 02:52:04 +00:00
Michael Bayne
e1f4b19e37
Commented out debug logging.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2138 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-14 02:51:40 +00:00
Michael Bayne
5720be31a5
Have to pass in our friendly neighborhood image manager.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2137 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-14 02:50:54 +00:00
Michael Bayne
1512fdfa1f
Begone ImageUtil.createImage(), all images are created through the image
...
manager.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2136 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-14 02:50:34 +00:00