Commit Graph

129 Commits

Author SHA1 Message Date
Ray Greenwell 31a1eb685a requestFocus() -> requestFocusInWindow()
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3450 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-03-31 17:26:01 +00:00
Ted V d2325761ff But wait, there's more! You'll also get Streamability at NO EXTRA CHARGE!
Supplies are limited, so act now!


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3449 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-03-30 23:41:34 +00:00
Michael Bayne 0bd239c74c Added a version of getDirection() that works directly with doubles.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3408 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-03-15 07:58:28 +00:00
Ray Greenwell a9df96d6dd Fixed a bug with days not having a defined next-highest unit, which caused
day values to incorrectly always display as 0. I'm surprised nobody
else noticed this, it's right there on the blockade panel.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3372 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-03-01 01:16:01 +00:00
Ray Greenwell 8491496226 Actually, it was stupid of me to handle a non-RandomAccess list differently,
as they still implement get() and however they do that internally
is bound to be more efficient than doing the same thing through an
Iterator.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3367 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-02-24 06:52:09 +00:00
Ray Greenwell a107aef489 Added a form of pickRandom that takes a List argument.
I just can't bear to see a useless object created (an Iterator) and
potentially a great many objects iterated past in order to find the
chosen random object when the original List is usually RandomAccess.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3366 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-02-24 06:45:25 +00:00
Michael Bayne 40b6fc31d7 More jockeying to make things happy with Linux and FreeBSD.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3332 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-02-03 01:30:33 +00:00
Michael Bayne d49873820d Use names that correspond with System.getProperty("os.name").
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3331 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-02-03 01:25:21 +00:00
Michael Bayne 279849151c Use names that correspond with System.getProperty("os.name").
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3330 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-02-03 01:24:57 +00:00
Michael Bayne 924ab5c9e6 We've got crablegs! And a special Makefile for Linux and FreeBSD.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3329 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-02-03 01:22:28 +00:00
Michael Bayne ecf7c7f415 Fuck me riding a pony; whatever goddamned make that FreeBSD uses is
sufficiently incompatible with GNU make that I'd rather just have two
whole separate goddamned directories with their own Makefile than try
to get everyone to agree on how to do things.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3328 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-02-03 01:16:12 +00:00
Michael Bayne f26c58ef4d Revamped things to work in multiple flavors of Joonix.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3327 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-02-03 01:02:58 +00:00
Ray Greenwell dc09c1214d Added getTimeString() which returns more than one element of a duration
(example: 3 hours, 12 minutes and 32 seconds).

Rewrote getTimeOrderString() to be iterative.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3312 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-01-27 00:46:44 +00:00
Michael Bayne 69fd36030f Added support for using a custom classloader when loading message bundles.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3306 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-01-20 16:32:10 +00:00
Ray Greenwell bd80c348eb The great Interval revamp.
There is no more SafeInterval, instead Intervals can be constructed with a RunQueue to use for expiring.
PresentsDObjectMgr implements RunQueue.
Client has a getRunQueue() method to get the client side RunQueue.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3283 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-12-22 19:23:00 +00:00
Ray Greenwell 73832f59eb Made KeyRecord a static class.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3272 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-12-13 07:52:09 +00:00
Michael Bayne 8451c39797 Added missing copyright headers to the .dobj files.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3218 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-11-17 23:16:56 +00:00
Michael Bayne c1d95485df Pass the "don't bitch" flag to rm.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3153 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-10-20 03:30:47 +00:00
Michael Bayne 17d2f97021 Build the library in our local directory, which we can check in, and
install from there using the install target.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3152 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-10-20 03:30:20 +00:00
Ray Greenwell ca9e12d6ef Allow chat characters to by typed to the JRootPane, they're probably targetted
at a popup.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3128 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-09-30 23:35:13 +00:00
Ray Greenwell 174d0ac3ad It turns out that a cloned Object does not call any instance initializers,
which makes sense when you think about it, so we now increment the instance
when an object is cloned or created.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3107 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-08-28 01:23:31 +00:00
Michael Bayne a9720fd905 LGPLed the library. Hello world.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3099 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-08-27 02:21:06 +00:00
Ray Greenwell 5f4c4e82fd Prevent an ArrayStoreException when doing magical number pluralizing if
the array of arguments happens to be a String[].


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3094 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-08-23 23:21:40 +00:00
Michael Bayne 57a1cd774a Revamped the plural message selection code to magically activate itself
when appropriate and to automatically extract and use the integer value
even if it's a string so that we can compose up messages with
plural-customized versions just like we do regular messages. Magic++!


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3093 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-08-23 22:53:39 +00:00
Michael Bayne a2ae7d499d Track more objects!
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3091 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-08-23 21:05:04 +00:00
Ray Greenwell 56dca09a21 Another small bullshit Ray modification- move super.finalize to the end
in case it throws...


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3078 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-08-14 01:56:32 +00:00
Michael Bayne 93903aead7 Call super.finalize() which requires that we also declare our throw.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3077 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-08-14 01:52:46 +00:00
Ray Greenwell 62f4ddb82e Allow classes that previously extended Object and had no Constructor to
continue to be constructed without a constructor even if they extend
TrackedObject.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3076 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-08-14 01:32:23 +00:00
Michael Bayne 864adbdc20 Tracked objects. Now to set about to figuring out what to track.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3075 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-08-13 23:44:16 +00:00
Ray Greenwell 439f2b2d2b Added a version of getTimeOrderString where one can specify the maximum
time unit to use.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3070 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-08-09 22:27:45 +00:00
Ray Greenwell e5b1d3eda2 Go up to days.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3021 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-06-04 22:14:11 +00:00
Ray Greenwell 1d474b4863 By default, do not remove whitespace as part of Name normalization.
This is to prevent clashes between an NPP name like "Bad Bob" and a player
name like "Badbob". Something more sophisticated, like maybe a specific Name
subclass for yohoho usernames, is left as an exercise to the Mike, if desired.
Note that crew/flag name normalization is still as strict as ever.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2991 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-04-06 17:42:49 +00:00
Michael Bayne a0718bc6cd Report the locale we're using. It's handy.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2987 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-03-31 02:09:37 +00:00
Michael Bayne e39ff5ffd3 Whoops, we forgot to check in the main attraction.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2982 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-03-06 14:55:03 +00:00
Michael Bayne 32dee3cbaf 405 modified source files and 17,367 lines of diffs later we now enforce
more discipline when handling names in our code base. Any user entered
name should find its way into a Name object as soon as it comes out of a
text field or whatnot, and stay that way until it makes its way into a
text field or into a database record (for which String objects are vastly
simpler because of JORA magic).

Dear God, let me never again make a change this large for the rest of my
mortal life.

Unfortunately, this means we have to keep an eye out for funny business
pretty much everywhere. However, since we will absolutely want to test
market stalls and so forth on Azure, we'll have an opportunity to iron out
any funny business that might fall under the radar during our internal
testing.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2980 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-03-06 11:29:19 +00:00
Michael Bayne 072606b23a Added exists().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2949 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-02-05 17:39:03 +00:00
Michael Bayne 3efc81b1ab We want to fall back to our parent bundle both if we don't find a resource
or if we have no resource bundle at all ourselves.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2941 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-01-25 13:23:09 +00:00
Ray Greenwell 2552fd471b Simplified implementation.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2939 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-01-17 01:55:46 +00:00
Eric Lundberg afccde1dd2 INitial checkin of a streamable version of an ArrayIntSet. I like sets.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2938 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-01-17 01:14:12 +00:00
Michael Bayne 9cfe784c2f Use the appropriate methods from MessageUtil and provide pass-throughs for
our zillions of lines of code that expect the methods to be in
MessageBundle.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2902 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-12-11 06:34:43 +00:00
Michael Bayne 1178984f48 Moved KeyDispatcher into Narya because it's generally useful (and needed
by the puzzle stuff).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2877 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-11-26 01:42:57 +00:00
Michael Bayne 98e59b847e I discovered that ResourceBundle messages finally seem to do the right
thing with unescaped ticks (') which led me to modify MessageBundle to
automatically escape ticks before passing things to MessageFormat. This
allows us to use unescaped ticks willy nilly in our translation strings.
Yay! No more annoying worrying about whether we should use \' or '' or
having things be booched because we forgot one or the other.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2850 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-11-05 23:10:43 +00:00
Ray Greenwell fcca6c3ce8 Take advantage of HashIntMap.Entry.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2831 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-10-24 22:15:23 +00:00
Michael Bayne e8056bca17 Throw a useful exception if the parameters are invalid.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2828 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-10-22 20:26:32 +00:00
Michael Bayne 01b123b9f8 Added some utility methods for selecting a random element from an array or
iteration of known size.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2634 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-04 00:03:58 +00:00
Michael Bayne 41a69ba13f Whoops, that'll need to actually be Streamable.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2619 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-28 01:18:41 +00:00
Ray Greenwell d407253540 Iterate over the entries and save the key and value without having to
look up the value.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2618 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-27 23:00:22 +00:00
Ray Greenwell 1176ca526e No need to do hash lookups in writeObject().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2617 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-27 22:54:36 +00:00
Michael Bayne 5c9a0246d9 A streamable hash map.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2616 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-27 22:48:31 +00:00
Michael Bayne 8e820811bc No reason that embedded translation strings can't also be qualified (it's
quite necessary in fact).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2594 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-20 20:58:31 +00:00