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
Dave Hoover
e760b308c1
Whitespace
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@877 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-02-08 23:43:45 +00:00
Dave Hoover
62f572fac4
Pngcrush
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@876 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-02-08 23:42:21 +00:00
Dave Hoover
4610a48b23
I'd really like to make our build script blow up if we accidentally put in
...
duplicate colorIds, but let's at least scream & not put the new color in.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@875 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-01-21 00:38:36 +00:00
Ray Greenwell
d40a3535e6
Nix redundant casts.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@874 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-01-13 19:20:45 +00:00
Dave Hoover
fc187ae697
Remove now spurious casts
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@873 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-01-13 19:20:13 +00:00
Ray Greenwell
f0eaa44cab
clone() modernization.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@872 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-01-13 18:28:28 +00:00
Dave Hoover
a21a692f31
I swear; sometime before 2011 I'll be done stumbling across ways my
...
copyright updating missed things
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@871 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-01-06 01:11:06 +00:00
Dave Hoover
72bc6a4898
Some more copyrights I'd missed
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@870 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-01-05 22:12:26 +00:00
Dave Hoover
acfdd4be48
There's a whole bunch of serious overhaul and new feature work I'd love to
...
have the time to do to this guy, but here's a quicky that I've wanted before
that I can bolt on and make things even uglier
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@869 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-01-04 22:26:25 +00:00
Dave Hoover
db71878346
Welcome to the future.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@868 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-01-04 21:47:34 +00:00
Dave Hoover
d7db823fa1
I'm in ur nenya breaking ur api
...
We hit a wall in yohoho where we really needed 3 colors on a scene object.
Turns out that colorizations are restricted to 255 even though we stuff it
in a short, and even WE are only up to mid 50s or so with our zations, so
forcing it into a byte hopefully won't pain anybody else that happens to be
using this code.
So we add the ability to have tertiary and quaternary zations on miso objects
while keeping backwards compatability by slotting our two new bytes into
unused space.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@867 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-12-05 00:55:49 +00:00
Dave Hoover
b726523cf1
Javadoc updates
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@866 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-11-25 19:13:32 +00:00
Mike Thomas
0278208ef8
This is breaking a little backwards compatibility but on something we're surely not using anywhere else anyway - if a scene object has already been laid out, don't do it repeatedly, which was then causing extra dirty rectangles, especially when we scrolled. The actual breakage of compatibility comes that I took out the otherIndicators argument on SceneObjectIndicator.layout, which we weren't using anyway.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@865 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-11-25 19:08:12 +00:00
Andrzej Kapolka
29df8b9166
No need for the stack trace.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@864 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-11-18 20:31:16 +00:00
Ray Greenwell
1028287814
Modernize this logging.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@863 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-11-18 18:26:25 +00:00
Andrzej Kapolka
09c2726b46
I don't think this really qualifies as warnable.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@862 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-11-18 03:19:26 +00:00
Dave Hoover
a46c4bbb00
Some widening/vararg logging that I've had lying around for ages
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@861 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-10-29 22:28:31 +00:00
Jamie Doornbos
faa3315d7d
Return the most derived type for the box versions instead of Container. copy&paste error.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@860 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-10-26 20:54:16 +00:00
Jamie Doornbos
ad67558798
Some more useful methods for FlexUtil for creating layout containers and wrappers inline.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@859 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-10-26 20:52:04 +00:00
Ray Greenwell
292ca25d5a
MethodQueue -> DelayUtil.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@858 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-10-21 21:49:30 +00:00
Michael Bayne
faa51ea13c
Implement hashCode() sensibly.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@857 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-10-04 23:26:40 +00:00
Nathan Curtis
f8f9aaf47d
The only place I found that uses this ant task (other than in facepirate) is in the yohoho root
...
build file, and this change shouldn't cause any problems there from what I can tell. This is needed
for the hyena build in facepirate, but if it breaks things I'll revert and figure out another way
to do it.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@856 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-10-02 07:45:18 +00:00
Mike Thomas
63bbe83a00
Those who are visiting scene objects in this manner don't expect that their ObjectInfo is going to get stomped on by the next iteration. Let's do this safely and make each visit get its own object - it's also much more consistent with visiting interesting objects.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@855 ed5b42cb-e716-0410-a449-f6a68f950b19
2009-09-03 22:12:16 +00:00