Commit Graph

65 Commits

Author SHA1 Message Date
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 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
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
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
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 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 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 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 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
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 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
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
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 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
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
Michael Bayne cb5c7c5d22 Added startActionImmediately(), put it to use.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3081 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-08-16 22:58:23 +00:00
Michael Bayne 01c497ae64 Added hasOverlay().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3080 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-08-16 22:58:06 +00:00
Ray Greenwell 2efe7cc777 Moved getPerformanceLevel to yohoho where it belongs.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3063 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-07-29 21:51:38 +00:00
Ray Greenwell 51ce5f3b4f Qualify them error messages.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3062 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-07-17 00:24:31 +00:00
Michael Bayne 1da753e14d Brought things up to date with the latest Jakarta Commons world order.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3058 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-07-13 16:34:49 +00:00
Michael Bayne a6f57205d7 Make sure we stop the drop sprite from dropping at high velocity when we
suspend the puzzle. Also added some logging to debug the occasional
obscure situation where the puzzle is suspended at just the right time to
prevent the drop block from properly starting up again when we resume.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3057 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-07-10 05:18:59 +00:00
Michael Bayne a19b77e68b Confirm our start puzzle requests.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3056 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-07-10 04:17:21 +00:00
Michael Bayne 434a7cafb0 We need to set the difficulty before we set the board seed because that
triggers the generation of the boards and the difficulty needs to have
been broadcast prior to that.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3040 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-06-22 15:35:10 +00:00
Michael Bayne a4cdf5382e Removed vestigal constant.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3039 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-06-22 14:26:10 +00:00
Michael Bayne 2f0b9939d7 Some cleaning up of the difficulty handling so that we can use it as the
basis for our star system.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3038 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-06-22 14:08:58 +00:00
Ray Greenwell 11fba91964 Fixed pause-related bug. Lord forgive me for mucking about in here so much,
but now I've cleaned up the code that dicks with mouse listeners while
paused and moved it into an inner class so that it's easier to understand.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3002 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-05-05 02:38:22 +00:00
Ray Greenwell 1a0ae950f4 Changed module name to just "puzzle" (we're not longer in yohoho).
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3001 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-05-04 23:36:01 +00:00
Ray Greenwell d3176c2d9c Sigh, fixed so that the first click is not eaten if the user unpauses
with the keyboard.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2998 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-04-30 00:02:21 +00:00
Ray Greenwell cb7007226b Use the good'ole MouseHijacker to prevent the click that unpauses to
pass through to the board view.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2996 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-04-29 00:28:05 +00:00
Ray Greenwell d5889452eb Fixed click-to-unpause for non-blockade duty puzzling...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2995 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-04-28 18:57:55 +00:00
Ray Greenwell aa7537d526 When paused, don't install the mouse-clicky unpauser on the boardview, but
rather on the whole panel. This allows us to unpause by clicking even if the
boardview is removed during pausing, as it is now in blockade duty puzzles.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2993 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-04-14 00:36:49 +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 d618d3c771 Eclipse suggested cleanup.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2971 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-02-25 14:50:28 +00:00
Ray Greenwell 70cb0c1cfd It's not a draw if one player leaves the puzzle before the other one
scores any points: we are only a draw if the number of winners equals
the number of players who have not bailed.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2944 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-01-30 23:03:22 +00:00
Ray Greenwell 44247f19c6 Sigh, instead let's try giving each drop sprite only two "pop-ups".
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2928 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-12-31 01:26:23 +00:00