Commit Graph

2725 Commits

Author SHA1 Message Date
Michael Bayne aa241b22cb Do things in a slightly more thread-safe manner (whatever that means).
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3148 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-10-18 21:40:24 +00:00
Michael Bayne dcea064ecb Allow the BundledComponentRepository to be configured to wipe out its
bundle cache if it fails to locate the data for a character action. Also
updated wipeBundle() signature.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3147 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-10-18 21:39:18 +00:00
Michael Bayne ad4ac9318a Modified wipeBundle() to allow preservation of the jar file and to wipe
out Getdown's "verified" marker file so that Getdown will recompute the
jar file's MD5 hash and then wipe it out and redownload it only if it is
actually corrupted.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3146 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-10-18 21:38:22 +00:00
Michael Bayne 722d7b9098 More log quieting.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3145 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-10-16 00:06:37 +00:00
Michael Bayne beef7431f3 I'm so optimistic about the puzzle stuff now that the wacky waiter system
is gone, that I'll disable the action debugging. Yay optimism!


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3144 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-10-15 23:52:25 +00:00
Michael Bayne 3f591a83a6 Removed vestiges of waiter system.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3143 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-10-15 23:36:41 +00:00
Michael Bayne 90d8320297 Removed waiter mechanism which has become vestigal and was booching things
by being incorrectly used by the duty report system.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3142 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-10-15 23:33:51 +00:00
Michael Bayne 96677211f6 Microsecond handling was totally wrong. We didn't use it until now so it
wasn't causing trouble.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3141 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-10-15 22:22:37 +00:00
Michael Bayne d666c75460 Two things:
1. Modified the performance metric code to use hundred microseconds rather
than milliseconds as millis are not sufficiently fine grained.

2. Switched from using an ObserverList to a hand-rolled mechanism for
frame participants. It is unfortunate that we're not reusing code (though
this turns out to be 55 fewer lines of code) but the FrameManager needs to
allow tick participants to be removed from the list while in the middle of
processing another participant's tick.

With the ObserverList we have to use SAFE_IN_ORDER_NOTIFY which adds
undesirable overhead to each tick, or FAST_UNSAFE_NOTIFY which is
efficient, but freaks out if an as-yet-unticked participant is removed
during another particpant's tick.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3140 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-10-15 22:21:38 +00:00
Andrzej Kapolka 97e7d9c823 Spaces after ifs.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3139 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-10-15 18:20:28 +00:00
Andrzej Kapolka 8ad2aefdf2 Yet more formatting changes. Should be just about compliant with the standard.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3138 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-10-15 03:09:46 +00:00
Andrzej Kapolka 0b0fcf9d15 I had the orientations backwards.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3137 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-10-15 00:59:53 +00:00
Andrzej Kapolka 73f44a5ee3 Various changes for style, changes to Card recommended by Ray.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3136 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-10-15 00:14:23 +00:00
Andrzej Kapolka 9bbd46fa7b Added isValid() method to Card, ability to deal single hands to CardGameManager.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3135 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-10-13 19:29:12 +00:00
Andrzej Kapolka 90af7c794d A handy orientable sprite.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3134 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-10-13 02:03:44 +00:00
Andrzej Kapolka 82cf7b0a47 Card game services.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3133 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-10-13 02:03:26 +00:00
Michael Bayne af6409e742 Make the comments and logging consistent with what we're doing.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3132 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-10-13 01:09:14 +00:00
Michael Bayne bbabf827f4 A simple server useful for rejecting client logins when we don't want to
run a real server.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3131 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-10-13 01:02:19 +00:00
Eric Lundberg 9927b6a684 Cleaned up import.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3130 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-10-05 01:08:00 +00:00
Michael Bayne ffc1552225 Clear out idle state when client logs off in case their client object
remains around until their next session.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3129 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-10-01 22:04:18 +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
Michael Bayne aa3b2be4b6 Handle DSet fields being updated wholesale.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3127 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-09-29 04:04:20 +00:00
Michael Bayne f74f390025 Don't modify the array passed in by the caller.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3126 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-09-29 01:54:14 +00:00
Michael Bayne 0e4771dbd0 Now that the drop code uses sprites to display pieces, the
PieceGroupAnimation is even simpler.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3125 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-09-20 22:17:54 +00:00
Michael Bayne 2db2248bc4 Make the media panel's animation and sprite managers available.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3124 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-09-18 23:50:20 +00:00
Michael Bayne afced0e56b A couple of useful animations.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3123 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-09-18 22:58:39 +00:00
Michael Bayne 7b4aaa099f Handy functions for computing a value that smoothly progresses as a
function of time.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3122 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-09-18 22:57:08 +00:00
Michael Bayne 1a79a676ab The default implementation works with an animation manager which is what
we want to do most of the time anyway (in cases where we don't care about
whether an animation is "interesting" with regard to puzzle action).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3121 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-09-18 22:56:35 +00:00
Michael Bayne 814259ca42 Get a piece with the appropriate coordinates when updating.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3120 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-09-16 00:08:28 +00:00
Michael Bayne 8397a78317 Provide the board coordinates when creating piece images so that puzzles
that care can do the right thing.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3119 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-09-15 18:48:09 +00:00
Michael Bayne 8856ae43a0 Made session ending more robust in the face of potential boocehs by
derived classes.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3118 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-09-15 18:21:26 +00:00
Michael Bayne e535e580da Brought these two classes back into sync. This wiped out the
hand-modifications to setState() but we're no longer having problems with
multiply ending games so they are no longer needed.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3117 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-09-13 16:11:10 +00:00
Eric Lundberg 95d4bfb80e Allow one to remove an animation observer.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3116 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-09-10 22:16:54 +00:00
Ray Greenwell 779461f628 Made refreshScene() public.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3115 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-09-09 00:09:22 +00:00
Ray Greenwell a7ae0f76a3 Actually, moved isDraw() to GameObject, fixed bug..
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3114 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-09-01 21:03:11 +00:00
Ray Greenwell 7122d9afe8 Added isDraw().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3113 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-09-01 21:02:44 +00:00
Ray Greenwell 23a843d79b Pulled draw logic into its own method.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3112 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-09-01 20:35:06 +00:00
Ray Greenwell c314d304ec Added the interface RecolorableTileSet which indicates that a TileSet
has colorizations and implements the "String[] getColorizations()" method.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3111 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-08-30 22:09:29 +00:00
Ray Greenwell ae38a24d39 Removed cruft from a bygone day.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3110 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-08-30 22:08:15 +00:00
Ray Greenwell 9470ab69bd Color classes can have a default color.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3109 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-08-30 22:07:33 +00:00
Michael Bayne 97086356fc Revamped drop puzzle framework to use sprites for pieces instead of
rendering the board from the board state and doing all manner of jockeying
to prevent that from wigging out when the board state changes before the
display is ready to change.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3108 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-08-29 06:50:47 +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
Michael Bayne 1f8c4578b7 LGPLed the library. Hello world.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3098 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-08-27 02:12:55 +00:00
Michael Bayne 94a855d59e Allow configuration to be passed on the command line.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3097 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-08-27 01:41:21 +00:00
Michael Bayne 1311dafb1f Don't let freaky derived classes ruffle our feathers.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3096 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-08-24 22:37:47 +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 1229d183ff Track that object!
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3092 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-08-23 21:10:01 +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