Commit Graph

472 Commits

Author SHA1 Message Date
Walter Korman e62fede257 Removed obsolete building scene.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@472 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-17 22:10:32 +00:00
Walter Korman d78cfe35eb Added two test building tilesets and the pirate. Har!
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@471 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-17 22:10:04 +00:00
Michael Bayne cd39295574 Added field marshaller for int arrays.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@470 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-17 02:56:51 +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 f863620d39 Added a field marshaller for string array fields.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@466 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-17 02:48:11 +00:00
Michael Bayne 59d7b9028e Notes.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@465 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-17 02:22:06 +00:00
Michael Bayne afc7b6cfbb Turned ObjectStreamException into a nested exception so that we can
provide information on what exception caused the object serialization or
unserialization to freak out.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@464 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-16 16:44:20 +00:00
Michael Bayne dec8be5d57 Added size(), fixed two bugs in internal array expansion: one was that it
was doubling the size of the internal array every time add() was called,
whether it needed to or not, the other was that unserializing an empty set
caused expand() to be called with -1 as the index from which mayhem would
ensue.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@463 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-16 16:43:20 +00:00
Michael Bayne 3df5a5d1cb Commented out debug logging.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@462 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-16 16:41:14 +00:00
Walter Korman 00d57dfb92 Added character manager and character descriptions. Allow tile sets
that have no specified layer.  Made the scene editor gracefully handle
the case where there are no valid tile sets for use with the selected
scene layer.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@461 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-15 23:53:43 +00:00
Walter Korman 3773da79a6 More work on object tiles. Revamped isometric scene rendering to
gather dirty sprites and objects and render after base and fringe tile
layers.  Add shadow tiles in the footprint of objects to make them
impassable.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@460 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-13 01:08:59 +00:00
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 de8d9dabd1 Missed a spot.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@438 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-11 21:12:29 +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
Walter Korman bc9a03988a Removed unused test panels.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@435 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-11 16:20:06 +00:00
Walter Korman 057256e2fe Removed obsolete test tilesets.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@434 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-11 15:22:44 +00:00
Michael Bayne eac87300d2 Design edits. Moved MiCasa into the Narya package because it needn't be
its own separate project and it fits in more nicely now that we've renamed
everything.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@433 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-11 04:19:32 +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 3c203cccd7 Changed project name to Narya.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@429 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-11 03:11:27 +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 9d34d6c770 We now specify the GameConfig class to use when creating games from a
particular lobby.


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