Commit Graph

920 Commits

Author SHA1 Message Date
Dave Hoover 25ee5e9134 Slay some cyclopian variables.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@927 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-06-15 17:27:02 +00:00
Dave Hoover 2efa35a62d Whitespace
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@926 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-06-15 17:26:58 +00:00
Dave Hoover 4438b25d98 Fix syntax
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@925 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-06-11 22:57:10 +00:00
Ray Greenwell d869938b69 Switch to compiling against the aspirin library.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@924 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-06-09 20:51:06 +00:00
Mike Thomas 2f634e3a60 Port of the miso scene model and related bits (so, data only, no rendering of any kind yet).
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@923 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-06-08 01:48:12 +00:00
Mike Thomas e3de56d12a Change that StreamableHashIntMap into a more standard StreamableHashMap
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@922 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-06-08 01:41:24 +00:00
Mike Thomas 3865b20070 Bring the genascript ant target from narya/vilya to nenya.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@921 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-06-08 01:38:34 +00:00
Dave Hoover f6ec3f5af4 We require 1.5 now, so rock on!
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@920 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-05-17 20:13:54 +00:00
Dave Hoover cb15424946 Render debug footprints even if we don't render objects.
It's really handy when you've got objects that hide others to be able to
turn off the objects but still get footprints.

git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@919 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-05-14 18:57:53 +00:00
Dave Hoover 8d54026f63 Whitespace
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@918 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-05-14 18:57:52 +00:00
Dave Hoover 251da6cb22 Varargs
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@917 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-05-14 18:57:51 +00:00
Mike Thomas 209fbfceaf There's pretty clearly a larger issue here, but this seems to solve the immediate issue - ties in the sort are Really Bad as they lead to inconsistent ordering later on. But note that it's still very possible to end up with ties even with this change.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@916 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-04-22 00:48:03 +00:00
Ray Greenwell aaddc866e8 I think I can make this class usable for what I want by simply making
the Node class public so that I can see where I came from in my Stepper.

The thread non-safety only affects callers of getConsidered(), btw.

If I wasn't pinched for time right now I'd modernize this whole thing
and remove the sucky.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@915 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-04-13 21:44:57 +00:00
Ray Greenwell 24e3afe18f Some formatting.
Whatever: this class needs a kick to the head.
Maybe I should make a new one that isn't singleton and thread-unsafe
like this one.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@914 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-04-13 20:42:26 +00:00
Ray Greenwell c1ba3f7d18 Allow a Stepper to easily be created that doesn't consider diagonals.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@913 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-04-13 00:34:04 +00:00
Ray Greenwell 69d734863c Document two gotchas. This is fucked up. Fucking A.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@912 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-04-07 22:32:57 +00:00
Michael Bayne 80eb551aa0 Missed a file.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@911 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-04-05 01:41:33 +00:00
Michael Bayne 5188504acc Delete the built test bundles in our clean target.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@910 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-04-05 01:40:35 +00:00
Michael Bayne 04f4488f55 Make the "tests" target actually work (and run the tests). But we'll not run
the tests on every "dist" build, we'll just stick with the current behavior of
only compiling the tests (to make sure they don't rot). In a better world
ooo-libs would have a testall target which runs the tests on all the projects
it builds, so that we actually got the benefit of the few unit tests we have.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@909 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-04-05 01:35:58 +00:00
Mike Thomas 278696c655 Let's alphabetize those color names in the JComboBoxes.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@908 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-03-31 18:55:16 +00:00
Dave Hoover eb3673363e Button to save out the colorized image
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@907 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-03-24 22:06:16 +00:00
Dave Hoover 6d5c7af519 Log a stack trace for obscenely huge dirty regions.
If we're freaked out enough that we're carping & ignoring it, I want to
be able to actually figure out what's broken.

git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@906 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-03-24 01:08:49 +00:00
Michael Bayne b260dbe768 Should be no harm in compiling against Guava instead of GC as they have the
exact same API. So if you ship with GC instead of Guava, nothing will break.

Eventually we'll want to ship with Guava instead of GC so that we can use
Guava-specific methods, but projects can make that switch at their leisure.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@905 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-03-16 23:53:01 +00:00
Michael Bayne 2fd8b7fbaa Some raw type cleanup.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@904 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-03-16 23:27:05 +00:00
Michael Bayne c484d10a48 Fascinating. This class contains both toArray(ArrayList<Integer> lits) and
toArray(ArrayList<Float> list) which erase to the same argument types. They
differ in return types which means that the JVM recognizes them as different,
so when the compiler resolved that it needed to call
"toArray(Ljava/util/ArrayList;)[F", it was not a problem that
"toArray(Ljava/util/ArrayList;)[I" also existed.

javac 1.7 is a bit stricter about this sort of thing and issues a concerned
warning message. Since the ArrayList<Integer> version is not used, I'm nixing
it to avoid confusion.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@903 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-03-16 23:26:27 +00:00
Andrzej Kapolka 4145611b9c Added method to get color class by id.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@902 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-03-11 02:03:04 +00:00
Mike Thomas 5920f44e64 It's probably helpful if the clone on the scene model actually clones its ObjectInfo bits.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@901 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-03-11 00:51:30 +00:00
Mike Thomas ba3be78a51 Separate out the modes of the recolor tool. There are now three modes - Using Color Class (old All Colorizations mode), Multi-Color (Specify up to 4 recolors), and Manual Recolor (old specifying target color, offsets manually mode).
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@900 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-03-10 21:41:41 +00:00
Mike Thomas 490dcdfd2b This was a tad broken - if an animation happened to paint before it ticked, it'd try to paint tile -1 which obviously didn't exist. This change may break any custom sequencers anyone has but seems necessary...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@899 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-03-04 01:39:36 +00:00
Dave Hoover e702a1b33e Unused import
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@898 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-03-03 19:06:03 +00:00
Dave Hoover c83c019a7d Varargs
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@897 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-03-03 19:06:02 +00:00
Mike Thomas 52e44de862 Uh.... If we've passed along our temporary/optimization member var _tbounds as a parameter to renderLayer() it's probably best if we don't then try to reuse _tbounds for something else while simultaneously attempting to use that parameter.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@896 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-03-03 02:06:09 +00:00
Mike Thomas 5e13f471ac Obscurers can now be told to only include changed regions in their reported obscured rectangle.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@895 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-03-02 23:00:10 +00:00
Mike Thomas ac407478d7 Fix a Truly Ancient (TM) bug.
The Scene Resolver thread and the dobj/AWT thread both talk to the _blocks map.  And if the resolver tried to get while someone else was doing a put(), that put could decide to resize/rearrange the map.  Which could result in the resolver not finding its block.  Which resulted in annoying missing tile blocks.  So - ConcurrentHashMap it up.

Woo!



git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@894 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-03-02 18:33:34 +00:00
Dave Hoover 829f812a8a Provide those constructors, too.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@893 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-02-24 01:30:42 +00:00
Dave Hoover f5fc7672f4 Varags logging
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@892 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-02-24 01:30:41 +00:00
Dave Hoover c60e694633 Fix typo
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@891 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-02-24 01:30:40 +00:00
Dave Hoover 80477e64ba No, comment, that ISN'T needed
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@890 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-02-24 01:30:39 +00:00
Dave Hoover 5cfb8d5d0d Whitespace
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@889 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-02-24 01:30:38 +00:00
Dave Hoover 2fb102fd7b Convenience wrappers.
I've been doing a whole bunch of AnimationSequences and 99% of the time
it's been one of those two stupid simple cases, so make them stupid
simple to do & stop cluttering up my code with extra args to linewrap.

git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@888 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-02-18 06:42:58 +00:00
Dave Hoover dc58efd6a9 Whitespace
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@887 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-02-18 06:42:56 +00:00
Dave Hoover 1bd06bf2cb Whitespace
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@886 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-02-12 19:36:44 +00:00
Andrzej Kapolka f49b351b27 We had a problem where we would start the sound (allowing for deferred
play) and then quickly stop it, so that the sound would resolve (and
thus start playing) after the call to stop.  To avoid that, store the
desired state if the sound is not yet resolved and check it when the
resolution finishes.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@885 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-02-12 01:09:54 +00:00
Andrzej Kapolka c37e74f635 Added sound group accessor to Sound.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@884 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-02-11 23:16:55 +00:00
Dave Hoover d815f0f41d Helper to make NinePatchMirage around a box
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@883 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-02-10 20:32:44 +00:00
Dave Hoover fc7e00c0d8 NinePatches to draw auto-stretchy borders
Google's Android has handy-dandy NinePatches for making a graphic that
stretches appropriately to border things, so here's my AWT
re-implementation of it.

git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@882 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-02-10 20:32:43 +00:00
Dave Hoover b68e799106 @Override gets the point across
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@881 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-02-10 20:32:41 +00:00
Dave Hoover fe544b0046 Whitespace
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@880 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-02-10 20:32:37 +00:00
Dave Hoover bb1f61957c How about I act like a civilized person with svnprops, copyright headers,
and all that?


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@879 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-02-08 23:57:33 +00:00
Dave Hoover a0762f36d6 Let us use a Sprite + Path as an animation
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@878 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-02-08 23:43:46 +00:00