Commit Graph

1085 Commits

Author SHA1 Message Date
Michael Bayne 38ca708a4f Modified authentication process such that an authenticator thread is no
longer maintained. Implementations can choose to create their own
authentication thread if they wish or use some existing combination of the
invoker and dobjmgr threads. Also added an invoker to the base server
class.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1085 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-03-05 03:19:18 +00:00
Michael Bayne 7dc7545541 Pass the dobject manager to the invoker at construct time.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1084 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-03-05 03:17:46 +00:00
Michael Bayne 22d0839b72 Not to freak out if we have no frames.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1083 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-03-04 22:47:06 +00:00
Walter Korman 001932b5a5 Added tcompose() that calls the various permutations of compose() whilst
automatically tainting the arguments for yon intrepid programmer.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1082 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-03-01 17:10:30 +00:00
Michael Bayne 3dbf935e3a Render all sprites that intersect the repaint bounds, not just the ones
that are contained within the bounds.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1081 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-02-28 23:25:15 +00:00
Michael Bayne d3e5912ef5 Javadoc edits.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1080 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-02-28 23:16:42 +00:00
Michael Bayne 6c8f613050 Fixed up xlate() to support recursive composed translations by providing a
method for composing a translation key and arguments into a single string
which is later decoded by the call to xlate(). This also requires that
unsafe strings (those entered by the user which should not be translated)
be marked with the new taint() method so that xlate() knows not to try to
translate those when it is recursively translating everything in sight.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1079 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-02-28 23:13:54 +00:00
Michael Bayne 42a8993c93 Added code to test the new MessageBundle recursive escaped composed
translation facilities.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1078 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-02-28 23:12:27 +00:00
Michael Bayne 4527c8c5fa Fixed typo.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1077 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-02-26 20:52:45 +00:00
Michael Bayne e1835810b3 Added facilities for displaying system messages that originate on the
client rather than from the server.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1076 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-02-26 20:37:55 +00:00
Michael Bayne dc154423e0 Added code to support the new localized system messages; first by creating
a message manager and making it available to the micasa code and second by
actually using it to translate system messages.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1075 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-02-26 05:48:11 +00:00
Michael Bayne e782bacb35 Modified system message delivery to include a localization bundle
identifier which indicates which bundle to use when translating the
message for display to the client.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1074 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-02-26 05:47:40 +00:00
Michael Bayne 2dc3c95b8b Added code to avoid downloading new copies of the resource bundles unless
they've changed.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1073 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-02-26 05:28:02 +00:00
Michael Bayne ae68989fb3 No more dist.home.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1072 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-02-26 03:09:48 +00:00
Michael Bayne 7729f290be Wrote a handy little tool for fiddling with the image recoloring routines.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1071 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-02-25 07:28:34 +00:00
Michael Bayne adf80275ca Use $root not $realroot.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1070 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-02-25 07:27:57 +00:00
Michael Bayne dc1969ec84 Added a method for recoloring images. It requires that the images be
indexed color and it converts colors that are close to a target color in
the HSV color space (with specifiable bounds on difference in hue,
saturation and value) to new colors (with specifiable offsets for hue,
saturation and value). Initial testing shows great promise for articles of
clothing and even reasonable results on skin tones.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1069 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-02-25 07:14:56 +00:00
Michael Bayne 9e5937ffea Added mechanism for loading images directly, without converting them to a
format optimized for display.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1068 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-02-24 19:26:26 +00:00
Michael Bayne 4641d00583 Moved ImageUtil into media.util with the rest of the util classes.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1067 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-02-24 02:20:44 +00:00
Michael Bayne 04f0421e28 Can't generate a random character from all the classes now that we have
non-character classes.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1066 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-02-21 06:01:51 +00:00
Michael Bayne 137e9e9ea8 Revampola! Moved the code that handles viewport offset into the animated
panel; restructured things so everyone deals with "view" coordinates
rather than screen coordinates and the animated panel takes care of doing
the final translation before rendering.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1065 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-02-21 06:01:29 +00:00
Michael Bayne 424f2da631 Only post a compound event if it contains other events when a transaction
is committed.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1064 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-02-21 00:59:29 +00:00
Michael Bayne 2e6c813bd6 Pass the current time stamp to viewWillScroll().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1063 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-02-21 00:20:22 +00:00
Michael Bayne 5f18acd3d8 Modified distributed object attribute setting such that attributes are
*always* set immediately because after some deliberation, we decided that
doing that led to less unexpectedly annoying behavior than having to wait
for the event to propagate to see the new value.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1062 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-02-20 23:35:42 +00:00
Michael Bayne fec59f61a8 Dirty the old frame bounds and the new frame bounds when our frame image
is replaced.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1061 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-02-20 03:13:57 +00:00
Walter Korman c0cfec8f90 Fixed comment typo.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1060 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-02-20 02:10:02 +00:00
Michael Bayne d0e946756d Updated the ignore files.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1059 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-02-19 22:11:30 +00:00
Michael Bayne cbcf5d217e Revamped bundle stuff to put all actions and classes in one top-level
metadata bundle and just the components in separate component bundles.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1058 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-02-19 22:10:30 +00:00
Michael Bayne ade0080446 Added support for obtaining character components by class name and
component name, which is handy when you don't want to do compositing, but
just want to load single "component" characters.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1057 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-02-19 22:09:50 +00:00
Michael Bayne e7022fcfff Added facilities for specifying the resting and path-following actions
because they won't always be standing and walking.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1056 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-02-19 22:09:08 +00:00
Michael Bayne 12dd0ff1c7 Load our vessel components by name now that we can.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1055 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-02-19 22:08:25 +00:00
Michael Bayne bd899e1636 Changed action class to reflect new vessel component organization.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1054 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-02-19 20:17:36 +00:00
Michael Bayne f5c7d7864c Added a ship sprite to the center of the scrolling view.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1053 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-02-19 20:03:13 +00:00
Michael Bayne a54339594c Pick tiles pseudo randomly based on the coordinates.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1052 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-02-19 20:02:16 +00:00
Michael Bayne 1ae28e9942 Ignore the data files.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1051 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-02-19 20:01:48 +00:00
Michael Bayne 286728cec7 New ship component bundle.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1050 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-02-19 20:01:21 +00:00
Michael Bayne 947107b0ba Added another set of component bundles for ships.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1049 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-02-19 20:00:32 +00:00
Michael Bayne 0db9ce6d2d Don't need to create our own sprite manager; added a method for adding
sprites to the screen which takes care of assigning their tile
coordinates.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1048 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-02-19 19:58:19 +00:00
Michael Bayne 9b465b9fe3 Split the rendering into scrolled items and fixed items. Render the
sprites (and object tiles) as fixed items.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1047 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-02-19 19:57:46 +00:00
Michael Bayne d869e1168e Let our sprite manager know when we scroll; modified the rendering such
that scrolled views are copied to the display in their entirety instead of
just updating the dirtied regions (because we can't scroll the visible
screen buffer and then paint on top of it because the user will see things
in an intermediate stage).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1046 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-02-19 19:56:49 +00:00
Michael Bayne ee3532f6f1 Added mechanism by which the sprite manager can be informed that the view
on which its sprites are rendered was scrolled so that it can generate the
appropriate dirty rectangles or update its sprite's positions.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1045 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-02-19 19:55:14 +00:00
Michael Bayne 817c7aab39 Removed obsolete variables.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1044 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-02-19 07:43:20 +00:00
Michael Bayne 025f212df0 Use a BorderLayout.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1043 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-02-19 07:42:51 +00:00
Michael Bayne cbaba2b381 Tell the sprite manager about our viewport offset.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1042 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-02-19 07:41:55 +00:00
Michael Bayne 958cb213d5 Blarg. Have to tell the sprite manager about the viewport offset when
we're using it to render sprites into a view that is being displayed in a
viewport that is smaller than the actual size of the view. Oh the
jockeying.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1041 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-02-19 07:41:36 +00:00
Michael Bayne b01df00f3f Use a border layout.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1040 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-02-19 07:21:33 +00:00
Michael Bayne 74ae7214da Use full-screen mode if possible.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1039 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-02-19 07:21:15 +00:00
Michael Bayne 922fdc292f Have to translate invalidated rectangles according to our viewport
translations for everything to work out.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1038 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-02-19 07:20:13 +00:00
Michael Bayne 3e68fd8994 Clear out our back buffer when we're validated (as we probably changed
sizes).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1037 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-02-19 07:19:04 +00:00
Michael Bayne 7db44c5ee3 Let the animated panel handle invalidating the regions exposed by
scrolling so that it can do so with the actual dimensions of the panel
(the scene view only knows how big its model wants to be). Changed
scrollView to viewWillScroll to more accurately reflect what's going on.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1036 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-02-19 05:03:17 +00:00