Commit Graph

1489 Commits

Author SHA1 Message Date
Michael Bayne 8e4d4382bd ComponentBundlerTask now requires the action definitions.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1492 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-19 21:15:47 +00:00
Ray Greenwell 50d78fecc4 removed unused method
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1491 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-19 20:27:07 +00:00
Michael Bayne 33158f5e8a Component bundling process now automatically generates trimmed tilesets
and images from the untrimmed source tilesets and images.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1490 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-19 08:33:14 +00:00
Michael Bayne fcc65fc4d9 A utility class for generating a trimmed tileset (and associated trimmed
image) from some other (presumably non-trimmed) tileset.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1489 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-19 08:29:59 +00:00
Michael Bayne 2c50a44608 Formatting fix.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1488 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-19 08:28:55 +00:00
Michael Bayne 38584bb12e Switch to using a subimage instead of clipping because clipping creates
too much garbage.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1487 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-19 08:28:25 +00:00
Michael Bayne 1b6811d221 Tileset -> TileSet.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1486 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-19 08:27:35 +00:00
Michael Bayne 5214d15ac6 Tileset => TileSet; made getTileSetImage() public so that the trimming
code can get to the underlying tileset image.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1485 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-19 08:27:06 +00:00
Michael Bayne 2c9be83574 Moved subimage creation into overridable method.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1484 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-19 08:26:22 +00:00
Michael Bayne f8c31a6432 More utility methods: one for creating a new image with the same
configuration as another and one for computing a rectangle that bounds all
non-transparent pixels in an image.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1483 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-19 08:24:22 +00:00
Michael Bayne 8ca5fc3857 We need to ensure that dirty regions are constrained to the bounds of the
component in MediaPanel as well as VirtualMediaPanel.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1482 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-19 07:41:37 +00:00
Michael Bayne 1ef85b78d8 Worked around the Windows copyArea() bug; yay!
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1481 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-19 02:34:39 +00:00
Michael Bayne 3976cc2c42 Cache our graphics objects.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1480 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-19 00:52:34 +00:00
Michael Bayne e91b6420b1 Go ahead and return our cached subimage since we have it.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1479 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-19 00:20:49 +00:00
Michael Bayne 30071e79c2 Lose the magic circle.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1478 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-18 23:34:34 +00:00
Michael Bayne 1f5cfa6f4c Updated to work with new media architecture.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1477 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-18 22:38:55 +00:00
Michael Bayne 4036904d0e Brought miso stuff into line with new media architecture; implemented
various and sundry optimizations in the process. We love the spiral
development.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1476 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-18 22:38:12 +00:00
Michael Bayne 7253a68c7c Death, taxes and refactoring: seriously revamped the low-level media code
to handle scrolling in a much cleaner and happier way. There's now a
VirtualMediaPanel which operates in virtual coordinates and can be made to
"view" any location in those virtual coordinates. By changing the view,
the view can be scrolled and the view can be made to center on a pathable
(generally a sprite) which will cause it to scroll around as the pathable
moves around in the virtual coordinate space.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1475 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-18 22:25:33 +00:00
Michael Bayne 4b29f806df We've discovered that setting the clipping rectangle generates a crapload
of rectangle objects. Thus rendering hundreds of tiles each frame has an
"undesirable" impact on garbage collection. I think Walter and I were
seeing something like 400k per second of garbage. So we're back to
extracting a subimage, which we're pretty sure doesn't copy the image
data, but simply draws the cropped image data directly from the original
rasters without creating shitloads of garbage.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1474 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-18 22:19:56 +00:00
Michael Bayne f84b6b1e26 Behave appropriately in circumstances where we have no data left to return
but the caller asks for zero bytes. In such cases we are to return zero
rather than -1 (which would indicate EOF).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1473 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-18 22:07:38 +00:00
Ray Greenwell f91f47d73b Added ScreenTilePath, which does everything in screen coordinates,
but after each movement it updates the sprite that it's moving to tell
it the latest tile coordinates.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1472 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-18 21:22:34 +00:00
Walter Korman 1f32380f62 Descriptors are inequal if one has colorizations and the other doesn't.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1471 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-18 04:55:44 +00:00
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