Commit Graph

422 Commits

Author SHA1 Message Date
Michael Bayne eb3bc62083 Log a stack trace if we catch an error invoking an invocation response
handler.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@459 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-12 20:26:00 +00:00
Michael Bayne 0ab1638611 When setting aggregate values (arrays, DSet objects), we need to clone
them before setting their value in the distributed object to prevent
subsequent events from modifying those aggregate values before the
originals were propagated to the clients by the networking thread.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@458 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-12 20:12:48 +00:00
Michael Bayne e8f5f9b904 We want Streamable.class.isAssignableFrom(clazz) rather than the other way
around. I always mess that up because it's backwards from instanceof.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@457 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-12 20:11:53 +00:00
Michael Bayne 0b44521984 Implement clone().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@456 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-12 20:11:00 +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 48df2b374f Added didInit() so that derived classes can do initialization without
having to import the arguments to the normal init().


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@454 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-12 19:31:15 +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 087fdd489c Added code to handle Streamable implementing DObject fields.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@452 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-12 19:28:43 +00:00
Walter Korman ccc182e6f7 Modified to account for generic List objects returned by the
TileSetParser interface.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@451 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-12 16:38:59 +00:00
Walter Korman 9fc38238a6 Tile sets that are specified as object tile sets now always produce
object tiles.  If no dimensions are specified for an object, it
defaults to 1x1 unit tile units.  The media package supports
specification of tilesets as object tile sets via the "layer"
attribute.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@450 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-12 16:36:58 +00:00
Walter Korman 15eca5d163 Made MisoTileSet an interface.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@449 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-12 00:43:04 +00:00
Walter Korman 6638380a4d More work on object tiles.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@448 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-12 00:42:08 +00:00
Walter Korman 9df7d2d882 Use time-based animation to animate the sprite while moving. Make
sure the sprite comes to rest at a stand-still frame index.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@447 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-12 00:41:48 +00:00
Walter Korman e8d41b9592 More work on object tiles. Simplified tile set manager as the editor
will now obtain tile set information directly from the tile sets.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@446 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-12 00:38:15 +00:00
Walter Korman 1cd07dc217 Notify sprites when a new path is begun. Made time-based animation
work.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@445 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-12 00:36:03 +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 0994b27240 Forgot to implement MessageHandler.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@443 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-12 00:29:51 +00:00
Michael Bayne 8521994204 DSet needs to implement Streamable so that we can pass it around as a
distributed value.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@442 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-12 00:29:34 +00:00
Michael Bayne 2ffe47e282 Do the right thing with a null _listeners array.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@441 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-12 00:29:06 +00:00
Michael Bayne 5ae6875bbb Added a note about listener registration management.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@440 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-12 00:05:31 +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
Walter Korman 915e13ca12 Make sure screen coordinates that are converted to tile and full
coordinates when editing a scene are valid before forging ahead with
scene modifications.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@436 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-11 16:21:09 +00:00
Michael Bayne 55093e30f8 Big fat renaming!
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@432 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-11 04:13:33 +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 78b62b5da1 Don't need to reference constant through ChatService.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@428 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-11 03:10:55 +00:00
Walter Korman ad7b64d4a1 Initial work on support for objects whose images span multiple tiles.
Made TileSet an interface.  Throw exceptions for unknown tile or tile
set requests.  General clean-up and documentation.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@427 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-11 00:41:27 +00:00
Michael Bayne 5c79f8f082 Sorted out some basic invitation stuff so that we can force an invitation
to take place for testing. Will flesh all the rest out later.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@426 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-09 20:22:51 +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 9bb91d5eac Lose the chatbox label.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@422 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-09 19:49:59 +00:00
Michael Bayne 9249e17d3c Put the logoff button in the side panel. Actually put the main panel in
the UI.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@421 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-09 19:24:54 +00:00
Michael Bayne e7bc462545 Keep track of a "default" lobby which is presently the first one created.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@420 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-09 19:24:11 +00:00
Michael Bayne 758bac6f28 Extend PartyClient, do the right thing with our BootstrapData.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@419 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-09 19:23:50 +00:00
Michael Bayne 8eb3dba6dc Move logoff handling into ClientController.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@418 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-09 19:23:26 +00:00
Michael Bayne ce5bcd95d5 Can't report unhandled events or event just message events because there
are a number of them that just aren't meant to be handled by the place
manager. Alas.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@417 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-09 18:41:01 +00:00
Michael Bayne 696065f104 Report failures in iterate() but don't let the thread die.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@416 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-09 18:27:25 +00:00
Michael Bayne 9884571f6e Moved things into lobby from client. Sorted out a better (but still
temporary) mechanism for getting into the first lobby after we logon.
Other cleanups.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@415 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-09 18:20:08 +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 747f8b50fb Use the proper toString() method.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@413 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-09 18:17:52 +00:00
Michael Bayne e75e442f0c Make the bootstrap data available to external entities.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@412 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-09 18:17:33 +00:00
Michael Bayne f8846ab016 Making things work; moving lobby stuff entirely into lobby; simplifying.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@411 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-09 17:47:33 +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 c9dfd6ef45 Added code to handle displaying the user interface for a place once we
have actually entered the place. It's not tied to a particular UI toolkit
and this requires coordination between the client implementation and the
place implementation, but that seems better than the alternative of tying
the Parlor code to Swing or similar.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@408 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-09 17:20:03 +00:00
Michael Bayne 61a2c30859 Structured handleEvent() so that we can report unhandled events.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@407 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-09 17:18:44 +00:00
Michael Bayne 31a0177480 Updated to conform to new place services provided by party. Getting closer
to being able to launch a game.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@406 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-09 00:48:34 +00:00
Walter Korman 95ba5ef9cf Separate the notion of tile passability from tile objects since
passability is specific to the miso layer.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@405 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-08 21:04:26 +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