Commit Graph

101 Commits

Author SHA1 Message Date
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
Ray Greenwell 2f166d2bb1 Added getInt(high, low).
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2583 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-16 02:21:37 +00:00
Michael Bayne 98e3e530da Remove verbose logging.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2563 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-09 18:40:07 +00:00
Michael Bayne cde14e4bfa Ignore the generated .def files.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2560 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-09 03:22:39 +00:00
Michael Bayne 9a5bea62fd Possibly working code to cross-compile Windows native DLL. Whee!
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2559 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-09 03:22:16 +00:00
Michael Bayne ff691ca88c There's no two ways about it. This shit is definitely not safe.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2556 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-08 21:25:20 +00:00
Ray Greenwell 1387c9f08b Clarified documentation somewhat. It's too hot today.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2552 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-07 19:47:02 +00:00
Ray Greenwell b545d1ff05 Added moveDirection() which can move a point in the specified
screen direction.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2551 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-07 19:41:57 +00:00
Michael Bayne 7457e46374 MacOS safety project, phase 1.1.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2537 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-03 00:12:12 +00:00
Eric Lundberg 3d290efb21 A streamable intint map, it's amazing!
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2446 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-22 23:36:56 +00:00
Michael Bayne b9f4c24a7a Allow 10 milliseconds to elapse before we'll register another ctrl-c
rather than just 1.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2363 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-31 04:10:03 +00:00
Michael Bayne 5f160cbd3a Whipped up some native code to allow signals to be caught and handled from
within Java (on Linux anyway). We dig it the most baby!


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2360 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-31 02:10:04 +00:00
Ray Greenwell 6eb6289a48 return -1 rather than puke if invalid weights are specified for
getWeightedIndex.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2310 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-18 19:38:30 +00:00
Michael Bayne 7295ef9f87 Add support for handling plurality more simply.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2300 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-05 23:27:39 +00:00
Ray Greenwell 15792c5928 added getWeightedIndex().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2298 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-05 02:50:28 +00:00
Ray Greenwell 7bde1b3b4b Use JAVA_HOME rather than hardcoding the path.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2286 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-02-18 23:06:54 +00:00
Michael Bayne f0628cfeac A streamable hash int map; whee!
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2283 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-02-18 03:01:16 +00:00
Michael Bayne a54b3e279c Added getOpposite().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2273 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-02-12 07:22:04 +00:00
Ray Greenwell 1a3699b39c Changed the default initial keyrepeat delay to 500ms from 150ms.
It should at least be higher than the repeat rate (200ms), and I think 500ms
is about right. That's what X defaults to, I believe.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2251 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-02-10 18:48:16 +00:00
Michael Bayne cc680cbd17 Give the native keyboard library a chance to initialize itself and
determine whether or not all is well. Use that opportunity in the Linux
keyboard library to determine whether or not we can open a connection to
the X server, and if not, disable the library rather than throwing a
RuntimeException the first time we are called and generally sticking a
fork in the whole program.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2213 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-23 19:00:44 +00:00
Walter Korman a5c348a775 Added support for specifying the delay in milliseconds before a pressed
key begins to auto-repeat.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2170 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-17 01:33:34 +00:00
Walter Korman fbb5fb841a Don't post the key press command when the repeat interval fires if the key
has been released.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2165 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-16 21:18:02 +00:00
Walter Korman 0a5104a70c Allow specifying the rate at which individual key presses are to be
repeated.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2133 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-14 00:53:38 +00:00
Walter Korman 7953fb0b24 Oops; use the install target as the main target so that we only rebuild
things when it's actually necessary to do so.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2112 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-12 02:06:10 +00:00
Walter Korman 786f6f8a63 Build the native linux keyboard library as part of the normal compilation
task and place it in dist/lib/i686-Linux.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2111 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-12 02:04:19 +00:00
Walter Korman 494fc1a620 Ignore the dll.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2108 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-12 01:19:05 +00:00
Walter Korman de6c4371b9 Initial version of linux (working) and Windows (not yet working) native
libraries for enabling and disabling keyboard auto-repeat.  Restored
auto-repeating in our own KeyboardManager, and disabled the interval used
to differentiate between a "real" and "fake" key repeat since we believe
we can now do without it.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2107 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-12 00:26:39 +00:00
Walter Korman 3d2e98f7da Fixed typo in comments. Tried to resist due to negligibility of typo, but
the perfectionist in me got the better of, me.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2061 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-12-12 22:27:25 +00:00
Michael Bayne d6f5a4da4d Added support for fully qualified translation messages which will be
fetched from the message bundle embedded in the fully qualified key even
if they are being translated within the context of another message bundle.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2060 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-12-12 22:24:51 +00:00