Commit Graph

3144 Commits

Author SHA1 Message Date
Andrzej Kapolka 36b5a00139 Added TeamGameConfig interface for games with fixed teams (like Spades).
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3202 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-11-04 23:31:10 +00:00
Michael Bayne 0c5f723046 Added a method for computing the standard deviation of a set of values.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3201 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-11-04 04:52:31 +00:00
Andrzej Kapolka a7a04da6df Check to make sure card sprites are still managed before posting events.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3200 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-11-04 02:03:47 +00:00
Ray Greenwell 998e38c7c2 Fixed typo in comment.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3199 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-11-04 00:38:12 +00:00
Andrzej Kapolka 87d9b14dc1 Added delicious sausage style for ButtonSprites, darkening button text on disable.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3198 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-11-02 23:49:58 +00:00
Andrzej Kapolka da4bbd524c Fixed bug in dragging behavior.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3197 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-11-02 02:40:27 +00:00
Andrzej Kapolka a6ffa4dd01 Added card enter/exit event notifications.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3196 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-11-02 01:44:32 +00:00
Andrzej Kapolka c4eb1457dd Reordered suits for aesthetic purposes, made cards Comparable for sorting.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3194 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-11-01 22:10:21 +00:00
Michael Bayne 09d41faa37 Javadoc cleanup.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3193 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-10-30 04:33:22 +00:00
Michael Bayne c299e830a4 Added enumerateSprites() and removeSprites().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3192 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-10-30 04:33:08 +00:00
Michael Bayne 4481cd5f6c Added an import for a javadoc comment.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3191 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-10-29 19:33:16 +00:00
Michael Bayne b3de84c918 Render animations behind sprites in the back layer and in front of sprites
in the front layer which is generally what we want.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3190 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-10-29 17:10:46 +00:00
Michael Bayne 78e7fd6837 The way we were postponing gameDidStart() and gameDidEnd() until after the
action cleared was ungood. It really only worked for the delegates. Now we
do it in a way that works for the controllers themselves and the delegates.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3189 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-10-29 16:32:10 +00:00
Eric Lundberg 14c3a0515a Allow more 'advanced' robots to be created by derived classes if they like.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3188 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-10-29 00:48:37 +00:00
Andrzej Kapolka 18611da53d Added ButtonSprite class for card game user interfaces.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3187 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-10-29 00:41:50 +00:00
Michael Bayne dd1f895190 Handle the situation where a referred object and the referring object are
both destroyed without any intervening event processing.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3186 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-10-28 21:59:00 +00:00
Michael Bayne abc4e9c86a Pass the synced board state (or null) to the managers so that they can
behave differently (if necessary) when processing an event that has an
associated board state.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3185 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-10-28 19:29:59 +00:00
Michael Bayne eb900f0084 No more SYNC_BOARD_STATE.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3184 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-10-28 19:20:27 +00:00
Michael Bayne 1b99ba033e No more SYNC_BOARD_STATE either. Now that too can be activated at runtime.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3183 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-10-28 19:20:04 +00:00
Michael Bayne 19bd1b06bf Javadoc cleanup.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3182 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-10-28 18:59:35 +00:00
Michael Bayne bb113e6915 Only add the pause key combo if we're not robot testing.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3181 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-10-28 18:59:14 +00:00
Michael Bayne aae20e9918 Make it possible for external entities to check whether or not the robot
tester is activated.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3180 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-10-28 18:53:26 +00:00
Michael Bayne cec4e340d4 Moved ROBOT_TEST into a runtime adjust.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3179 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-10-28 18:37:49 +00:00
Michael Bayne 6b1be3d964 Comment edits.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3178 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-10-28 17:59:11 +00:00
Michael Bayne a70efc3ffb NoLongerAnySuchNoSuchTileException. Instead we just log a warning and
return a tile with an error image so that the caller doesn't freak out and
we achieve maximal "continue to work as much as possible."


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3177 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-10-28 17:49:02 +00:00
Michael Bayne 69e3f857c2 Don't let crazy components ruffle our feathers.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3176 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-10-28 17:21:56 +00:00
Michael Bayne 8e9322c7fb Don't reclose an already closed connection, it generates a warning.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3173 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-10-27 01:27:44 +00:00
Michael Bayne bb5fdbb8c0 We need to refetch our reference to the DSet if the whole thing changes.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3172 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-10-26 21:05:27 +00:00
Michael Bayne 36a629c5e9 More ...Equal() -> ...() and ...() to ...Ref().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3171 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-10-23 17:36:32 +00:00
Michael Bayne 90ae3fd17e ListUtil.contains() -> ListUtil.containsRef()
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3170 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-10-23 17:21:54 +00:00
Michael Bayne 0c5c30514c Meaningless edits!
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3168 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-10-23 01:19:39 +00:00
Andrzej Kapolka 4038671d75 Added separate values for red and black jokers.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3167 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-10-22 23:19:07 +00:00
Michael Bayne 2aafbbfe7f We need always to call boardDidStabilize() before clearing the action
because that will do things like queue up score events and whatnot that
cannot be ignored. It will also queue up the next drop sprite, etc. but
that's fine as we can safely end the action in such circumstances.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3165 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-10-22 21:13:08 +00:00
Ray Greenwell 4fda6a2fcb Allow specification of a personality type along with the skill level
when setting up AIs.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3164 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-10-22 19:27:54 +00:00
Michael Bayne f04caa3579 Changing the name of clone() just so we can change the return type is
Kormanian wackiness. Let's just make clone() public and use it like
civilized people.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3163 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-10-22 18:50:51 +00:00
Andrzej Kapolka 5766a6650f Removed getPuzzleName in favor of getGameName.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3162 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-10-22 18:11:09 +00:00
Andrzej Kapolka 5c8e1f10af Moved getClone, getBundle name from PuzzleConfig to GameConfig; added getGameName to GameConfig (but retained getPuzzleName for now--will change soon).
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3161 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-10-22 17:50:03 +00:00
Michael Bayne 5dab3011e0 Don't freak out if we get lots of pongs.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3160 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-10-22 01:19:55 +00:00
Michael Bayne d9eb445d84 Log if we write out big messages because I saw some stuff about bugs in
Windows where it wigs out and behaves as if the connection was reset by
the peer ("An existing connection was forcibly closed by the remote host")
if one writes messages bigger than about 25k. I can't imagine how we would
be sending such big messages to the server, but it's worth a check.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3159 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-10-21 23:36:27 +00:00
Eric Lundberg 34863f4ce0 Seems like we probably don't want this turned on.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3157 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-10-21 19:49:22 +00:00
Michael Bayne c8416e0674 Keep track of when pieces are moving into position so that we can do
things like not render "targets" as filled until they actually arrive.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3156 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-10-21 18:07:37 +00:00
Michael Bayne 5939e8fd02 Removed special handling that is now confined to Yohoho and its particular
requirements.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3155 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-10-21 02:54:44 +00:00
Michael Bayne 2359961556 Pass the install target to make as it's now needed.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3154 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-10-20 03:32:43 +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
Michael Bayne 53afb875f0 Position the pieces before adding them to the view.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3150 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-10-20 02:23:36 +00:00
Michael Bayne 72aa4b05d7 Create an instance of the appropriate class when cloning.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3149 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-10-20 00:16:39 +00:00
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