Commit Graph

22 Commits

Author SHA1 Message Date
Michael Bayne d06c0fad00 Some debug logging to try to track down the "I entered the puzzle but it
never started and the server eventually gave me the boot."


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2776 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-08-16 00:28:43 +00:00
Michael Bayne 1a0a1c8951 Created a PartyGameConfig interface and rejiggered party game support a
bit to incorporate it.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2261 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-02-12 05:34:53 +00:00
Michael Bayne 6c9c3d82f0 Changed service field to gameService; added code to clear out game service
registration when game goes away.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1726 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-20 04:53:42 +00:00
Michael Bayne ea471aeacc No chokey if we have no game object.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1712 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-18 19:26:05 +00:00
Michael Bayne e54a4d41f4 The great invocation services rethink of 2002! Rearchitected the remote
method invocation services and converted everything to the new style.
Could this be my biggest checkin ever?


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1642 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-08-14 19:08:01 +00:00
Walter Korman abcc329e78 Expanded imports.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1470 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-18 02:35:10 +00:00
Walter Korman 3f45a25bdb Store the current round id in the game object rather than tracking
separately in the game manager and controller which can then get unhappily
out of sync.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1450 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-12 07:59:19 +00:00
Walter Korman c4c8e2297b Added the notion of a round with an associated round identifier that is
incremented whenever the game is reset.  Games that don't make use of the
resetting functionality essentially consist of a single round.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1420 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-03 21:08:57 +00:00
Michael Bayne 18c4c32c85 Whoops, I booched it.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1346 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-07 00:57:49 +00:00
Michael Bayne 581a2cce44 Don't choke if we're asked about game over and we've already shut down and
pitched our game object.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1344 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-07 00:49:24 +00:00
Walter Korman 988223cc3e Consider the game to be over when its state isn't IN_PLAY, so that
AWAITING_PLAYERS, CANCELLED, etc. are properly addressed by those that
check in on these sorts of things.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1276 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-04-18 16:57:29 +00:00
Michael Bayne 0e23a600b2 Clear out the game over flag when the game starts (or resets).
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1237 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-04-14 02:33:16 +00:00
Michael Bayne fd87ec437a Moved game reset processing into main game framework. Also modified game
start processing on the server so that we don't want for the IN_PLAY
attribute change to be processed before calling gameDidStart() because we
don't want to do that when resetting the game (because someone could come
along and end the game in between gameWillStart() and gameDidStart() which
would be annoying and bad), so we need to be consistent and run straight
through both when starting the game for the first time and when resetting
it.

This means that game managers that really need to wait until their events
are processed and do some game start processing at that point will have to
listen for the IN_PLAY transition themselves *and* they'll have to be
aware that someone could have come along and ended the game in between the
call to gameDidStart() and the dispatch of the IN_PLAY event. Sketchy, but
unavoidable.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1235 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-04-14 00:26:05 +00:00
Michael Bayne a85a6f1394 Delegation! Since it's clear that extracting services into delegation
classes is only going to become more common, I've gone and created a
comprehensive facility for creating and using delegates in the place
controller and manager as well as the game controller and manager. With
the pattern nicely set, it is also easy to extend to controller/managers
further up the hierarchy that might need to delegate special methods of
their own. Whee!


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@994 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-02-13 03:21:28 +00:00
Michael Bayne 804505890f We love to revamp! Created a set of listener interfaces which are used
with distributed objects rather than having a single handleEvent() by
which all subscribers are forced to hear about all events. Now one
subscribes separately and then adds onesself as any of a few types of
listener once they have access to the subscribed object reference.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@439 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-12 00:03:03 +00:00
Michael Bayne 6634eb3fc9 Moved Parlor game stuff into parlor.game package instead of spreading it
across parlor.client, parlor.server and parlor.data.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@437 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-11 21:08:22 +00:00
Michael Bayne 8a4c46badc The first great Three Rings renaming. Cocktail changed to Narya, Cher
changed to Presents and Party changed to Crowd. Whee!


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@431 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-11 04:07:54 +00:00
Michael Bayne ac477756ea Added code to handle sending player ready notifications and to process
them on the server (and start the game).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@430 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-11 03:12:38 +00:00
Michael Bayne 1d64794349 Cast our context and config references before calling super.init() so that
things are set up properly when createPlaceView() is called.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@409 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-09 17:20:39 +00:00
Michael Bayne d7fb56d203 Override willEnterPlace() and subscribe to the place object. Override
didLeavePlace() and unsubscribe.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@404 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-06 01:36:19 +00:00
Michael Bayne 7d3e13dba4 More progress. Brought things into line with the Party services which now
provide some of what we were going to provide with the Parlor services.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@403 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-06 00:25:29 +00:00
Michael Bayne 1e7b01ad85 Yet more Parlor progress. Added GameController which manages the flow of
the game on the client side and have started to wire up the DObject stuff.
Whee!


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@366 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-01 06:19:15 +00:00