Commit Graph

50 Commits

Author SHA1 Message Date
Michael Bayne 6e962013a9 Minor cleanups; added PlaceManager to MessageHandler callback.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@773 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-12-14 00:11:18 +00:00
Michael Bayne f4f846f7e8 Don't log the whole game object when we destroy it, just the oid.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@595 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-11-07 10:44:02 +00:00
Michael Bayne ebdb840264 Modified gameDidStart() and gameDidEnd() to take place after the game
state transition event has been processed. This ensures that any events
posted up to (and during) the call to startGame() or endGame() are
dispatched before we invoke code that reacts to that change in game state.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@593 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-11-07 03:21:42 +00:00
Michael Bayne b632510cb1 Javadoc edits.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@576 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-26 01:40:22 +00:00
Michael Bayne afdba54f1c Remove the body to table mapping when a user leaves the table.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@565 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-25 23:02:17 +00:00
Michael Bayne 6cc3631d48 Rearrangements and added code to clean up after tables when their
associated games finally go away.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@548 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-24 01:14:38 +00:00
Michael Bayne 30185cb814 Shut down the game manager when everyone leaves the room. The game object
and manager will simply disappear at that point which means that the game
will be aborted if it hasn't yet been completed.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@547 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-24 01:00:54 +00:00
Michael Bayne 218eea6dc2 Changed TableManager to TableDirector. Will I ever learn?
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@534 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-23 23:52:01 +00:00
Michael Bayne a4ceafd268 Extracted server side of table management from the parlor manager and put
it into its own table manager class so that each place manager that wishes
to perform table management can instantiate a table manager which can then
more easily track tables for that particular place.

Now handle occupants disappearing from pending tables properly. Still need
to sort out game object life-cycle tracking.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@532 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-23 23:47:02 +00:00
Michael Bayne 095cbfb970 Stub implementation of handleLeaveFailed().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@531 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-23 20:26:30 +00:00
Michael Bayne 246987893d More progress on table services (can leave a table, things start correctly
now, and much much more).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@529 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-23 20:23:29 +00:00
Michael Bayne 1214056eba More table services! Yay!
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@527 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-23 02:22:17 +00:00
Michael Bayne 395c8a2a19 Added stubs for invocation service callbacks.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@521 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-22 23:56:25 +00:00
Michael Bayne dc0df5bdf8 Javadoc updates.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@520 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-22 23:56:01 +00:00
Michael Bayne 9b89a3f994 Back-end facilities for table matchmaking.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@508 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-19 22:02:36 +00:00
Michael Bayne cc5473745e Modified startTurn() to get the player name from the _players array rather
than looking up their body object (because we don't *really* need them to
be online to start their turn).

Also added a sanity check to startTurn() to ensure that someone didn't
booch the _turnIdx before calling it.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@506 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-19 21:07:06 +00:00
Michael Bayne 8c1d9e9a3d Beginnings of table matchmaking services.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@503 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-19 02:04:29 +00:00
Michael Bayne 35a0671430 Added isOurTurn() for derived classes to call to determine correctly
whether or not it is their turn.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@498 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-18 20:53:23 +00:00
Michael Bayne 01737e6486 Only start the game once when we receive all of our player ready
notifications. If someone disconnects and comes back, we don't want to
restart the game when they show up and we determine that everyone is once
again available.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@489 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-18 18:39:10 +00:00
Michael Bayne 47d9b36675 Don't choke if a player is not around to receive their game ready
notification.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@488 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-18 02:19:54 +00:00
Michael Bayne a140c24a53 Added getTurnHolderIndex().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@483 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-17 23:29:42 +00:00
Michael Bayne 1e4d93205d Added toString().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@469 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-17 02:49:37 +00:00
Michael Bayne cc27d0fb60 Log a strack trace if we choke while trying to create a game manager.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@468 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-17 02:49:17 +00:00
Michael Bayne 9e6c104015 Stick the players array in the game object; also implemented toString().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@467 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-17 02:48:57 +00:00
Michael Bayne 654a0a316a More turn management code and callbacks.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@455 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-12 19:31:35 +00:00
Michael Bayne 60c829d921 Removed the PlaceObject argument from MessageHandler.handleEvent. You
already have that around in 99% of the cases that you're implementing
message handlers and you more likely have it casted to the type you're
interested in and don't get any use out of that extra argument and have to
import PlaceObject when you might not otherwise have had to.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@453 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-12 19:30:44 +00:00
Michael Bayne cb296d1467 Skeleton of turn-based game services.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@444 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-12 00:30:10 +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 05d2d84353 For now, just head directly to the game room when we are notified that our
game is ready.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@424 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-09 20:20:52 +00:00
Michael Bayne c69b6a2a32 Log something when we create a game manager.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@423 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-09 20:20:35 +00:00
Michael Bayne 2653f9a416 Doc update.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@414 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-09 18:18:07 +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 681d851b08 Documentation fixes.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@395 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-04 22:47:49 +00:00
Michael Bayne 208e351c9e Initialize the game manager after we create it.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@389 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-03 03:45:16 +00:00
Michael Bayne e705c83c43 Fixed typo, added and then commented out some debug logging.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@388 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-03 03:44:52 +00:00
Michael Bayne 882b2b79e2 Need to let the PlaceRegistry know that we want a GameObject, not just a
PlaceObject.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@387 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-03 03:44:27 +00:00
Michael Bayne 4450d47d16 Needed a comma in toString().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@386 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-03 03:43:37 +00:00
Michael Bayne 1303278ce7 Register ourselves as an invocation handler and handle failed invitations.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@385 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-03 03:43:14 +00:00
Michael Bayne db81e60bcb More progress on game creation and match making.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@377 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-02 21:52:33 +00:00
Michael Bayne e08ea92b23 We've always been at war with Eurasia. Changed InvocationManager to
InvocationDirector (please god let the renaming be done). Removed IntMap
and modified code to use samskivert's HashIntMap. Also more progress on
invitations and all that.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@376 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-02 02:09:06 +00:00
Michael Bayne a2f4a2cb7a Moved parlor invocation service codes into ParlorCodes. Started work on
server side of parlor invocation services.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@370 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-01 22:17:34 +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
Michael Bayne 23ccfde6c8 More progress on parlor services (mostly invitation handling).
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@365 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-01 05:07:13 +00:00
Michael Bayne 27adf03bc1 Whoops. Missed an import.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@364 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-01 02:57:37 +00:00
Michael Bayne 2139d4883a Progress on Ye Olde Parlor services.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@363 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-01 02:56:35 +00:00