Commit Graph

1302 Commits

Author SHA1 Message Date
Michael Bayne 116ce388ca Need to translate to the coordinates of the opaque parent we're
repainting, not necessarily the original component we're repainting.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1305 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-04-27 19:12:00 +00:00
Michael Bayne b9af18d10e We need to paint the first opaque parent of a dirty component rather than
the dirty component directly.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1304 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-04-27 18:59:55 +00:00
Michael Bayne 6a7fd11321 Try filling the offscreen buffer with a solid color after we create it to
avoid painting garbage to the screen.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1303 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-04-27 18:59:27 +00:00
Michael Bayne 938445071e Removed the last vestiges of the object "layer". Scenes now simply have a
list of objects, they can overlap (I think that objects added to a scene
later will be rendered before objects added earlier which ends up feeling
natural in the editor); no longer are objects ignored when their footprint
lies outside the scene bounds.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1302 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-04-27 18:41:14 +00:00
Michael Bayne f3131f994a Fixed up the test tiles (got rid of the last of Dave's old tiles) and
created a couple of test scenes using said test tiles so that we can run
the viewer.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1301 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-04-27 05:16:01 +00:00
Michael Bayne 206fe37de9 Shrink the frame size to test rendering with a viewport smaller than the
view.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1300 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-04-27 05:15:17 +00:00
Michael Bayne ba6e88b2a0 Identify water tileset correctly; actually center test sprite in screen;
switch scrolling directions more rapidly.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1299 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-04-27 04:57:37 +00:00
Michael Bayne 3fa39d06ff Fixed up borked translated dirty region handling.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1298 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-04-27 04:57:05 +00:00
Michael Bayne a2c59dd2a5 Added a menu bar to test overlapping widgets.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1297 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-04-27 02:34:29 +00:00
Michael Bayne 3713cf1034 More repaint manager fixes. We're now behaving even more closely like
Swing would behave.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1296 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-04-27 02:33:14 +00:00
Michael Bayne 52790799d2 Name changes; comment fix.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1295 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-04-26 02:34:11 +00:00
Michael Bayne e3fafb5b8c Exposed the mechanism for locking down client objects during a client
session so that fake sessions can effect their own locking.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1294 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-04-26 02:32:27 +00:00
Ray Greenwell 57a937839d Allow any object to be used as the response target for a moveTo request.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1293 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-04-26 00:07:05 +00:00
Michael Bayne 23d170c83e Added support for pausing a media panel which pauses all sprites and
animations currently operating therein. (It doesn't pause scrolling which
I suppose I'll have to fix at some point if we ever need it.)


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1292 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-04-25 16:23:31 +00:00
Michael Bayne 1ba123de96 Need to restrict the clipping rectangle not replace it.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1291 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-04-23 03:11:17 +00:00
Michael Bayne 6549a27189 Need to avoid counting a components offset twice.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1290 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-04-23 03:10:59 +00:00
Michael Bayne 47c94068ec Need to restrict the clipping rectangle, not replace it.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1289 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-04-23 03:10:39 +00:00
Michael Bayne 1ce70d6c5a Changes to jive with new rendering deal.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1288 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-04-23 01:19:04 +00:00
Michael Bayne 0bde11ee81 Major low-level rendering rethink.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1287 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-04-23 01:18:17 +00:00
Michael Bayne cc6a9d00ef Major low-level rendering rethink. There will be much follow-on cleanup.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1286 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-04-23 01:16:28 +00:00
Ray Greenwell 849eaec47b gameDidEnd will now be called even if the game is cancelled.
Made AI ticking only happen while the game is IN_PLAY.
Added forgotten comment.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1285 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-04-19 21:40:38 +00:00
Ray Greenwell 575c276c9a hold gamemanagers in a set instead of a list since their order doesn't matter
and we want to prevent them from being added twice.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1284 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-04-19 21:33:21 +00:00
Ray Greenwell 4b0b462c3a Tick for each AI, pass the tick to the delegates.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1283 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-04-19 21:16:42 +00:00
Ray Greenwell 48ad174dd7 initial revision.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1282 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-04-19 18:33:32 +00:00
Ray Greenwell e73350838f - Moved AI handling framework here from PuzzleManager.
- Set game state to CANCELLED if it wasn't yet GAME_OVER when shutting down
  the game.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1281 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-04-19 18:33:10 +00:00
Michael Bayne 6a908b86c6 Added a utility class that encapsulates our display mode jockeying.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1280 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-04-19 00:38:44 +00:00
Michael Bayne b4d50d0843 Fixed bug where last render time was being used where last scroll time was
needed.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1279 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-04-18 22:38:24 +00:00
Michael Bayne 2b6a4a1a5a Destroy the client object if we decide to unmap it because we're the only
ones that know that such an action is safe and we don't want stray client
objects lying around cluttering things up.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1278 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-04-18 22:37:08 +00:00
Michael Bayne d635c003e2 Added getClient().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1277 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-04-18 20:46:43 +00:00
Walter Korman 988223cc3e Consider the game to be over when its state isn't IN_PLAY, so that
AWAITING_PLAYERS, CANCELLED, etc. are properly addressed by those that
check in on these sorts of things.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1276 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-04-18 16:57:29 +00:00
Walter Korman c47ba0dc66 Sanity-check the destination scene id for moveTo() requests.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1275 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-04-18 14:08:47 +00:00
Walter Korman 4fc5f574d8 Added facility for enumerating the body objects for all active users on
the server.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1274 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-04-18 00:44:50 +00:00
Michael Bayne 76843dab59 Report the contents of the set when we try to update an element that's not
in it.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1273 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-04-18 00:31:26 +00:00
Michael Bayne ef62581f7a Need a field marshaller for Integer fields.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1272 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-04-17 22:45:32 +00:00
Michael Bayne 3e4540958a Made occupant info into a simple streamable object because it was
screaming out for it.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1271 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-04-17 22:19:40 +00:00
Michael Bayne 47a5ad9fb7 We no longer need to set up our occupantInfo set with the type of object
it holds and we can now create custom occupant info classes depending on
the body that is entering the place.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1270 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-04-17 22:02:08 +00:00
Michael Bayne 51c7f6b527 Removed a bunch of code to generate failure responses as it's now handled
automagically!


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1269 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-04-17 18:26:30 +00:00
Michael Bayne 496732db3a Automatically generate a failure response if an invocation provider method
throws ServiceFailedException. The response for a service request named
<foo> would be <foo>Failed. The response has a single argument which is
the reason string provided by the ServiceFailedException. We were doing
this by hand all over the place, and now it will be handled automatically.
Yay!


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1268 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-04-17 18:20:04 +00:00
Ray Greenwell a11bff9cf8 Allow objects such as a NPPirate to receive the results of a changeLoc
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1267 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-04-17 17:07:13 +00:00
Michael Bayne 4054c0beea Added "savedoc" target which builds the javadocs and stuffs them into
docs/api so that they're not blown away next time someone does an ant
clean.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1266 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-04-17 16:08:37 +00:00
Michael Bayne 4c59b73cdf Added didInit() so that derived classes can do post-initialization stuff
without having to override init() and pointlessly import and pass through
the CharacterDescriptor and CharacterManager.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1265 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-04-17 15:53:49 +00:00
Michael Bayne 42dc17a474 Started refactoring code to allow derived classes to expand the bounds of
the sprite to contain more than just the image. I didn't go all the way
though because I started looking at the stuff to handle render origin and
render offset and couldn't bring myself to add another offset into the mix
so it'll have to wait until I can give it some more serious thought and
perhaps simplify what we've got.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1264 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-04-17 15:52:49 +00:00
Michael Bayne 4047bbbf18 Whoops. Missing an import.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1263 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-04-17 00:20:56 +00:00
Michael Bayne e4185bd7a1 Added getModel().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1262 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-04-17 00:16:34 +00:00
Michael Bayne 6df0ef6172 We need to do some fiddling when the invocation director is used on the
server by entities that are vaguely impersonating a client. Specifically
they need to fill in the event's source oid because their events are not
going through the client networking layer which takes care of filling that
in for real clients.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1261 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-04-16 21:37:23 +00:00
Michael Bayne c0a265d284 Removed debug logging.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1260 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-04-16 20:38:24 +00:00
Michael Bayne 1e5c1bcfe7 Only update the sprite's orientation if we have a valid one.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1259 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-04-16 18:24:43 +00:00
Michael Bayne fb74c17fd7 Modified moveTo() so that other entities than the ZoneDirector can call it
and receive the callback (like the NPPirate).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1258 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-04-16 17:36:17 +00:00
Michael Bayne 8d41371457 Added getProjectedIsoDirection() for obtaining the isometric direction
between two screen coordinates. The screen coordinates are "projected"
into isometric space and the vector between them is calculated (except we
don't actually do the projection because we can tell just by looking at
the points what the projected orientation will be).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1257 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-04-16 17:20:09 +00:00
Michael Bayne 935276fb5d Made addNode() public so that external entites can create line segment
paths one node at a time and add their desired orientation to the nodes.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1256 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-04-16 17:00:33 +00:00