Commit Graph

1285 Commits

Author SHA1 Message Date
Michael Bayne 300312782a Added a StringUtil Formatter for printing out only the user oid and
location id from an occupantInfo set.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1515 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-20 22:13:20 +00:00
Michael Bayne fadf226677 Added convenient where() method to PlaceManager which is used when logging
errors to report the "place" in which the error happen. The SceneManager
overrides this to include scene information. Scrupulous use will make log
messages much more scrutable.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1514 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-20 22:12:23 +00:00
Michael Bayne d88e6bc490 Provide access to scene name.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1513 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-20 22:10:56 +00:00
Michael Bayne 1f80cf9805 Cleaned up some sprite business: better documented various things, changed
local member names to reflect their actual functionality, flipped the sign
of the origin offset so that it's an offset rather than a negative offset.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1512 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-20 21:42:53 +00:00
Michael Bayne 29cd8ec051 Sanity check the sources we're passed for compositing.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1511 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-20 18:31:03 +00:00
Michael Bayne 15e23c1076 Only fetch our default GraphicsConfiguration if we're using it.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1510 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-20 17:54:26 +00:00
Walter Korman b09989f928 Added getLabel().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1509 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-20 09:01:28 +00:00
Michael Bayne ea31232166 Added code to ensure that the scene view is not scrolled outside the
bounds described by the view model.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1508 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-20 07:50:33 +00:00
Michael Bayne fd05e9cdbc Added access to the pathable's bounds.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1507 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-20 07:50:02 +00:00
Michael Bayne 7562ba50f5 Fixed bug when rendering scrolling view (need to set the clip properly
before scrolling); added encloses pathable mode which is like follows
pathable except that the pathable is not tracked with the center of the
screen but instead their bounds are kept inside the visible area.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1506 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-20 07:49:44 +00:00
Walter Korman 43191a0512 Minor reformatting.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1505 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-20 07:47:14 +00:00
Michael Bayne b0ab364885 Zoiks! Ze bug!
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1504 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-20 00:58:36 +00:00
Michael Bayne 5db81eb137 Don't check for sprite collisions presently. We'll have to revisit this
when we actually want to use the collision support.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1503 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-20 00:54:53 +00:00
Walter Korman d18ce7a79d Call GameManagerDelegate.setAI() when a player is set to an AI player.
Don't expose the game manager's internal AI skill level array to external
parties.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1502 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-19 23:41:25 +00:00
Michael Bayne 0ddf11ab57 Major revampage to support composited actions that create images that are
exactly big enough to accomodate all of their trimmed components and no
bigger.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1501 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-19 23:31:57 +00:00
Michael Bayne 330767e193 Cleaned up a few things related to render origin. If a derived class wants
the render origin to be other than (_x, _y) it can update (_rxoff, _ryoff)
when it is appropriate to do so, but we don't really need an overridden
method to do that.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1500 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-19 23:30:06 +00:00
Michael Bayne 73ee48bc3f Provide access to our trimmed bounds.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1499 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-19 23:28:14 +00:00
Michael Bayne 5a98d450a1 Cleaned up; don't attempt to edit classes with no components; no need to
use the FrameManager and MediaPanel for displaying sprites since we're not
doing things properly anyway (properly meaning using a sprite manager and
all the associated business).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1497 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-19 23:24:04 +00:00
Ray Greenwell a3196fbad3 added inValidLocation() to check if an player is in a non-portal location
within the room.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1496 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-19 23:22:51 +00:00
Michael Bayne 5bfbc9f17a Provide access to player info via safer getter methods rather than giving
away references to our internal arrays.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1495 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-19 23:18:58 +00:00
Ray Greenwell 823bafb2f5 added ChatValidator interface, so that validators can be registered
to veto speak or tell requests.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1494 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-19 23:12:48 +00:00
Walter Korman 6b8e19f011 Make the array of AI skill levels accessible so that delegates can figure
out what kind of AI-related machinations they should engage in during
startup.  Added isAI() to allow checking whether a particular player index
belongs to an AI player.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1493 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-19 23:06:08 +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 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