Ray Greenwell
a41128f93d
Broke streaming backwards compatibility, only stream the ints that matter.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3937 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-11 02:42:21 +00:00
Michael Bayne
c6eb691cdc
Comment clarification.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3895 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-02-28 01:06:11 +00:00
Michael Bayne
282b04930f
Extracted our hairy bunch of logic for launching an external web browser into a
...
reusable location.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3894 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-02-28 00:46:15 +00:00
Mike Thomas
402de06e07
Added float-based weighted random selection function.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3851 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-02-14 21:46:53 +00:00
Ray Greenwell
765fdc8edf
Optimization: grow ourselves to the needed capacity prior to
...
fully reading elements off the stream to avoid repeatedly allocating
storage arrays and copying or rehashing the elements.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3818 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-01-23 23:08:02 +00:00
Ray Greenwell
7a64be94f2
Goodbye, NestableIOException.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3788 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-12-20 02:09:18 +00:00
Ray Greenwell
fa1f5a0dd0
Added getClosest() for finding the closest direction in a list to one
...
specified. I'm not sure I'll actually end up needing this, but it's handy
for what I'm currently toying with.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3783 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-12-15 02:49:28 +00:00
Ray Greenwell
852f32696b
More efficient serialization.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3767 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-11-23 02:24:17 +00:00
Michael Bayne
596d2a4708
blank() -> isBlank().
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3749 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-11-09 04:00:16 +00:00
Michael Bayne
6e9687ac9b
Follow standard guidelines for predicate methods.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3747 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-11-05 02:25:56 +00:00
Ray Greenwell
6cb4345c6c
Added method to get the Locale object that the client is using.
...
This may be different from the default Locale.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3746 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-11-04 02:16:05 +00:00
Ray Greenwell
a12b610007
Extend SimpleStreamableObject rather than TrackedStreamableObject.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3734 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-10-18 00:06:30 +00:00
Ray Greenwell
dec1b3c6ef
Added a form of pickRandom that accepts a Random object.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3732 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-10-13 09:19:22 +00:00
Ray Greenwell
aed0f94e50
Fixed my own retarded (broken) implementation of pickRandom. If a list
...
had been passed in with 3 elements and the first one was the 'skip',
then the second one would get picked 100% of the time.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3730 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-10-13 08:52:13 +00:00
Ray Greenwell
84c5a06d4f
Goodness, let's optimizee the common case: if two name objects ARE the
...
same class and loaded from the same class loader we don't need to
do two string compares.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3678 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-08-11 19:15:24 +00:00
Michael Bayne
ffec15fdd9
We need to build libunsafe.so for FreeBSD.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3674 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-08-08 19:00:33 +00:00
Michael Bayne
06b8f41e66
Added setuid() and setgid() to Unsafe.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3653 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-07-21 19:10:08 +00:00
Michael Bayne
492801b7db
Some placeholder makfiles to make things compile without fiddling on ze
...
Macintosh.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3582 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-05-28 17:30:29 +00:00
Ted V
bc30a3f389
Handy constructors.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3464 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-04-12 01:09:57 +00:00
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