Commit Graph

104 Commits

Author SHA1 Message Date
Ted V 64de3f4368 Player status is now initialized for all games. (And yes, I tested
that initBoard didn't generate some exceptions now that the player
status initialization occurs after board summary initialization.  This
occurs in sword fighting and old drinking, for the record.)


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3546 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-05-12 00:51:11 +00:00
Ray Greenwell f5e5d273e7 Moved ScoreAnimation to parlor/media so that games may make use of it.
Removed "puzzle fonts" from the narya library (lived in PuzzleBoardView).
Left convenience methods in PuzzleBoardView for creation ScoreAnimations,
as we like convenience.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3527 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-04-28 23:17:29 +00:00
Michael Bayne 2351316259 Removed unneeded dependence on the sound services.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3524 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-04-25 21:08:52 +00:00
Ray Greenwell 90e3065751 No longer assume that all board summaries are blank at the beginning
of the game- go ahead and initialize them and set them in the game object
when the game starts.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3495 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-04-15 21:44:36 +00:00
Michael Bayne 9692c7d221 Moved the main functionality of the score animation into
FloatingTextAnimation which is more sensibly named and in a place where
everyone who wants to use it can do so without creating a pointless
dependency on the puzzle code.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3479 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-04-13 19:06:33 +00:00
Michael Bayne 5539822fe2 Recommented out some old debugging.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3459 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-04-04 22:41:40 +00:00
Michael Bayne 7e63d1c859 Avoid using the AffineTransform font derivation mechanism on MacOS X where
it is quite buggy. There are still issues with non-affine transformed
fonts, but they are lesser.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3456 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-04-01 22:33:42 +00:00
Michael Bayne 934a596bfa Don't ever leave the keys grabbed.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3453 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-04-01 01:05:40 +00:00
Ray Greenwell 31a1eb685a requestFocus() -> requestFocusInWindow()
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3450 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-03-31 17:26:01 +00:00
Andrzej Kapolka 74ccc09a97 Get the pause font size from a method that can be overridden by subclasses.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3448 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-03-30 19:51:06 +00:00
Andrzej Kapolka 1d4d9fe2ba Check for null puzzle object.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3423 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-03-24 00:46:28 +00:00
Andrzej Kapolka 32a42047dc Ignore non-existent bodies when players knocked out.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3420 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-03-22 03:11:07 +00:00
Ted V 94bf03ec9d Moved player status tracking and in/out of game status from puzzles to
games.  Updated the PLAYER_KNOCKED_OUT variable name to prevent some
namespace contention issues.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3386 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-03-09 22:52:03 +00:00
Michael Bayne dbbd8e955f Decided to take the pain and refactor the parlor.game and parlor.turn
packages properly into client, data and server subpackages. This
eliminates a bunch of hackery I had to do to properly handle dead code
removal when building the Game Gardens client and games and it simplifies
things and sets a good example to follow the standard procedure as much as
possible.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3381 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-03-03 19:36:34 +00:00
Michael Bayne 44f2a29f4f Regenerated with updated copyright information.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3365 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-02-22 18:56:52 +00:00
Michael Bayne 41fb0b1b80 The PuzzleService was superfluous. The ParlorService can handle starting
single player games and indeed should because it's useful outside the
context of puzzles and their ilk.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3359 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-02-19 22:38:06 +00:00
Ted V 44be1bda18 Fixed bug where action animations and sprites weren't being removed
when all animations and sprites were cleared out.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3320 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-01-28 03:28:38 +00:00
Michael Bayne afabea71ad Big fat Bernie javadoc cleanup.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3310 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-01-24 23:08:21 +00:00
Ray Greenwell b295fb2630 Regenerated with non-NPEing code.Regenerated with non-NPEing code.Regenerated with non-NPEing code.Regenerated with non-NPEing code.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3300 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-01-08 22:05:00 +00:00
Michael Bayne 61c0dde5d5 Regenerated the distributed objects with the new clone happy bits.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3295 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-01-05 06:46:11 +00:00
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