Michael Bayne
96677211f6
Microsecond handling was totally wrong. We didn't use it until now so it
...
wasn't causing trouble.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3141 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-10-15 22:22:37 +00:00
Michael Bayne
d666c75460
Two things:
...
1. Modified the performance metric code to use hundred microseconds rather
than milliseconds as millis are not sufficiently fine grained.
2. Switched from using an ObserverList to a hand-rolled mechanism for
frame participants. It is unfortunate that we're not reusing code (though
this turns out to be 55 fewer lines of code) but the FrameManager needs to
allow tick participants to be removed from the list while in the middle of
processing another participant's tick.
With the ObserverList we have to use SAFE_IN_ORDER_NOTIFY which adds
undesirable overhead to each tick, or FAST_UNSAFE_NOTIFY which is
efficient, but freaks out if an as-yet-unticked participant is removed
during another particpant's tick.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3140 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-10-15 22:21:38 +00:00
Andrzej Kapolka
97e7d9c823
Spaces after ifs.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3139 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-10-15 18:20:28 +00:00
Andrzej Kapolka
8ad2aefdf2
Yet more formatting changes. Should be just about compliant with the standard.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3138 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-10-15 03:09:46 +00:00
Andrzej Kapolka
0b0fcf9d15
I had the orientations backwards.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3137 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-10-15 00:59:53 +00:00
Andrzej Kapolka
73f44a5ee3
Various changes for style, changes to Card recommended by Ray.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3136 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-10-15 00:14:23 +00:00
Andrzej Kapolka
90af7c794d
A handy orientable sprite.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3134 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-10-13 02:03:44 +00:00
Eric Lundberg
9927b6a684
Cleaned up import.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3130 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-10-05 01:08:00 +00:00
Michael Bayne
f74f390025
Don't modify the array passed in by the caller.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3126 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-09-29 01:54:14 +00:00
Michael Bayne
2db2248bc4
Make the media panel's animation and sprite managers available.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3124 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-09-18 23:50:20 +00:00
Michael Bayne
afced0e56b
A couple of useful animations.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3123 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-09-18 22:58:39 +00:00
Michael Bayne
7b4aaa099f
Handy functions for computing a value that smoothly progresses as a
...
function of time.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3122 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-09-18 22:57:08 +00:00
Michael Bayne
1a79a676ab
The default implementation works with an animation manager which is what
...
we want to do most of the time anyway (in cases where we don't care about
whether an animation is "interesting" with regard to puzzle action).
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3121 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-09-18 22:56:35 +00:00
Eric Lundberg
95d4bfb80e
Allow one to remove an animation observer.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3116 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-09-10 22:16:54 +00:00
Ray Greenwell
c314d304ec
Added the interface RecolorableTileSet which indicates that a TileSet
...
has colorizations and implements the "String[] getColorizations()" method.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3111 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-08-30 22:09:29 +00:00
Ray Greenwell
9470ab69bd
Color classes can have a default color.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3109 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-08-30 22:07:33 +00:00
Michael Bayne
1f8c4578b7
LGPLed the library. Hello world.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3098 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-08-27 02:12:55 +00:00
Michael Bayne
1311dafb1f
Don't let freaky derived classes ruffle our feathers.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3096 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-08-24 22:37:47 +00:00
Michael Bayne
d17e58a924
Added support for letting a media know when it's about to be ticked for
...
the first time. This is the only indication that things are really
underway and it's a fine time to do things like play sounds that are
synchronized with that media and do other fun stuff.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3084 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-08-18 01:33:32 +00:00
Michael Bayne
b7d43b786f
Pulled tile calculations out into a handy utility method.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3082 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-08-17 00:48:40 +00:00
Michael Bayne
1da753e14d
Brought things up to date with the latest Jakarta Commons world order.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3058 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-07-13 16:34:49 +00:00
Michael Bayne
55df96a644
Throw an informative exception in this circumstance. The NPE that would
...
follow doesn't tell us anything about the hosed tileset.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3053 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-07-09 04:00:20 +00:00
Michael Bayne
685f989dc9
A one shot component for tiling an area with a background tiler.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3011 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-05-21 07:36:17 +00:00
Michael Bayne
1dc8070910
Checking these in for Ray so that things will compile.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2990 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-04-06 03:53:26 +00:00
Ray Greenwell
15b1d7137c
Dead code pruning.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2985 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-03-28 00:36:39 +00:00
Ray Greenwell
df0cf0cf98
Go back to only logging verbose sound events when the runtime adjust in on.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2975 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-02-26 18:42:51 +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
Ray Greenwell
7ac816f12c
- Trashed any reference to line.drain(), we're not going back.
...
- Removed the RuntimeAdjust for tweaking the Line's buffer size.
- Feed data to the Line in chunks the same size as its buffer.
- Rather than sleeping 3 seconds, calculate how long it would take to play
the line's entire buffer and sleep that long. It turns out that with
the buffer size I'm using and the sample rates our sounds are encoded at,
this is less than 400 ms.
- Went ahead and increased the maximum number of simultaneous line spoolers
to 12.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2966 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-02-24 08:08:25 +00:00
Ray Greenwell
796c953c89
Window.show() is deprecated in jdk 1.5, replaced with setVisible(true).
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2965 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-02-22 18:55:26 +00:00
Ray Greenwell
3ae08bc60d
Never drain(), it's just buggy.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2954 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-02-12 04:14:21 +00:00
Eric Lundberg
596f55e315
Adding in ye' old McHack until I can figure out what is actually booched with the macs copyarea. This lets the game play all happy like.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2950 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-02-05 18:53:00 +00:00
Ray Greenwell
ecb6c5a005
Added some logging to track down people who lose sounds after a while
...
in Windows.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2948 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-02-04 19:04:46 +00:00
Ray Greenwell
15e11bd9ef
Maybe a fix for the mac booch?
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2946 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-02-03 07:32:41 +00:00
Michael Bayne
ddeadbcff1
Let's get jiggy with the verbosity in hopes of shedding some light on this
...
ever-repeating sound situation.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2926 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-12-22 22:25:34 +00:00
Michael Bayne
07dfb982d7
No indication of time wickosity, so we can can this call.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2924 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-12-19 18:31:11 +00:00
Michael Bayne
e213827ee9
Let's just warn and cope rather than sticking a fork in things.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2918 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-12-15 20:06:09 +00:00
Michael Bayne
3e466530f6
We call RunAnywhere.currentTimeMillis() so that we can find out as soon as
...
possible if time has leaped into the past. This is primarily useful so
that we can correlate such happenings with other strangeness that may be
caused by time bogosity.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2912 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-12-13 02:59:05 +00:00
Michael Bayne
104763ac88
Moved SoundCodes into Narya because it's a reasonable basic set of sound
...
types and the puzzle stuff wants to classify the sounds it produces.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2878 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-11-26 01:43:31 +00:00
Michael Bayne
da03a2b775
No need to log here, sometimes it happens every frame.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2874 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-11-25 19:42:54 +00:00
Michael Bayne
97a9b91531
Cancel any path on a sprite if it's removed while in the middle of
...
execution.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2873 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-11-24 21:58:36 +00:00
Michael Bayne
7056f6dfac
Log a warning and return null.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2862 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-11-22 19:57:16 +00:00
Michael Bayne
2e69e6770e
Log a stack trace when this happens.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2861 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-11-22 19:57:03 +00:00
Michael Bayne
e3b2930778
Added getNaturalWidth() and getNaturalHeight().
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2860 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-11-19 18:27:10 +00:00
Ray Greenwell
515e5a293e
Instead of drawing thousands of little pieces of the background tiled,
...
draw but 9 images, with the non-corner ones being scaled as appropriate.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2856 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-11-14 19:39:52 +00:00
Ray Greenwell
708008b65f
Changed so that to follow a pathable you pass in the pathable and one of the
...
public follow mode constants, instead of having a different method for
enabling each different follow mode.
Added a new follow mode: track, which aligns the upper-left coordinate of the
view with the hotspot of the pathable.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2851 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-11-12 21:47:09 +00:00
Michael Bayne
342cce503e
Added isRegisteredFrameParticipant().
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2849 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-11-03 22:19:51 +00:00
Ray Greenwell
969008a6b8
Added a method for playing sounds after a specified delay.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2826 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-10-16 01:01:51 +00:00
Michael Bayne
e6ae375c00
Not to freak out if somehow we don't have a current path.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2815 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-09-25 21:07:20 +00:00
Michael Bayne
748db4d5d7
Failing to locate a class is apparently a RuntimeException even if you do
...
it through Class.forName().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2755 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-08-08 23:55:06 +00:00
Michael Bayne
6cf90dcddd
Not so fast, we need to jigger this differently.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2753 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-08-08 21:43:05 +00:00