Commit Graph

3674 Commits

Author SHA1 Message Date
Ray Greenwell dec1b3c6ef Added a form of pickRandom that accepts a Random object.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3732 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-10-13 09:19:22 +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
Ray Greenwell aed0f94e50 Fixed my own retarded (broken) implementation of pickRandom. If a list
had been passed in with 3 elements and the first one was the 'skip',
then the second one would get picked 100% of the time.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3730 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-10-13 08:52:13 +00:00
Michael Bayne b7e6480b6f The first steps toward supporting shadows and cropping in the character
compositing system. These changes will not affect systems (like Yohoho) that
don't use said features.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3729 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-10-13 00:00:33 +00:00
Ray Greenwell bd7c2caab9 Use new Interval.Runnable interface name.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3728 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-10-12 21:02:18 +00:00
Ray Greenwell 078e131c16 Force us to unsubscribe to our cluster when we log off.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3727 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-10-12 19:12:37 +00:00
Ray Greenwell 5bd90aa797 Stop using TrackedObjects.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3726 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-10-11 19:17:43 +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 0351fa6ddc Added a bunch of library dependencies.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3724 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-10-07 22:36:26 +00:00
Michael Bayne 10e32b117f Made getActionFrames() public.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3723 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-10-05 21:57:34 +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 1a61beac13 Added getComponentRepository().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3721 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-10-05 03:37:58 +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 9c2fccb8eb Added an optional array to store colorization classes for a character component
class. Most users of the Cast system will be recoloring their character
components and this allows such users to avoid using the sort of "component
constraints" system that Yohoho uses when they don't need all the weird stuff
like starter status or activation cost.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3719 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-10-04 20:34:06 +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
Michael Bayne f32b2de490 Enumerated legacy services which have class-based providers and regenerated
those that do not using the template.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3716 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-09-27 23:09:45 +00:00
Michael Bayne e52758ef2c Allow the specification of legacy services for which provider interfaces should
not be generated. Cleaned up the generated provider interface formatting a bit.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3715 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-09-27 23:05:40 +00:00
Michael Bayne 2d9dffc7ec Automatically generate the provider interface when generating the FooMarshaller
and FooDispatcher. This means we will no longer be able to make FooProvider a
class that directly handles FooService methods, but the savings in confusion
for first time users of the framework will more than make up for the minor
inconvenience.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3714 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-09-27 22:27:04 +00:00
Andrzej Kapolka 4fbb911d7c Use a sublist view rather than removing and adding cards one by one.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3713 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-09-27 21:58:10 +00:00
Michael Bayne 7fb4eafbf8 How have we not previously been screwed by the fact that an Error (like
NoSuchMethodError) sticks a fork in the event dispatcher thread?


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3712 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-09-27 04:38:33 +00:00
Ray Greenwell 277af53513 We shouldn't be using OidLists to report winners/losers/players knocked out.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3711 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-09-27 01:50:29 +00:00
Michael Bayne 484c3ff86d Wrapped long line.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3710 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-09-26 00:11:02 +00:00
Ray Greenwell ede0d9f471 Broke out sending the player-ready signal to the server into a method
so that it can easily be overridden.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3709 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-09-23 02:00:52 +00:00
Michael Bayne 88e72fbbf6 Call endPlayerGame() before we finish the bodyLeft() processing because if the
leaving player was the last human player in the room, bodyLeft() will result in
a call to placeBecameEmpty() which will shut the game manager down before it
has a chance to end the game cleanly as a result of said player leaving.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3708 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-09-22 19:52:58 +00:00
Ray Greenwell 5fe4dc5a37 Allow editing of a field with a pulldown (combobox).
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3707 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-09-21 07:37:55 +00:00
Ray Greenwell 51acbb09f4 Only set the value if it's changed.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3706 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-09-21 07:36:09 +00:00
Michael Bayne c9bd489c0b Had the beans above the frank.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3705 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-09-21 02:19:53 +00:00
Michael Bayne 103e145f1d Updated to reflect changes to JME.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3704 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-09-21 02:11:37 +00:00
Ray Greenwell 7f34a9cfaf Catch and log runtime exceptions when finishing a move-to request and
inform the client that the shit hit the fan so that it's not locked from
making any other move requests.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3703 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-09-16 00:36:21 +00:00
Michael Bayne f75d7d6f31 Update to cope with the new JME world order.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3702 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-09-15 20:52:15 +00:00
Michael Bayne f79a52142c Nomenclature fix: puzzle -> game.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3701 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-09-09 00:42:34 +00:00
Michael Bayne 77a28c401c Added isRotating(); changed the default camera velocity to be in line with
the other velocities.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3700 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-09-09 00:42:15 +00:00
Michael Bayne 456444da26 Added support for smoothly rotating the camera.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3699 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-09-08 23:45:51 +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
Michael Bayne dd44bb4f69 Removed unneeded and improper Runnable check.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3696 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-09-06 18:32:37 +00:00
Michael Bayne 5502936535 Instead of relying on toString() returning something sensible, we go back
to using the class name but get the appropriate class in the case of
RunQueue queued intervals.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3695 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-09-06 18:20:22 +00:00
Ray Greenwell 92e4e9cfaf There are zillions of invocation dispatchers registered with a multitude
of codes. Currently the unit dump that is done once every 15 minutes is
chock-full of one-off units. Let us report the short class name of
the dispatcher, rather than the code with which an instance is registered.

Also: Thou shalt always iterate over the entrySet of a Map if thou planneth
to utilize both the key and the value.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3694 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-09-05 05:38:58 +00:00
Ray Greenwell c3f418d1ac Changed our frame participant to be a non-anynonmous class to support
subclassing it in the SwordController.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3693 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-09-01 21:52:19 +00:00
Ray Greenwell d5ec5675d7 Added a comment about possible return values.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3692 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-08-29 21:42:11 +00:00
Michael Bayne 91576fcfd3 Life is a lot easier if our observers are notified in the order they are
registered rather than in reverse. I'd like to make this change to
media.AbstractMedia as well but no doubt zillions of things depend on the
current notification ordering for that package.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3691 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-08-25 22:12:07 +00:00
Michael Bayne ca04c00c44 Big chat revamp to migrate various useful things from Yohoho like /command
handling, chat history support and chat mogrification into the base
framework.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3690 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-08-24 21:59:50 +00:00
Michael Bayne 18fa50cb78 Temporarily use renamed constant.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3689 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-08-24 18:47:21 +00:00
Michael Bayne b7f02502aa Track max queue size and total events dispatched in an extensible stats
object that can be (and is) provided to external callers.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3688 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-08-24 18:28:36 +00:00
Michael Bayne f39306a793 New bui package.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3687 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-08-23 18:58:24 +00:00
Michael Bayne fd05f9aad5 com.jme.bui -> com.jmex.bui.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3686 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-08-23 18:56:36 +00:00
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 ef65ee5644 Do things in a way more amenable to subclassing.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3684 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-08-22 18:30:07 +00:00
Michael Bayne 1afa3712fb Cope with failing to initialize the sound system.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3683 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-08-22 18:29:47 +00:00