Commit Graph

921 Commits

Author SHA1 Message Date
Mike Thomas 46f61df574 Bugfix: Black screen on furniture rearranging:
- The range model was not correctly handling the case that the viewport in which we were arranging furniture was bigger than the area that the room wanted to cover.  This problem never occurred in 800x600 mode, but could occur at larger resolutions in smaller rooms (such as shacks).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3874 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-02-21 19:53:26 +00:00
Ray Greenwell 28ac720b98 Moved avoid animation tracking into a helper class.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3854 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-02-14 22:17:52 +00:00
Ray Greenwell 9faa866dba Added a method that exists in VirtualMediaPanel.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3853 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-02-14 22:15:55 +00:00
Ray Greenwell 39565a6d92 Occam's razor.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3827 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-02-03 01:02:41 +00:00
Ray Greenwell 21181e8ba3 Don't dirty our bounds if setLocation() is called with our current
location. This could possibly break something that depended on the old
behavior, so we'll have to watch for broken things and make them right.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3822 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-01-27 03:28:04 +00:00
Mike Thomas dfc8112277 Split out fading sprite capability from the CardSprite class so it can be extended and used elsewhere.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3819 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-01-24 19:46:34 +00:00
Michael Bayne bf5fff9ee1 Don't forcibly render layer components that are not currently visible; added a
mechanism for layer components that know they will never be "under-rendered" to
avoid the expense of forced rendering on every tick.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3805 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-01-16 21:21:22 +00:00
Mike Thomas 7ecb150627 Oops. Fixed memory leak in FrameInterval by calling cancel if we're not repeating.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3794 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-12-21 02:14:36 +00:00
Mike Thomas 5a57753d84 New client-side version of the Interval class which runs as a FrameParticipant, using the FrameManager's timing mechanism.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3791 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-12-21 01:48:15 +00:00
Ray Greenwell 7a64be94f2 Goodbye, NestableIOException.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3788 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-12-20 02:09:18 +00:00
Mike Thomas 12c9f86735 Add additional type of orientation to ArcPath - NONE - which keeps us from reorienting sprites following the path.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3780 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-12-08 21:59:12 +00:00
Mike Thomas db5de88da2 Added capability to get translated (in x and y) versions of Arc and Line Paths.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3779 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-12-08 19:42:11 +00:00
Mark Johnson 709c2d94bf Have the delay path call pathCompleted when it is done. Otherwise it's
going to be a very long delay.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3765 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-11-18 00:54:35 +00:00
Mark Johnson 9e533f3d3d Added a DelayPath convenience class.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3764 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-11-17 23:56:41 +00:00
Michael Bayne 596d2a4708 blank() -> isBlank().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3749 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-11-09 04:00:16 +00:00
Michael Bayne 4dba269585 Finished support for shadows. This is all some seriously complicated shit, but
the shadows sure look cool.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3740 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-10-20 22:12:45 +00:00
Ray Greenwell 8ca6e7a17c Preconcatenate the translation into the transform so that we have
that in there for hitTest().

(Note: a lot of what's going on in this class is untested beyond what
I need right now).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3737 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-10-19 18:46:49 +00:00
Ray Greenwell 4848a3e2ca A TransformedMirage is another mirage that is transformed by any
AffineTransform.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3736 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-10-19 18:28:40 +00:00
Ray Greenwell 29c2cfddd1 Some optimizations and cleanup, since sprites are already sorted by
render order in our internal list.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3733 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-10-13 19:00:08 +00:00
Ray Greenwell bb5e7fed19 Treasure Drop depended on the previous behavior, where if the hover sprite
was still hitting it didn't check for a new one. Let's keep the
check but instead let's just make sure that we ignore sprites
that are non-action or non-hover or are disabled.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3731 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-10-13 08:54:25 +00:00
Michael Bayne dd2468b140 Javadoc tidying up.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3725 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-10-08 22:21:19 +00:00
Michael Bayne c442ce3023 Allow the sprite action handler to be customized.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3722 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-10-05 05:59:53 +00:00
Michael Bayne 1631093451 No longer insist that we ask the AWT to create optimal images. Instead an
interface is provided that does that in a pluggable manner.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3720 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-10-05 01:39:45 +00:00
Michael Bayne a9d72cf9c4 My change didn't properly "unhover" the old hover sprite when an overlapping
but higher priority hover sprite was entered. Noted a refinement that would
make getHit() more correct in the overlapping case.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3718 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-10-02 01:32:05 +00:00
Michael Bayne d556c79088 Removed the optimization of not recalculating the hover sprite when we were
still over a hover sprite as that prevents things from working properly if
hover sprites overlap. This isn't much of a tradeoff as most of the time the
mouse is not over a hover sprite in which case it does the full hit testing
anyway.

Also fixed a bug wherein the active sprite was not actually configured unless
it implemented HoverSprite which the rest of the code takes pains not to
require (it should be and is now possible to have action sprites that do not
implement HoverSprite but still work).

By the way, this whole action/hover/etc. sprite business is goddamned handy.
It's *so* much nicer than having to implement mouse listeners and do a bunch of
crap by hand.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3717 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-10-02 01:27:24 +00:00
Andrzej Kapolka f1511a8398 Fixed comment; the same prefix is used for normal-height and low walls.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3698 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-09-07 23:23:06 +00:00
Andrzej Kapolka 00ae2e251c Added support for "low" walls/attachments.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3697 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-09-07 23:19:17 +00:00
Ray Greenwell 898a3bf5d5 Not sure if this is a big deal, but it can't hurt: our media panels
shouldn't be transparent so that repaints don't travel up past them.
(Some were, but I think our repaint manager was keeping paints out of
the parents anyway, somehow).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3663 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-07-28 21:08:47 +00:00
Andrzej Kapolka 67d1ca90c4 Moved the calls to the various layer-painting methods to their own independent method.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3660 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-07-23 01:30:35 +00:00
Ray Greenwell 84361f9f9b - Initialize our timestmap in willStart() (which postdates the original
creation of this class).
- Track when all the sparks have moved outside the bounds of the animation
  and end it then.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3649 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-07-14 01:37:34 +00:00
Ray Greenwell 8dd1890a18 - The 'jog' parameter was broken. Fixed it, added xjog and yjog.
- Added a 'fade' parameter so that you can decide if you want the
  fade-out option.
- Renamed some other parameters.
- Fixed it so that it never paints outside its bounds.
- There is wacky broken behavior with the starting x/y velocities
  that does unexpected things. It should probably be removed and handled
  by code using this class, but it's called from too many places for me
  to feel comfortable making that big a change.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3647 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-07-13 00:35:25 +00:00
Michael Bayne 6474d7de7e Don't assume we have an image manager or that we care about "compatible"
images.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3632 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-06-28 21:18:43 +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 264d0e65d5 Handle directional wall constraints, attach only to walls, check space constraints selectively with respect to direction.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3609 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-06-21 01:26:06 +00:00
Andrzej Kapolka 1e311871c3 Don't load tile images on server; just allow/check for null image provider.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3608 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-06-20 22:59:07 +00:00
Andrzej Kapolka bd017c0237 Added constraint fields to TrimmedObjectTileSet, fixed constraint parsing, added basic constraint handler class, added image manager to StageServer to fix NPE in tile retrieval.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3607 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-06-20 21:18:55 +00:00
Elizabeth Fong 5b3f842e44 Always throw a stack trace if an invalid tile is requested, so that we can more easily track down these errors
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3603 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-06-16 19:54:49 +00:00
Andrzej Kapolka 89b51beee2 Read constraints for object tiles.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3598 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-06-15 18:54:24 +00:00
Michael Bayne 853e86e560 This looks suspiciously like a bug.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3586 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-06-05 16:41:10 +00:00
Michael Bayne a0363c873f Tracked down the source of non-repaintery on the Smack and added a couple
of workarounds.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3581 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-05-28 17:24:51 +00:00
Ted V ee20db4390 Added (N choose K) function.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3580 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-05-27 23:04:42 +00:00
Ray Greenwell fa2f528c10 Cleared just a small portion of the great clouds of crack smoke and made
the timers not invalidate _every fucking tick_, even if they're not even
showing!!!


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3569 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-05-20 01:16:32 +00:00
Ray Greenwell 0051fcb302 shutdown() is protected in our superclass, let's not widen access.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3566 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-05-18 01:04:20 +00:00
Ray Greenwell 3e3dd1b840 Allow the start or end alpha levels to be outside the normal range so that
useful delays can be built into the beginning or end of the animation.
Detect bogus parameters in the constructor and throw an exception to
save developer head-scratching time when the animation doesn't actually
do any fading.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3560 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-05-17 20:16:31 +00:00
Ted V 94166728a8 Cleaner way to colorize multiframe images generated from tile sets.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3559 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-05-17 00:42:12 +00:00
Ted V 6acebaa55e Added multiframe image accessor for tile sets.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3558 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-05-16 23:38:35 +00:00
Andrzej Kapolka a40de2ec51 Permit changing media render order as long as we're not in a tick. Removes the need to remove and re-add sprites, which was cancelling their paths.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3551 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-05-13 22:22:56 +00:00
Michael Bayne 0f4fe33c75 Preserve the event timestamp and modifiers.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3544 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-05-06 22:50:45 +00:00
Michael Bayne 35c3458cd1 Pulled layoutLabel() into a method so we can call it again if we want to
change our text.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3542 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-05-06 03:01:43 +00:00
Andrzej Kapolka e16a115575 Always invalidate media on shutdown to avoid remnants.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3533 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-05-02 00:57:58 +00:00