Commit Graph

532 Commits

Author SHA1 Message Date
Dave Hoover 74322e54a9 Wrong "its"
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@1028 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-10-15 20:15:57 +00:00
Dave Hoover 8b17ad25f5 Foreachify
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@1027 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-10-15 20:15:54 +00:00
Michael Bayne 7def63d087 It's even twistier than I thought, but I'm going to assume that the original
logic did not take advantage of the fact that it was possible to fall through
the second switch and not actually return anything and further fall through
into supporting specialized or ignoring. If that really was going on, then this
hairy mess needed to be cleaned up anyway and deserves to be a bug.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@1025 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-10-14 17:51:20 +00:00
Michael Bayne 6eab62a3bd This logic is twisty.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@1024 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-10-14 17:46:58 +00:00
Michael Bayne 471c7e9c29 We can't rely on overriding methods in SubtitleChatOverlay to customize them
for a target system, because ComicChatOverlay already overrides
SubtitleChatOverlay and we wouldn't want to go down the twisty roads of
multiple inheritance even if we could.

Instead, I have factored out the customizable stuff into ChatLogic, which has
the dual nice properties of actually working in Java, and of making it very
obvious what is customizable, which was definitely not the case when these
methods were scattered among the four score methods inside SubtitleChatOverlay.
Win win!


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@1023 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-10-14 17:35:20 +00:00
Michael Bayne 981a0b458c Header fixes.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@1022 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-10-14 16:51:44 +00:00
Michael Bayne d0d4b1a28f Factored the subtitle and comic chat stuff out of Yohoho. All completely
untested. Whee! I thought I had gotten around to making a standalone avatar
chat room based on the Vilya Stage code, and was hoping to add this there, but
I guess I never did that.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@1021 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-10-14 16:49:41 +00:00
Mike Thomas b5a19fc68d Add a convenience function for checking start color if you have the full colorPrint
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@1017 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-10-08 18:56:17 +00:00
Mike Thomas 7dda42a091 Factor out the painting of the actual tile so we can override this to do wacky stuff in subclasses.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@1016 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-09-27 22:32:40 +00:00
Dave Hoover 87919b5f6f Whitespace
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@1014 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-09-17 20:39:13 +00:00
Mike Thomas 178fa9db35 Let's not just arbitrarily ignore colorizations in this image provider. It's making the artists using test tiles in the editor sad.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@1013 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-09-15 01:13:22 +00:00
Mike Thomas 795d63b901 Allow selection of random starting color using a specified random so we can consistently randomly pick colors.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@1005 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-08-29 00:40:36 +00:00
Dave Hoover b5dd723ef1 shouldPlay handles null just fine.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@1000 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-08-25 21:29:54 +00:00
Dave Hoover 480d98cc5e If we shouldn't play that sound type, don't loop it either.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@999 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-08-25 21:29:32 +00:00
Mike Thomas df556f4e81 Pass through our parameters so that looping works just like playing and we can set positions and gain and such.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@997 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-08-20 21:17:55 +00:00
Mike Thomas 52ca22c53a Fix some wacky assumptions about the similarity of types being compared.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@992 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-08-19 21:07:46 +00:00
Andrzej Kapolka d8cda89ab3 Provide a means of overriding the base gain at the group level.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@981 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-08-12 22:01:08 +00:00
Andrzej Kapolka 1be717f362 Notify sounds (via their groups) when the base gain changes.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@980 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-08-12 20:54:12 +00:00
Andrzej Kapolka 29ab63e86f Be consistent in how we apply the base gain.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@979 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-08-12 20:25:26 +00:00
Mike Thomas 85aca29ae6 Actually, those behaviors are so much alike, let's group it into a handy interface to ensure they stay that way.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@973 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-08-10 22:54:49 +00:00
Mike Thomas 469d356609 Mimic TrimmedObjectTileSet's functionality.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@972 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-08-10 22:49:46 +00:00
Mike Thomas 839ac301cb Bring over the options from TileSetBundler to ComponentBundler so we can get jars with uncompressed, untrimmed pngs.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@966 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-08-10 17:23:38 +00:00
Ray Greenwell 27657d0c2c Isn't NanoTimer a replacement for this?
Also, let's see if we can suppress the compile warnings...


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@963 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-07-26 19:30:46 +00:00
Ray Greenwell c795f1482a Prefer StringBuilder where possible.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@962 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-07-22 01:20:32 +00:00
Mike Thomas 665ed38c30 Allow tile set bundles to be created uncompressed - this probably will go hand-in-hand with the keepRawPngs parameter, but I can imagine the two being used separately so I won't overload the single parameter.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@958 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-07-16 00:13:44 +00:00
Ray Greenwell 83157e579b Prefer guava to samskivert.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@952 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-07-14 19:36:08 +00:00
Ray Greenwell f8df2c1b3a Misc. formatting.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@951 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-07-14 19:35:59 +00:00
Dave Hoover faa16baed2 StringUtil.replace is deprecated
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@948 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-07-13 21:45:54 +00:00
Mike Thomas 13b74c92a1 Colorization's range makes far more sense as inclusive rather than exclusive. In particular, it means if you have a color-class with a range of 0.0,0.0,0.0 it will match exactly the target color, which is surely what you meant for it to do.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@946 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-07-12 21:10:52 +00:00
Mike Thomas 141901b2af The TileUtil.getTileHash function's method for computing a seed was resulting in a lot of very non-random looking vertical and horizontal lines of the same tile, especially around the origin. (0^0 == 1^1 == 2^2 etc) So, let's bit-shift x to make it appear more random.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@942 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-07-09 00:29:56 +00:00
Dave Hoover 7752cca5b0 Document + change name.
"keepRawPngs" is a bit confusing since we tend to refer to the
FastImageIO format as "raw"

git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@933 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-07-02 23:20:28 +00:00
Mike Thomas 941a6a83b2 Allow a parameter to TileSetBundlerTask to keep the pngs in the bundle instead of converting to raw and trimming them.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@931 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-07-01 22:14:06 +00:00
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
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
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
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 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