Commit Graph

535 Commits

Author SHA1 Message Date
Michael Bayne 15ff048a27 Created mechanism for listeners to hear about object death.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@535 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-23 23:56:12 +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 ea3964d702 Now uses TableManager to do table management.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@533 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-23 23:47:33 +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 1849e90797 More progress on table lobby. Everything mostly works. Need to fix up some
boundary cases and deal with users and games going away.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@530 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-23 20:24:10 +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 690940db47 ElementUpdatedEvent wasn't registered.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@528 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-23 20:22:47 +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
Walter Korman 64ed794d3d Removed unnecessary clipping.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@526 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-23 02:04:07 +00:00
Walter Korman cb7dd5a521 Added facilities for creating a veritable slew of dummy sprites that
walk around at random.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@525 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-23 02:03:49 +00:00
Walter Korman 53426bc5c4 Initial version.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@524 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-23 02:01:29 +00:00
Walter Korman e4a101cfc2 On path completion, clear the path before observers are notified so
that they can assign a new path to the sprite should they choose to do
so.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@523 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-23 01:59:50 +00:00
Michael Bayne dcf38d7a09 Have to pass a second arg to createPlace().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@522 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-22 23:56:42 +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 6534413551 Have to pass second argument to createPlace().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@519 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-22 23:55:39 +00:00
Walter Korman c6a2a488d4 Don't allow diagonal steps that are impeded by an impassable tile.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@518 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-22 21:32:13 +00:00
Walter Korman c7d26cea8e Fixed scene rendering issues and improved performance.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@517 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-22 18:21:42 +00:00
Walter Korman 7bd5d86c34 Use a mouse adapter to listen to mouse events.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@516 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-22 18:15:57 +00:00
Walter Korman 841f732174 Pass the dirty rectangle for a dirty item to its paint() method so
that we can join multiple dirty rectangles for an item into a single
larger item but still rely on the dirty item to know how to paint
itself.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@515 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-22 18:14:57 +00:00
Walter Korman 7d667778b1 We only need the dimensions for creating the offscreen image.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@514 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-22 18:13:51 +00:00
Walter Korman 1c6e066444 Allow sprite sub-classes to modify their render offset more easily.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@513 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-22 18:13:09 +00:00
Walter Korman 9b3af10abe Renamed getPoint() for posterity.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@512 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-22 18:11:59 +00:00
Walter Korman 97940360dc Removed image from toString().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@511 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-22 18:11:25 +00:00
Walter Korman d5d89b93d8 Allow specifying the origin of the character image.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@510 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-22 18:09:48 +00:00
Walter Korman ef97b42acd Revamped iso scene rendering yet again to remove unnecessary dirty
rectangle propagation and to only render the dirty portions of dirty
objects and sprites.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@509 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-19 23:26:31 +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 3a4d8f7d77 Added facilities for observing the creation of the place object.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@507 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-19 22:02:20 +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 85fec1b758 Coerce null strings into empty strings when marshalling.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@505 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-19 18:03:28 +00:00
Michael Bayne 33b76cd711 Added standard error code for internal server errors.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@504 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-19 18:03: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 7844e4db85 Handle system messages.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@502 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-18 23:55:37 +00:00
Michael Bayne 094c1f1ce6 Added facilities for sending system messages to places which are like
speak messages but come from the server and are displayed differently
(like in all red or something because these will say things like "The
system is shutting down in five minutes.")


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@501 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-18 23:55:24 +00:00
Michael Bayne a78728edcb Add /clear for clearing the chat box.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@500 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-18 23:10:32 +00:00
Walter Korman 69dd36f101 Created iso scene view model listener to handle modifications to the
scene view model more elegantly.  Updated editor and scene view panel
to make use of said listener.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@499 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-18 21:01:44 +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 46ab6ff6e8 Added ability to remove the "Send" button for chat boxes in cramped
spaces. Modified getPreferredSize() to return a width that isn't
pathologically skinny and to avoid allowing the underlying JTextPane from
requesting a ridiculously large width when it gets a nice long string of
text to display.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@497 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-18 20:52:58 +00:00
Michael Bayne d34b92b11c Moved code for sending chat message to place into separate function that
can be called by outside services.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@496 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-18 20:51:59 +00:00
Walter Korman bcae50aa08 Render the placing tile to facilitate proper tile placement. Fixed up
tile highlighting accordingly on tile deletion and location actions.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@495 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-18 20:25:46 +00:00
Walter Korman 511f2e13ee Fixed bug in checking whether two objects overlap horizontally.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@494 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-18 20:24:05 +00:00
Michael Bayne bfe6491eb1 Notes.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@493 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-18 18:41:56 +00:00
Michael Bayne c14b396edf Need to remove ourselves from the listener list as well as the subscriber
list now that we do both.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@492 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-18 18:41:29 +00:00
Michael Bayne 8dcdfb7e8a Added loggedOn() which indicates whether or not we're logged on and
modified code not to try to logoff in logoff() unless we're actually
logged on.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@491 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-18 18:40:18 +00:00
Michael Bayne ff8fb2eae7 If the user clicks the close button, logoff only if we're logged on.
Otherwise just exit.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@490 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-18 18:39:40 +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 26b7f1c6bb Fixed bug with header length decoding.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@487 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-18 01:42:42 +00:00
Michael Bayne fba67a6957 Allow username and initial room oid to be forced.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@486 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-18 01:40:40 +00:00