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
Walter Korman
c3229055e2
Basic implementation of an AnimatedView built on top of a JPanel.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@475 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-17 22:12:20 +00:00
Walter Korman
f0d1911a67
De-capitalize destScene to avoid connoting case-sensitivity.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@474 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-17 22:11:35 +00:00
Walter Korman
e12aad6622
Test tileset images.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@473 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-10-17 22:10:50 +00:00
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