Walter Korman
abcc329e78
Expanded imports.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1470 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-18 02:35:10 +00:00
Walter Korman
a68638ddb9
Added facility for toggling whether object footprints are to be shown.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1469 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-17 18:01:47 +00:00
Walter Korman
e52a400a3f
Allow specifying the color and stroke with which an edge is to be
...
rendered.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1468 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-15 02:13:11 +00:00
Walter Korman
5599b715df
Removed repaint on mouse-move intended only for use when debugging to
...
highlight the last entered node.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1467 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-15 02:00:05 +00:00
Walter Korman
82ce5ad939
Commented out debugging-intended highlighting of the last entered node.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1466 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-15 01:59:43 +00:00
Walter Korman
f3590ef1a0
Expanded imports.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1465 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-15 01:59:25 +00:00
Walter Korman
6c30814f60
Minor reformatting.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1464 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-15 01:59:12 +00:00
Ray Greenwell
0317828b1d
Clone the occupant info before updating the location. This fixes the
...
beamed-in NPP problem- they were updating their location on the server
before the element added event was even distributed to the clients.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1463 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-14 23:03:44 +00:00
Walter Korman
830364c48d
Increased the frame action cache size to 30 for now. We'll likely want to
...
allow setting this externally in the near future, but we'll iron that out
later when we get around to scrutinizing all of the caching business more
closely.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1462 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-14 21:15:31 +00:00
Walter Korman
d61c009a4d
Updated to use fitRectInRect() to position the node tool tip.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1461 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-14 07:56:29 +00:00
Ray Greenwell
36a8a9672f
zone moves and portal traversals can now have an optional result listener
...
passed in.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1460 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-14 01:40:16 +00:00
Michael Bayne
891e1a319f
Return true if we send a traverse portal request, false if we don't.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1459 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-14 01:27:53 +00:00
Michael Bayne
a7a427f972
Return true from moveTo() if we actually sent the request, false if the
...
request was rejected out of hand.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1458 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-14 01:24:49 +00:00
Michael Bayne
25b22b4f11
Need to mark our last move request time regardless of whether we have a
...
pending request outstanding.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1457 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-14 01:19:16 +00:00
Michael Bayne
b9000bf08c
Don't declare a pending moveTo request to be stale until at least a minute
...
has gone by. This prevents us from getting shafted by double clicks.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1456 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-14 00:57:49 +00:00
Ray Greenwell
541eb01446
Added a constructor that takes two Points and a direction.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1455 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-12 23:33:03 +00:00
Ray Greenwell
4f2ca1dae9
Undid last revision.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1454 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-12 23:31:42 +00:00
Ray Greenwell
4623c07fc2
Undid revisions 1.16 and 1.15:
...
null tiles and invalid coordinates are unpassable again.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1453 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-12 23:30:40 +00:00
Ray Greenwell
9a27409a97
occam's razor
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1452 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-12 21:51:19 +00:00
Ray Greenwell
a3628a419c
Upped the ante from my last modification:
...
- invalid coordinates are traversable.
- check to see if an out-of-bounds node is requested and gracefully create it.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1451 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-12 17:48:11 +00:00
Walter Korman
3f45a25bdb
Store the current round id in the game object rather than tracking
...
separately in the game manager and controller which can then get unhappily
out of sync.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1450 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-12 07:59:19 +00:00
Ray Greenwell
c1a92c761b
Keep track of which locations are portals and don't track users when they
...
move there and prevent more than one user from occupying a portal.
Removed unused method.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1449 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-12 07:05:55 +00:00
Ray Greenwell
eadfe2bad1
Don't make the occupant move to the portal location when they traverse it,
...
they'll handle that themselves now.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1448 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-12 07:04:41 +00:00
Ray Greenwell
e3df1a5894
Don't request to change locations if we're already there.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1447 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-12 07:03:23 +00:00
Ray Greenwell
b27a863f62
behavior change: null tiles are passable. Hopefully this doesn't break
...
anything, but it was required to make sprites walk off/on-screen.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1446 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-12 07:02:31 +00:00
Ray Greenwell
7de32e1c24
Be compatible with out superclass, LineSegmentPath, if someone
...
calls it's addNode() method.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1445 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-12 07:01:29 +00:00
Ray Greenwell
7ffa3087e1
Don't switch to a rest action if null is returned by getRestingAction()
...
(used now in YoCharacterSprite)
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1444 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-12 07:00:49 +00:00
Michael Bayne
ad5b77899f
We want to truncate rather than round; it's faster and more consistent
...
with the other math done in the rendering code.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1443 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-12 01:11:55 +00:00
Michael Bayne
cfb8c77d2f
If we're using a path to drive the view, we need to let it know when we
...
scroll.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1442 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-12 00:51:24 +00:00
Michael Bayne
d7a41e61d8
We need the ability to instruct the path *not* to scroll with the view
...
(useful when the path is actually operating in virtual coordinates which
are mapped to scrolled view coordinates by the pathable).
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1441 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-12 00:49:15 +00:00
Michael Bayne
1a3ad13d6e
Various and sundry revampage to make life easier when scrolling the media
...
panel to follow a path.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1440 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-11 21:40:52 +00:00
Michael Bayne
d05d0c8558
Added getPath() to provide access to the path being followed by the
...
sprite.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1439 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-11 05:56:44 +00:00
Michael Bayne
544d2382ad
Extracted position computation into static method.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1438 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-11 02:39:14 +00:00
Michael Bayne
c1ccaac10d
Javadoc fixes.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1437 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-11 00:52:37 +00:00
Michael Bayne
916513f306
Modified code that makes view follow path to not require an origin point
...
which was a wacky hack in the first place.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1436 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-11 00:05:31 +00:00
Michael Bayne
4c589d3802
Fixed up to conform to new setPath() signature.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1435 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-11 00:04:43 +00:00
Michael Bayne
cccd28ea9d
Now that paths drive the scrolling of our view, we can go back to the
...
simple line path calculations that don't suffer from the accumulated
rounding errors that our previous method did.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1434 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-11 00:03:30 +00:00
Ray Greenwell
0443a31294
extend SafeInterval
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1433 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-10 21:37:13 +00:00
Walter Korman
7a9946e0ad
Catch and report any exceptions thrown by Component.paint() to allow
...
peacable continued frame painting in cases where a component gets in a bad
way and fails to paint itself happily.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1432 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-10 21:31:56 +00:00
Walter Korman
43f7fc44c1
Modified simulator server interface to allow initializing the server with
...
asynchronous notification when initialization is complete.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1431 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-10 19:16:41 +00:00
Michael Bayne
a74f3e4422
Fixed up the code that outlines uncommitted values in red.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1430 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-07 18:48:41 +00:00
Michael Bayne
60a02f3c39
Wired up the field editor to generate and receive attr changed events.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1429 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-07 17:34:37 +00:00
Michael Bayne
6202c1a463
Beginnings of runtime control panel stuff.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1428 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-07 06:22:24 +00:00
Ray Greenwell
b81ab2f176
added systemMessage() which can optionally queue up a message for
...
when the game starts.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1427 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-06 22:13:56 +00:00
Michael Bayne
89d7a1078c
Handle the conversion from mixed to uppercase of fields like serverURL
...
properly (was generating SERVER_U_R_L, now generates SERVER_URL).
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1426 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-06 07:18:10 +00:00
Ray Greenwell
b9ba9b3d66
bugfix: ImageSprites constructed with their frames were hosed and never
...
got drawn.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1425 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-05 23:38:18 +00:00
Michael Bayne
4368463907
Created a SafeInterval that requeues itself on the client invoker thread
...
(the main client thread, which will generally be the AWT thread unless the
client is being used in a situation where there is no AWT) to avoid bad
thread clashy.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1424 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-05 02:50:57 +00:00
Ray Greenwell
b46aa1c1c3
Default all games to rated.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1423 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-05 00:47:13 +00:00
Michael Bayne
67492e13f0
Modified client observer notification process to:
...
a) use an ObserverList in SAFE_IN_ORDER_NOTIFY mode which circumnavigates
any funny business like observers being added or removed while we're
notifying the observers.
b) require that the clients be notified on the main client thread
(generally the AWT thread) by using the invoker; we had a problem
previously where clientDidLogoff() was being called by the communicator's
writer thread which caused all hell to break loose because everything
outside the client networking layer depends on running on the same thread.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1422 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-04 16:34:24 +00:00
Michael Bayne
1b3b5bb794
Wrote tools to ease the process of renaming tilesets.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1421 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-04 02:50:02 +00:00