Commit Graph

3325 Commits

Author SHA1 Message Date
Ray Greenwell fa1f5a0dd0 Added getClosest() for finding the closest direction in a list to one
specified. I'm not sure I'll actually end up needing this, but it's handy
for what I'm currently toying with.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3783 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-12-15 02:49:28 +00:00
Ray Greenwell 94abde8293 Made getActionSequence() public.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3782 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-12-15 02:48:02 +00:00
Mark Johnson 547ace1187 Added isRandomValidTarget used for selecting a new random target.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3781 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-12-09 23:29:48 +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
Mike Thomas 04c13820ef Added ability to override hand-sorting on the card panel.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3778 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-12-08 19:41:12 +00:00
Mark Johnson 8381da7cab Have board summaries always update before being broadcast. Don't
generate a summary for every change to a player's board.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3777 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-12-07 19:19:11 +00:00
Ray Greenwell 23087de145 Added a shutdown() method that removes us as a ChatFilter.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3776 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-12-06 00:54:02 +00:00
Ray Greenwell 0e60a76e2b Interval.Runnable -> Interval.RunBuddy
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3775 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-12-05 19:41:44 +00:00
Michael Bayne d57adeca1c Big fat bernie OccupantInfo revamp. Now:
- OccupantInfo is created by the BodyObject
- the BodyObject is passed to the OI constructor and it uses information
  therefrom to configure itself
- the PlaceManager are no longer responsible for indicating the type of
  OccupantInfo to use or how to populate it.

This makes much more sense as the same type of OccupantInfo is generally used
across the entire system and it's annoying to have to have every PlaceMaanger
derived class know the type of OccupantInfo to create and know how to
initialize it. The one drawback is that only information from the BodyObject
can be used to populate the OccupantInfo, unpublished server-side only
information cannot be used (unless its stuffed into a transient field in the
BodyObject).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3774 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-12-03 03:05:06 +00:00
Mike Thomas 15ea2134e3 New type of CardSprite using the micro-card images.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3773 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-12-03 00:37:30 +00:00
Ray Greenwell 4e179766df - Update our own summary after our board is set (so that it'll update
if we re-enter a game in which we had a non-empty board).
- Made updateSelfSummary() public to support a change in yohoho.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3772 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-12-01 23:54:00 +00:00
Ray Greenwell 9f4f72318f Don't start the action when we enter the game if we're already knocked out.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3771 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-11-30 03:45:12 +00:00
Ray Greenwell dc3cf4aa28 Added a new type of chat message: a UserSystemMessage is a system message
triggered by the activity of another user. The other username is provided
so that the message can be muted if desired.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3770 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-11-29 19:33:04 +00:00
Mark Johnson 9a42f14028 - Added a TeamPuzzleObject that stores teams and targeting information
for team based puzzles
- Created an overridable method in PuzzleManager to control whether the 
server will halt when the client and server boards are out of sync 
during debugging


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3769 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-11-29 02:50:37 +00:00
Mike Thomas 8e35258105 Split off functionality of updating a player's board status and broadcasting it to its own function so that just that can be overridden.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3768 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-11-29 02:46:55 +00:00
Ray Greenwell 852f32696b More efficient serialization.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3767 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-11-23 02:24:17 +00:00
Ray Greenwell 1673cf0865 Changed some things around so that we can do operations that may require
a round trip to the database after a user has changed user objects:
the ClientResolutionListener will get a ResultListener that it should
call when its all done.

Hopefully this doesn't break anything in bang or gardens...


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3766 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-11-18 02:32:26 +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
Ray Greenwell 38ee3ae362 When a place is loaded, immediately schedule an unload in the future, if
applicable, as it will only otherwise get checked when users leave the place.
It's possible that we'll load and nobody will ever enter.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3763 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-11-17 03:29:24 +00:00
Andrzej Kapolka 91aacbf8a8 Scratch that; go back to using computeRotation.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3762 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-11-16 03:36:29 +00:00
Andrzej Kapolka 696c790585 Something is wacky with PathUtil.computeRotation, but I can't figure out
what.  Having tried various tweaks with no success, I finally punted and 
changed LineSegmentPath to use computeAxisRotation.  I also fixed the 
order of cross products in that method and got rid of a redundant cross 
product.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3761 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-11-16 02:28:25 +00:00
Ray Greenwell ee4d43e76f Here too, _nondb is unsafe.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3760 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-11-15 03:08:23 +00:00
Michael Bayne 672368ff92 Created a path for panning the camera.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3759 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-11-11 03:00:12 +00:00
Michael Bayne 176329e1ed Various updates to allow a system where a user's visible name is not the same
as their authentication name (which we leave in BodyObject.username). This
turns out to be simpler than the system we adopted for Yohoho wherein we
replace the player's user object after they select a character, but converting
to this sort of system is way more work than would be worth it.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3758 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-11-10 23:18:58 +00:00
Michael Bayne 3c91e33f04 Fixed booched formatting.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3757 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-11-10 02:53:02 +00:00
Michael Bayne 26511ab165 Added fancy new mode for limiting the camera pan wherein we calculate the
intersection of the frustum with the ground plane and restrict that rectangle
to the interior of the desired region.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3756 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-11-10 02:40:33 +00:00
Ray Greenwell 263a36e23e Allow a TableConfig to be set prior to initialization.
The configurator will use that as its prototype, and attempt to configure
the UI elements to display the values in that config.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3755 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-11-10 01:19:37 +00:00
Andrzej Kapolka e30ef0d8f6 Make sure the camera handler is created in canvas apps.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3754 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-11-09 22:49:37 +00:00
Michael Bayne 4a1b366cd8 Provide the camera handler rather than the camera.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3753 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-11-09 22:34:15 +00:00
Michael Bayne 35caa3a79f Revamped camera handling. We now have a camera handler through which all camera
manipulations pass. It can then ensure that the camera remains within zoom and
pan boundaries and is generally in the right place. It also handles camera
paths, which adjust the camera through the handler. The input handler now has
no camera logic but simply wires up camera manipulations to input mechanisms
which is much cleaner.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3752 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-11-09 22:30:02 +00:00
Michael Bayne 86abf1675f A bunch of business related to moving the camera along paths. Also repackaged
camera handling stuff into com.threerings.jme.camera.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3751 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-11-09 20:01:28 +00:00
Michael Bayne 6dc12423ee Don't send empty chat requests.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3750 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-11-09 07:32:35 +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
Andrzej Kapolka 365634146c Added tool/task to build sphere maps from cube maps.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3748 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-11-07 02:20:13 +00:00
Michael Bayne 6e9687ac9b Follow standard guidelines for predicate methods.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3747 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-11-05 02:25:56 +00:00
Ray Greenwell 6cb4345c6c Added method to get the Locale object that the client is using.
This may be different from the default Locale.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3746 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-11-04 02:16:05 +00:00
Michael Bayne c733a47eb4 Whoops, missed an obsolete import.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3744 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-11-02 00:19:29 +00:00
Michael Bayne 74912c63c8 Updates to work with refactored JME input handling.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3743 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-11-02 00:01:26 +00:00
Michael Bayne 3203ceb380 Cope gracefully if one of our shadow components is booched or missing.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3742 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-11-01 23:36:36 +00:00
Elizabeth Fong eada0b7f50 r58@sally: elizabeth | 2005-10-25 03:59:59 -0700
Changed things around a bit to have the cheesy JabberChat run out of the box:
 * ChatDirector no longer freaks out when given null message bundles/managers.
 * MiCasa's ChatPanel is marked with a TODO item to stop passing in null
   messagebundles and messagemanagers to ChatDirector.
 * JabberApp and JabberClient have been adjusted to allow the user to specify
   which chatroom to join from the command line; I plan to implement this using
   BootstrapData when time permits.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3741 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-10-25 11:13:51 +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
Michael Bayne 882868abb4 Changed the way shadow layers will be handled because we only have a list of
components when creating our character and we need to be able to determine
which shadow layers are needed from the set of active components.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3739 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-10-20 18:10:03 +00:00
Ray Greenwell 18833d7eb7 Added an isPrivate variable to GameObject.
Set it if a table game is created as being private.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3738 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-10-20 07:17:02 +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
Michael Bayne 684834cc87 Report whether this component has an associated shadow.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3735 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-10-19 00:29:07 +00:00
Ray Greenwell a12b610007 Extend SimpleStreamableObject rather than TrackedStreamableObject.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3734 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-10-18 00:06:30 +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