Commit Graph

84 Commits

Author SHA1 Message Date
Michael Bayne 55a0ab91f7 Regenerated our DObject derivations in the new world order.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3288 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-12-28 03:51:29 +00:00
Ray Greenwell bd80c348eb The great Interval revamp.
There is no more SafeInterval, instead Intervals can be constructed with a RunQueue to use for expiring.
PresentsDObjectMgr implements RunQueue.
Client has a getRunQueue() method to get the client side RunQueue.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3283 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-12-22 19:23:00 +00:00
Ray Greenwell 60582d2f5c May as well let the PAUSE key pause/unpause, and cleaned up comments.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3281 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-12-22 00:23:10 +00:00
Ray Greenwell 19aaa0fa3c Rather than greatly complicating the user interface (and code) for defining
custom keys to include a 'global' section, I've just re-added the P key
in a hard-coded manner. If the P key is pressed, the puzzle isn't already
paused, and the user has not redefined P to perform some other command in
the puzzle, it will pause.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3279 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-12-20 23:46:36 +00:00
Ray Greenwell 129f302938 Put the pause label in the middle of the visible board.
This fixes the bug where there was no pause message in carpentry.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3264 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-12-08 00:08:44 +00:00
Andrzej Kapolka 33df387517 Moved shouldBroadcast override from PuzzleObject to GameObject.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3260 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-12-03 23:30:34 +00:00
Michael Bayne a04e23e025 Regenerated our marshaller and dispatcher classes with the new Java-based
generator. It handles inner classes slightly differently and prepends a
project-specific header to the generated classes.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3239 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-11-25 04:47:40 +00:00
Ray Greenwell 90621e78de Moved standard puzzle chat up to the game level, so that all games
can broadcast chat messages on their object..


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3237 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-11-25 00:21:46 +00:00
Andrzej Kapolka 98ea85c9b1 Pushed getRatingTypeId up to GameConfig.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3230 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-11-23 22:01:41 +00:00
Andrzej Kapolka e5f36ca111 Pushed reportWinnersAndLosers and related methods up to GameManager, MouseInputAdapter instead of MouseAdapter/MouseMotionAdapter.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3221 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-11-18 21:45:10 +00:00
Michael Bayne 8451c39797 Added missing copyright headers to the .dobj files.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3218 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-11-17 23:16:56 +00:00
Ray Greenwell 39fcb381e2 Allow specific puzzles to override the default sync setting and force a sync.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3215 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-11-12 20:03:35 +00:00
Michael Bayne 01545355f5 Allow score animations to be extended.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3213 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-11-12 01:09:48 +00:00
Michael Bayne 4928ff01c7 Support extension.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3212 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-11-12 00:33:38 +00:00
Michael Bayne 1c1169e723 We need to use our view bounds here (which will be the same as the actual
bounds for non-scrolling views).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3211 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-11-11 23:53:51 +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
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 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