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
Michael Bayne
aa5d97023f
Report failed moveTo requests in case no one else does.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@485 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-18 01:40:04 +00:00
Walter Korman
bed0a2facb
Invalidate objects, and any tiles, sprites or objects impacted by an
...
object's dirty rectangle, when invalidating dirty rectangles.
Commented out verbose logging.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@484 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-17 23:39:06 +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
3db1a86fac
Connect to my machine for now.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@482 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-17 23:29:18 +00:00
Walter Korman
12e6bda817
Removed now-unused, eminently undesirable red anime character.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@481 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-17 22:25:17 +00:00
Walter Korman
1a1eda672d
Store and make available the parent object associated with the shadow
...
tile.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@480 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-17 22:22:03 +00:00
Walter Korman
2ecd879692
More work on object placement, removal, and rendering within scenes.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@479 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-17 22:21:22 +00:00
Walter Korman
b0a8f3b6fc
Write the default scene tile in lieu of shadow tiles since shadow
...
tiles will be re-generated when the object footprint is stamped on
scene un-serialization.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@478 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-17 22:18:22 +00:00
Walter Korman
381dc55b69
Miscellaneous clean-up.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@477 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-17 22:16:04 +00:00
Walter Korman
336d99d0e9
Add sprites and objects to the dirty item list separately since the
...
latter have a bounds associated with them. Dirty items can now paint
themselves to simplify scene-specific code.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@476 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-17 22:13:53 +00:00