Commit Graph

1784 Commits

Author SHA1 Message Date
Ray Greenwell a0730067ec Pulled out gobs of Sprite/Animation functionality into AbstractMedia.
Pulled out gobs of SpriteManager/AnimationManager functionality into
  AbstractMediaManager.
The big change: sprites can have their render order fine-tuned like
animations.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1787 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-08 21:03:37 +00:00
Michael Bayne e804abad30 Scripts for building DashO'd clients.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1786 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-08 18:46:02 +00:00
Michael Bayne 6fe29a85af Allow colorizations to be modified in a character descriptor.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1785 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-07 23:58:29 +00:00
Michael Bayne 646696e5d0 Report more useful information in this failure case.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1784 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-07 18:42:21 +00:00
Michael Bayne b0c1f2ebc5 Allow a safe scroll pane to be constructed without its viewport view
(which should be set later via setViewportView()).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1783 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-06 20:57:36 +00:00
Michael Bayne d34be8e838 Enhanced error reporting.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1782 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-06 20:25:05 +00:00
Michael Bayne 893e3d3aa0 Whoops, clone should obtain the uninitialized cloned object via
super.clone() so that it is of the appropriate derived class. I must have
picked a bad week to stop sniffing glue.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1781 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-06 20:24:53 +00:00
Michael Bayne 061c73c64e Place managers may need a chance to clean up after a failed permissions
check; so we give them a callback for such contingencies.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1780 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-06 03:31:16 +00:00
Michael Bayne f3385ad3a8 Perform the permissions check.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1779 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-06 02:37:58 +00:00
Michael Bayne 37c4f866fd No longer do we set the players in an explicit call to
GameManager.setPlayers(), now it is simply provided as part of the game
config object which is cleaner and makes the information available during
the initialization and permissions checking phases.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1778 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-06 00:53:15 +00:00
Michael Bayne 4da35c0f0b Provide a means by which a place manager can check, early in the
initialization process, whether or not it actually wants to be created,
and allow it to abort the whole deal if it doesn't.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1777 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-06 00:44:58 +00:00
Michael Bayne 939e4ce5a9 Enhanced logging.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1776 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-06 00:44:16 +00:00
Michael Bayne 96e2afe24f Name our invoker thread just for kicks.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1775 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-05 23:35:21 +00:00
Michael Bayne 27d7a59994 Transactions should be started outside the try/finally block that ensures
their committal. This prevents double-fuckage if starting the transaction
fails (because the finally block would still be executed which would try
to end the non-existent transaction, throwing another exception which
hides the first).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1774 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-04 01:33:10 +00:00
Michael Bayne 9282f15fc3 Sanity checking.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1773 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-04 01:32:15 +00:00
Michael Bayne 077d0ee13a Refuse to start a transaction on a non-active DObject.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1772 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-04 01:31:59 +00:00
Michael Bayne 0309b23a69 Restructure try/finally blocks to ensure that we don't attempt to release
a transaction we were never able to start.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1771 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-04 01:31:43 +00:00
Michael Bayne e26fd18b38 Brevity is the soul of a happy log file.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1770 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-03 17:16:15 +00:00
Michael Bayne 57e697b600 Handle long fields, report when we don't know the type of a field.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1769 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-02 20:10:20 +00:00
Michael Bayne 99dbe3dc76 Added support for nested DObject transactions; clarified documentation.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1768 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-02 19:29:23 +00:00
Michael Bayne d49e724693 Don't start up the connection manager until the dobject manager has
processed everything put into its queue during the initialization process.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1767 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-01 05:15:45 +00:00
Walter Korman 1ee866e1e5 Added clientObjectDidChange() implementation.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1766 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-01 04:44:40 +00:00
Walter Korman 383a1ec550 Made it compile, but not certain it works.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1765 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-01 04:44:23 +00:00
Walter Korman 09a2f8e950 Initialize the animation starting time when the animation is first ticked
rather than requiring that it be set via setStartTime().


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1764 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-01 04:24:34 +00:00
Walter Korman d08589d88a Provide an estimate of the download time remaining when downloading
bundles.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1763 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-30 09:36:22 +00:00
Walter Korman 5af9b4ac19 Initial version of an animation that allows adding animations sequentially
with a specifiable delay between each.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1762 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-30 06:30:47 +00:00
Walter Korman 03b1dbe90d Fixed the smallest typo in javadoc.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1761 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-30 06:18:46 +00:00
Walter Korman 25bd81e59a Added facilities for disabling the playing of sound without shutting down
the sound manager wholeheartedly.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1760 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-30 06:13:36 +00:00
Michael Bayne 59c522aae5 Updated deprecated references to project.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1759 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-27 19:02:15 +00:00
Michael Bayne 7dccce81c5 Account for sprite render priority when sorting sprites.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1758 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-26 23:35:10 +00:00
Michael Bayne e2687d5474 Less debug logging.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1757 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-26 17:49:36 +00:00
Michael Bayne 4e9acda18d Sort the mappings prior to writing the map file to enhance map file
stability wrt diffing.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1756 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-26 02:08:47 +00:00
Michael Bayne 3ed25c9bce Sort the damned component map prior to writing it out so that additions
are easy to see in a CVS diff.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1755 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-26 02:05:59 +00:00
Walter Korman fd71c2a853 Take into account the x-offset of the rectangle within which the image is
being rendered when drawing the right edge of the image.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1754 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-25 21:49:53 +00:00
Michael Bayne 9acc27d3f3 Not to freak out if we can't load an image. Log an error and return a fake
image instead.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1753 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-25 07:15:16 +00:00
Michael Bayne 42b22f1acc Experimental alternate toString() formatting style for DObject. Hopefully
it will be well liked.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1752 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-25 03:02:00 +00:00
Michael Bayne a21ea989e8 No built-in title.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1751 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-25 03:01:14 +00:00
Walter Korman 6fc4c718ab Properly return an explicitly-specified preferred size in
getPreferredSize().


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1750 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-24 07:56:25 +00:00
Michael Bayne 64bb4715cc Added le big hackola, grabNewObjects(), to tide us over until IsoSceneView
properly obtains new objects as they are scrolled into view (which I won't
be doing for Alpha (tm)).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1749 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-24 05:33:51 +00:00
Michael Bayne 0a90590134 Exposed getScene().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1748 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-24 05:33:05 +00:00
Michael Bayne 6c7bee6c1d Logging cleanups.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1747 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-24 00:51:01 +00:00
Michael Bayne 6f2da6a584 Use StringUtil and hopefully we'll actually get address information.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1746 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-24 00:50:27 +00:00
Michael Bayne ddb9734501 Create an object priorities array if none is specified in the XML.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1745 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-23 23:53:33 +00:00
Michael Bayne d675e3f970 Preserve the transparency characteristics when creating an image optimized
for display on screen.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1744 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-23 23:30:23 +00:00
Michael Bayne 68af441fbf Objects now have explicit render priorities rather than relying on the
order in which they were added to the scene (that information is no longer
available as objects are reordered arbitrarily once loaded).

Also removed old-school scene conversion.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1743 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-23 23:07:11 +00:00
Michael Bayne 92c8748c7c More progress toward arbitrarily scrollable scenes. The IsoSceneView still
requests all objects in God's green earth, but we now have the necessary
structures for it to request new objects as they scroll (nearly) into view
and for it to abandon objects as they scroll (way) out of view.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1742 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-23 21:54:50 +00:00
Michael Bayne 552d73de59 Used to keep around all visible (or nearly visible) objects in a scene.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1741 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-23 21:53:23 +00:00
Michael Bayne f7e383d667 Terser toString().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1740 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-23 21:52:43 +00:00
Michael Bayne 82cd152a6f Modified map file serialization to store things in text so that we can
easily see what the mappings are and properly diff mappings that are
checked into CVS.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1739 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-23 18:53:01 +00:00
Michael Bayne 4d94555e09 Added a means for looking up tilesets by name (though you should know
which bundle they are in to avoid scanning the whole goddamned lot).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1738 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-23 18:19:57 +00:00