Commit Graph

3595 Commits

Author SHA1 Message Date
Michael Bayne 06b8f41e66 Added setuid() and setgid() to Unsafe.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3653 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-07-21 19:10:08 +00:00
Andrzej Kapolka 58bf15f3e8 Added persistTo/unpersistFrom methods for persisting updates.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3652 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-07-21 02:23:45 +00:00
Michael Bayne ac22e65145 Enabled some debug logging when STREAM_DEBUG is activated. Removed custom
String marshaller as a StreamerMarshaller is used for String fields.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3651 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-07-16 01:46:20 +00:00
Michael Bayne 03411cbd9c Various renamery.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3650 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-07-14 03:54:11 +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
Andrzej Kapolka 9e7f85e873 Changed removeObject to removeObjects.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3648 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-07-13 23:06:12 +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
Ray Greenwell b1ec3ab5b5 Comment fixups.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3646 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-07-07 18:51:35 +00:00
Ray Greenwell fa8ee9f8f8 Added finishResolution(), which is called on the dobj thread to finish up
population of the client object.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3645 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-07-07 18:46:38 +00:00
Ray Greenwell 3820456813 Allow subclasses to not create a speak service if they should so desire.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3644 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-07-06 17:47:51 +00:00
Michael Bayne 9f470a4205 If we end up with a selectable channel in our selection set that we no
longer know about, request that it be given the boot when it rears its
ugly head.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3643 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-07-06 01:00:19 +00:00
Michael Bayne 90ac82e9c6 Allow a set of classname translations to be configured in an
ObjectInputStream to facilitate conversion of serialized data when classes
are repackaged.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3642 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-07-05 20:02:20 +00:00
Michael Bayne 595df9ee28 Which game you talkin' 'bout Willis?
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3641 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-07-05 17:39:48 +00:00
Ray Greenwell b603e6b051 More stuff with ending player games:
- If a player leaves, handle the ending of their game in GameManager.
- don't start the turn first turn in turn-based games on a missing player
- Let derived classes get playerGameDidEnd() even if the game doesn't
  have statuses.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3640 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-07-01 23:56:54 +00:00
Elizabeth Fong e1338dca1e partial fix to 'logged off players automatically win all matches in tourneys'
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3639 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-07-01 00:50:13 +00:00
Michael Bayne a213847eea Added leavePlace() for games where you are sometimes not in any "place" at
all.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3638 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-06-30 00:02:13 +00:00
Michael Bayne c1691c3d0a More path testing to sort out the jitter in the ballistic path at a
certain orientation.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3637 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-06-29 22:24:48 +00:00
Michael Bayne 9002162b86 These should be instance local.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3636 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-06-29 02:20:34 +00:00
Michael Bayne 8e5d5c665f Use the default type if none is specified.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3635 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-06-29 02:05:56 +00:00
Michael Bayne dd3bc4f8e7 Fail gracefully if we're missing a tile source image.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3634 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-06-28 21:36:45 +00:00
Michael Bayne ced6c5b826 Optimized the fringe tile creation process (we only create the graphics
context once and use it to stamp all fringe fragments).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3633 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-06-28 21:19:38 +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 4c3a6fa88a Looks like we're staying in the jme package as OpenGL's inverted y axis
has asserted its nefarious influence. Also modified the code to render the
fringe image on top of the original source image as we need a single
ground texture, not two images to be rendered one atop the other.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3631 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-06-28 21:07:06 +00:00
Michael Bayne 7a830949a1 Frank <-> beans.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3630 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-06-28 18:40:02 +00:00
Michael Bayne 613dd3633e Converted the fringing code into a more generic form that works directly
on buffered images and is not tied to the tile system or the image
manager. This could probably even move into the media.tile package.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3629 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-06-28 18:28:22 +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
Michael Bayne b52e20864d Added requestFocus().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3627 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-06-27 21:05:01 +00:00
Michael Bayne 879a0e25e7 Bound the camera into the pan limits on every operation that changes its
location.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3626 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-06-27 18:44:36 +00:00
Michael Bayne 12853f5600 Disable the FPS display until we have some way to turn it on and off.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3625 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-06-24 22:35:08 +00:00
Michael Bayne 2c17f3612e Track the number of seconds for which the client is connected at the
presents level as it is of interest in pretty much any system. This allows
us to do away with one of the time stamps as well.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3624 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-06-24 22:10:19 +00:00
Michael Bayne c38b75ae9a Allow for event driven rotation.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3623 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-06-24 21:45:44 +00:00
Michael Bayne a940d490a8 Switch to filterable log format.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3622 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-06-24 20:36:53 +00:00
Michael Bayne d22b510867 Ixnay on the verbose logging.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3621 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-06-24 00:21:38 +00:00
Michael Bayne f3dec66a8d More geometric jockeying that you can shake a stick at. The
LineSegmentPath now orients sprites along the path (and even handles an
arbitrary notion of "forward" for the sprite).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3620 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-06-23 21:12:17 +00:00
Michael Bayne 2bf5936317 Fixed the orienting ballistic path, though it doesn't properly handle
arbitrarily oriented sprites. They currently have to "point" toward (1, 0,
0) as that is the direction that will be aligned with the velocity.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3619 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-06-23 03:49:18 +00:00
Elizabeth Fong 732a6512c5 refactored method for client to subscribe to runtime configs from yoweb into narya, since it uses no yohoho-specific code
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3618 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-06-23 01:33:43 +00:00
Andrzej Kapolka c5b146b65e Catch extra errors, clone visited ObjectInfos used as map keys.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3617 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-06-23 01:09:56 +00:00
Michael Bayne 817d246cb1 Need to exclude JME bits when we don't have the right jar files.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3616 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-06-22 23:29:08 +00:00
Michael Bayne 8bfdb79642 Build the tests along with everything else. No longer will they languish
in obscurity. Fixed a couple of out of date bits in the process.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3615 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-06-22 20:35:09 +00:00
Michael Bayne 8ef2a508c9 Created a specialization of the ballistic path that orients the sprite in
the direction of motion as it traverses the path.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3614 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-06-22 20:21:45 +00:00
Ray Greenwell 80ac008f24 Prevent array index bounds problems if isOccupiedPlayer gets called
with -1 (I saw it happen entering a sword game as a watcher).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3613 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-06-22 19:59:51 +00:00
Michael Bayne dfa9216b89 Do dat math!
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3612 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-06-22 18:50:38 +00:00
Ray Greenwell 681561c4bf Removed backwards compatability with things that don't understand
that we're using a grid bag layout and they should use addControl().
Toybox is updated, and if there's anything else out there it's going
to need to be updated anyway, because it likely extends GameConfigurator
directly which is no longer a component.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3611 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-06-22 18:43:43 +00:00
Michael Bayne 6fbdc4e568 Created a path for ballistic motion and an associated test. Yay for
physics.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3610 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-06-22 18:26:54 +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
Michael Bayne d7fd2f5f67 Resize our OpenGL display when the canvas is resized.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3606 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-06-20 18:57:18 +00:00
Michael Bayne 83d077b1fa Make them thar useful methods publicly available.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3605 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-06-18 03:04:04 +00:00
Ray Greenwell 42aaf9d64d Moved team game configuration stuff into the TableConfig, added
a method in Table to return the compressed team indices, added
a new TeamGameManager which can be implemented to have the final
team info communicated to the game manager.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3604 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-06-17 20:25:28 +00:00