Commit Graph

230 Commits

Author SHA1 Message Date
Michael Bayne 0bf43bc2e8 Step two in the great Stage refactor. I don't know how many steps will be
needed all told, but I like to see the number keep going up.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3438 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-03-29 23:18:59 +00:00
Michael Bayne f2a9f7ed0d Further AI handling improvements.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3401 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-03-12 10:08:02 +00:00
Michael Bayne 787d4f1fe5 Allow AI configuration to be specified in the GameConfig and automatically
put into place before the game starts.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3400 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-03-12 07:46:34 +00:00
Michael Bayne fb53600e92 Revamped the way AI configuration is specified to be more extensible.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3399 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-03-12 07:37:34 +00:00
Ray Greenwell b4e595bd3c Prevent infinite loops if there is no qualified player to become the
new turn holder. Log a warning. This is how we do things here.

Additionally, something I didn't change that is redundant is checking
to see if the player name is null, when the default implementation of
the active player check will return false if the name is null. It seems
to me that the movement of the active player business into the base game
package can result in some cleanup that hasn't been done, but I don't
want to look into it any further.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3398 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-03-11 22:14:23 +00:00
Ray Greenwell 3549b9cdaf Do not require the playerStatus field to be initialized. If someone wants
to write a simple board game for gamegardens, they shouldn't have to
explicitly set up an array indicating that all the players are active
(or worse, waste 45 minutes tracking down why the game is freezing up
suddenly).

If the playerStatus array is null, all players are active.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3397 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-03-11 22:10:27 +00:00
Ted V 51e8ef3687 Yeah, it does need the !.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3391 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-03-10 00:16:13 +00:00
Ted V 08cc800694 Turn/GameManager now supports interface for checking whether a player
is still actively playing the game.  The delegate now uses this when
incrementing turns to skip over players not a part of the game (rather
than needing this same code in the derived classes).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3390 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-03-10 00:13:25 +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 924363a8a6 Further refactoring into client, data and server.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3382 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-03-03 19:55:35 +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
Ray Greenwell 40eb978a96 Added a simple turn display widget (for game gardens).
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3373 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-03-02 02:33:46 +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
Michael Bayne d2ea985abb Regenerated invocation receivers; fixing a javadoc booch in the process.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3311 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-01-24 23:13:00 +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
Andrzej Kapolka f2a5845db9 GameManager was calling gameDidEnd for games that never began. Changed to check that the game was actually in play.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3302 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-01-14 22:49:13 +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 c59290c91f Allow tables of one player which are started immediately.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3297 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-01-06 07:32:06 +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 920726f9f9 Noticed some other cleanup that could now be done.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3292 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-12-31 05:31:53 +00:00
Michael Bayne 0127ccba96 Only Yohoho needs the game object registered as an auxiliary source
because it plays games in a special place rather than actually moving the
player into the game room which naturally registers the place object as a
chat source. Fortunately, we can implement the necessary hackery to
support Yohoho in a reasonably generic manner.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3291 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-12-31 05:30:38 +00:00
Michael Bayne a6da0baf48 Regenerated in the new DObject world order.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3289 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-12-28 03:51:47 +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
Michael Bayne b56061da46 Added a default implementation of getRatingTypeId() as well since that's a
wacky notion from Yohoho that shouldn't really be in parlor in the first
place.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3276 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-12-15 02:39:58 +00:00
Michael Bayne 63131a8911 Added a default implementation of getGameName().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3275 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-12-15 02:38:42 +00:00
Ray Greenwell feb7355804 Go back to defaultly broadcasting to game objects, in case someone ever
creates a traditional lobby->room server with narya, and instead allow
a broadcast object to be registered with the ChatProvider to which all
broadcasts will be sent.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3261 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-12-03 23:47:19 +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
Andrzej Kapolka f4bb453f83 Don't report ready if not actually a player.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3258 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-12-03 03:27:37 +00:00
Andrzej Kapolka 5e1b2d16ec Added custom deserializer to initialize transient casted reference.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3253 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-11-30 02:19:58 +00:00
Michael Bayne dd4ce23b93 Restructured table creation to allow it to be customized. Though I now
realize I will probably have to change it further.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3252 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-11-30 00:32:43 +00:00
Andrzej Kapolka 9dc8c542b8 Added private table property to TableConfig.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3251 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-11-29 23:04:56 +00:00
Michael Bayne 1965e4ed30 Terser logging.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3249 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-11-27 22:29:32 +00:00
Michael Bayne d492d541b3 Create our game configurator directly rather than returning a class and
forcing the caller to instantiate it.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3248 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-11-27 21:24:33 +00:00
Michael Bayne bf9582e31c Regenerated everything in alphabetical order.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3244 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-11-26 23:14:39 +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 e6b9ee5afe Check to make sure active card is still managed before sending events.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3235 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-11-24 22:18:33 +00:00
Andrzej Kapolka 58876841c7 Changed getPartyDescription in PartyGameConfig to getDescription in GameConfig.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3231 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-11-23 22:28:39 +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 d9d3975027 Messages to receiver/service.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3228 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-11-23 02:47:38 +00:00
Andrzej Kapolka 70a23b7d80 Changes suggested by Mike.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3225 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-11-19 19:21:46 +00:00
Andrzej Kapolka 72a6f2f966 Switched to receiver for dealing cards.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3224 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-11-19 19:04:56 +00:00
Andrzej Kapolka 4294134954 Moved ButtonSprite up to com.threerings.media.sprite.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3222 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-11-18 23:39:12 +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
Andrzej Kapolka 84b6bf5468 Various easy changes suggested by Ray.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3220 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-11-18 20:01:00 +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
Andrzej Kapolka f8f251d44e Invalidate sprite before/after bounds update.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3205 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-11-09 03:24:50 +00:00
Andrzej Kapolka 8bebafafa7 Changed SAUSAGE style to more general ROUNDED style.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3203 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-11-05 02:07:19 +00:00