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
7e9ad8b36a
Put the puzzle library in its own jar file.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3106 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-08-27 18:39:40 +00:00
Michael Bayne
47e759e8d0
JDBC libs not needed.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3105 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-08-27 18:38:55 +00:00
Michael Bayne
83a1e3e090
Instructions on building and bits.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3104 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-08-27 17:44:44 +00:00
Michael Bayne
72abeaa86a
Edits.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3103 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-08-27 17:37:52 +00:00
Michael Bayne
d7cae590a6
Why ant can't just fucking preserve the existing file permissions I have
...
no goddamned idea. Instead we have to tell it what to permission how. Yay!
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3102 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-08-27 17:31:48 +00:00
Michael Bayne
1fe5adff0b
Jar files don't preserve file permissions (yay!) so instead we create a
...
tar.gz and zip file just like all the other poor bastards trying to
distribute source in the Java world.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3101 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-08-27 17:22:22 +00:00
Michael Bayne
22b602f974
Various enhancements to make life easier for someone getting started with
...
the library.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3100 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-08-27 02:41:39 +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
Michael Bayne
bfc0fbcd3e
Removed DObject dump as that is now handled by the tracked object dump.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3090 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-08-23 21:01:36 +00:00
Michael Bayne
d28a272a2e
Clear our game end tracker when the game is started once again; add code
...
to work around the rapid-fire endGame()/startGame() calls that don't allow
the endGame() events to propagate before startGame() is called.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3089 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-08-23 18:40:58 +00:00
Ray Greenwell
3d47f13e5a
Let's not clear the mutelist when a player logs off, since the mutelist
...
is only populated when the MuteDirector is created, not when someone logs on.
The mutelist is client-side only, and in fact is shared between all users of
a machine. This is something that we should consider fixing now that
1 billion chinese are playing the game in web cafes.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3088 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-08-19 20:59:06 +00:00
Eric Lundberg
85f8a1296a
Promote the DropBoard to a non abstract class. Add in code for our
...
previously abstract methods to make the class behave how a theorized
IntDropBoard would have in our previous world of abstract DropBoards.
Removes the need for the ByteDropBoard and ShortDropBoard as classes can
now derive directly from DropBoard.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3087 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-08-19 00:55:27 +00:00
Eric Lundberg
c35b28f368
Removed the Byte and Short DropBoards. We don't send boards over the
...
wire in normal play, so we don't care about the space savings.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3086 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-08-19 00:49:59 +00:00
Michael Bayne
0b2a4f9589
A special animation that makes it easy to do fancy stuff with all the
...
pieces on a drop board, like slide them in or off or whatnot.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3085 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-08-18 01:34:19 +00:00