Commit Graph

514 Commits

Author SHA1 Message Date
Andrzej Kapolka ea646a4d46 Allow subclasses of MisoScenePanel to skip arbitrary scene objects, as opposed to just object without actions.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3685 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-08-23 00:06:52 +00:00
Michael Bayne 7428f885cf Moved getTileHash() into TileUtil.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3628 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-06-28 17:42:55 +00:00
Andrzej Kapolka b9be0dcea7 Broke menu bounds computation out into its own method for use by subclasses.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3588 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-06-07 16:43:59 +00:00
Michael Bayne 80609dbe81 Make the default tileset zero not El Magico Rando Numero Ocho.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3441 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-03-30 02:37:45 +00:00
Michael Bayne d60445e16b Better error reporting.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3437 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-03-29 23:18:00 +00:00
Michael Bayne 8b79e57179 Moved AStarPathUtil into media from miso (it has nothing to do with
isometric rendering) and modified it to allow it to consider different
potential move sets than just moving by one in the eight cardinal
directions.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3411 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-03-17 07:36:47 +00:00
Michael Bayne d62b0dfdbb Missed another serialization spot.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3403 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-03-14 23:58:02 +00:00
Michael Bayne b97d9ac7c3 Not to booch when serialized and then dead-code removed.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3402 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-03-14 23:53:36 +00:00
Michael Bayne afabea71ad Big fat Bernie javadoc cleanup.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3310 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-01-24 23:08:21 +00:00
Ray Greenwell 7afefd747b Only allow sprites and objects to be clicked with the first mouse button.
Will this change be as ill received as removing "P" from chat? Who knows.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3278 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-12-15 23:01:45 +00:00
Michael Bayne cea4f80676 Compute from the screen size the longest we will allow our A* paths to
reach while path finding.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3277 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-12-15 03:29:32 +00:00
Michael Bayne d29db7765a Updated to use non-deprecated method signatures.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3254 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-11-30 20:03:47 +00:00
Ray Greenwell 558cdf660e This does not work as designed, and we can do what it tries to do in
a different way.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3206 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-11-10 22:53:22 +00:00
Michael Bayne a70efc3ffb NoLongerAnySuchNoSuchTileException. Instead we just log a warning and
return a tile with an error image so that the caller doesn't freak out and
we achieve maximal "continue to work as much as possible."


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3177 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-10-28 17:49:02 +00:00
Michael Bayne 36a629c5e9 More ...Equal() -> ...() and ...() to ...Ref().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3171 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-10-23 17:36:32 +00:00
Ray Greenwell 779461f628 Made refreshScene() public.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3115 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-09-09 00:09:22 +00:00
Ray Greenwell ae38a24d39 Removed cruft from a bygone day.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3110 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-08-30 22:08:15 +00:00
Michael Bayne a9720fd905 LGPLed the library. Hello world.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3099 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-08-27 02:21:06 +00:00
Michael Bayne a2ae7d499d Track more objects!
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3091 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-08-23 21:05:04 +00:00
Ray Greenwell 3485019952 These warnings are like flies. Let's kill them.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3074 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-08-13 23:08:03 +00:00
Michael Bayne 79da3ac15c Let the caller know that we're refusing a duplicate interesting object.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3071 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-08-13 20:48:27 +00:00
Michael Bayne 1da753e14d Brought things up to date with the latest Jakarta Commons world order.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3058 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-07-13 16:34:49 +00:00
Eric Lundberg beb2539663 Get rid of the not needed code that I had previously checked in for a
short stint of actually being used.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2988 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-03-31 02:16:12 +00:00
Eric Lundberg 74eb2bef88 Added code to allow object visitors to visit a specific section.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2986 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-03-30 01:30:38 +00:00
Michael Bayne d618d3c771 Eclipse suggested cleanup.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2971 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-02-25 14:50:28 +00:00
Ray Greenwell 796c953c89 Window.show() is deprecated in jdk 1.5, replaced with setVisible(true).
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2965 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-02-22 18:55:26 +00:00
Michael Bayne 1688a19704 Allow for "loose" path location which gets the sprite as close as possible
by normal means and then walks them in a straight line from there (when
the straight line part will invariably be off-screen, this is OK).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2937 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-01-12 05:53:59 +00:00
Michael Bayne 7568ae1223 Provide support for locating incomplete paths.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2936 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-01-12 05:52:05 +00:00
Michael Bayne 7f4a01b795 Made getBlock() public, added enumerateResolvedBlocks(), pressObject().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2934 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-01-11 12:22:05 +00:00
Michael Bayne 197067593f Added support for visiting just the interesting objects.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2933 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-01-11 12:21:17 +00:00
Michael Bayne 0315c4316f Removed the hard coded jiggery pokery that we were doing to layout scene
object tips, replaced it with a system whereby custom tip layout
mechanisms can be registered for object action prefixes. The default tip
layout centers the tip in the object exactly as before minus the height
limitation business (which is actually no longer needed as the sailing
duty stations are no longer assigned to the rigging but to the wall below
the rigging).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2932 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-01-11 08:26:18 +00:00
Michael Bayne 9f48d11b4e Make the screen coordinates of the object's spot available since we have
them.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2931 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-01-11 08:24:16 +00:00
Ray Greenwell 424c9b0e0e Let object action handlers have a crack at modifying the tool tip text
for an action (we already let them have a crack at the icon).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2930 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-01-07 22:03:08 +00:00
Michael Bayne d43f20d60f Only warn if we take a (relatively) long time path finding (ie. over 500ms).
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2910 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-12-13 02:52:00 +00:00
Ray Greenwell bb11cd4d0a Some better comments, tightening up.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2853 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-11-12 23:13:45 +00:00
Ray Greenwell 7795edf604 Use BaseTile objects to contain fringe tile info, mark them as impassible
if they are fringed on by any SPECIFIED tileId (ie, not the default tileId)
that is impassible.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2852 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-11-12 23:05:41 +00:00
Michael Bayne d7c1a05854 Deal more gracefully if some pathological circumstance prevents us from
resolving a scene object.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2844 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-10-29 01:42:37 +00:00
Michael Bayne a02d076d8e Tone down the max path length, when searching for a path in unresolved
space, it ends up considering up to 10,000 nodes with a max path length of
50 which causes the client to hang for like 5 seconds. Not so good. With a
max path length of 20, that comes down to about 1,300 nodes which ends up
being non-linearly faster.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2825 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-10-15 23:20:40 +00:00
Michael Bayne 48cbb2d095 Track the amount of time we spend searching for paths and report it if
it's lengthy.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2792 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-09-08 18:42:38 +00:00
Michael Bayne 11fc21a59b Added code for refreshing the currently displayed scene.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2777 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-08-16 03:42:28 +00:00
Michael Bayne f252c0f88d Added sanity check.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2729 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-07-27 02:50:53 +00:00
Michael Bayne 48c9556d18 Fine grained scene block resolution instrumentation.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2706 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-07-12 04:16:32 +00:00
Michael Bayne eec42e8f42 Report our fully qualified tile id more human readibly.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2705 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-07-12 04:16:10 +00:00
Michael Bayne b8b76e091c Preserve command events as is.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2676 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-23 20:16:07 +00:00
Michael Bayne 2f63091f59 No show all.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2672 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-20 21:50:56 +00:00
Michael Bayne fc9f2d88f3 Fire a special scene object action when an object is clicked or object
radial menu item is selected.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2671 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-19 22:20:02 +00:00
Michael Bayne 629c40f631 Increased the padding around the icon and between the icon and text. We're
going to need to make this customizable by derived classes at some point.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2670 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-19 22:12:51 +00:00
Michael Bayne e7a7c2ba09 Pulled icon lookup into method that can be overridden.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2669 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-19 22:03:14 +00:00
Michael Bayne 105aa7384d Added toArray().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2651 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-12 05:24:08 +00:00
Michael Bayne e6c3d54905 Disabled scene memory usage reporting as we get a good enough idea from
periodic cache stats at the moment.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2643 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-05 18:41:36 +00:00