Commit Graph

3619 Commits

Author SHA1 Message Date
Michael Bayne 1a705e2b55 Type safety.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4011 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-11 22:04:10 +00:00
Michael Bayne ad49401543 Proguard fucks up if we use clone(). There's no apparent way to find out why it
magically booches and causes an IncompatibleClassChangeError, so we're just
going to work around it.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4008 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-10 20:16:44 +00:00
Michael Bayne 5a2583470c Brought code in line with changes to Samskivert. I have not started to
genericize Narya data structures, nor make the existing code type safe. That's
going to be an extremely large project.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4007 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-10 08:59:30 +00:00
Michael Bayne efb3a6c54e A properly parameterized StreamableHashMap. Yay!
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4005 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-10 02:42:23 +00:00
Michael Bayne 8d91fa9e7f Don't log a stack trace here.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4004 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-10 01:22:39 +00:00
Ray Greenwell 3cef4b5cec Prevent NPE when we process a pong that was destined for a different
DeltaCalculator.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4003 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-07 18:52:24 +00:00
Michael Bayne f7f9056ed2 Fall back to resource files before falling back to the classpath.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4000 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-05 19:40:12 +00:00
Michael Bayne 8177c1d410 Initialize our resource directory in the constructor so that clients that use
the resource_dir system property can start loading resources based on that
before they call initBundles().


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3999 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-04 19:22:43 +00:00
Michael Bayne ead3a989b2 Use the new FileUtil method.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3998 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-04 18:46:42 +00:00
Michael Bayne aec7a1ece2 Allow the resource manager to be run in "don't unpack yer bundles" mode.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3996 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-04 03:22:24 +00:00
Michael Bayne 2cc2e5fd00 Made it possible to make extended use of the playerStatus array.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3994 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-02 18:39:25 +00:00
Michael Bayne c696896f10 Allow the view to be restricted to a particular type of chat.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3993 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-31 18:15:32 +00:00
Michael Bayne 4911947a8e Robustness++.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3992 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-30 23:53:52 +00:00
Ray Greenwell fb913a6bba Go back to using the median value for our delta estimate.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3991 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-30 19:06:40 +00:00
Ray Greenwell 981deb3b6b Fixed two bugs with delta calculation:
- if a pong response took more than 5 seconds to receive, another ping
  would be sent. When the pong finally arrived the delta would be
  calculated using the most recently sent ping.
  Fix: don't send more pings while waiting on a pong.
- After a pong is received, the _deltas array is mangled while
  calculating the server delta, making subsequent pongs possibly
  overwrite earlier calculated deltas.
  Fix: calculate using a copy.

Also, changed the delta calculation to be the mean of the deltas rather
than the median. Left code in to do it both ways if this change was not
kosher...


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3990 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-30 01:08:32 +00:00
Ray Greenwell 07bc269f59 Bugfix for something that may never be needed in the wild: when an
AuthingConnection is replaced by a RunningConnection we need to transfer
over any associated overflow queue to the new connection object.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3989 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-30 00:09:55 +00:00
Andrzej Kapolka 4dc5202558 Update camera before scene graph. That way, nodes (like the unit status
display) can adjust to the camera position in their update 
methods without being a frame out of date.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3988 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-29 19:42:58 +00:00
Michael Bayne 581242814c Allow this chat view to be used with any speak service.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3987 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-29 01:01:59 +00:00
Ray Greenwell 6c3bc1cb78 Use the pan constants in a few more places to improve readability.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3982 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-25 22:46:00 +00:00
Mark Johnson 8298025a11 Added pan control for looping sounds
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3981 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-25 20:55:55 +00:00
Mark Johnson 5690a38096 Looped sounds were not checking to see if that sound type was enabled
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3980 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-25 20:49:22 +00:00
Mark Johnson b7e63c4b38 One more handy constant
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3976 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-24 22:25:03 +00:00
Ray Greenwell 02f1aaa904 Fixed bug with setting pan.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3975 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-24 22:19:16 +00:00
Ray Greenwell 9f4c7c1ae2 Use setPan() in the SoundKey constructor so that we bound to sanity the
pan value passed to us.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3974 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-24 04:12:38 +00:00
Ray Greenwell 6ab61243d9 Allow setting the pan for a sound.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3973 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-24 04:01:24 +00:00
Mark Johnson 70cb89d62d Bobble paths now with extra smoothness
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3971 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-24 00:13:06 +00:00
Mark Johnson b22dad2519 Moved this into the yohoho code base.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3970 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-22 19:00:18 +00:00
Andrzej Kapolka 1c7041a20e Added support for component masks.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3967 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-22 02:41:15 +00:00
Mike Thomas 95ff914ab6 Deal with blank tiles by returning a 1x1 blank pixel rather than a bunch of invalid values.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3965 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-21 02:32:27 +00:00
Michael Bayne d94866f3cf Pass empty postamble.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3964 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-19 19:46:36 +00:00
Michael Bayne 770b67e0b2 Added pickRandom(Collection).
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3963 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-19 02:32:51 +00:00
Michael Bayne 23f531fa42 Removed overflow queue logging as this has all been running happily for almost
a year since the refactor that inspired leaving this logging in.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3961 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-18 00:41:53 +00:00
Ray Greenwell 333d476a4a Use array cloning rather than creating a new one and copying into it.
(It may be the same thing under the hood, but our pal Occam would approve.)


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3958 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-17 22:29:00 +00:00
Michael Bayne 7422b1e986 Expose getColorRecord() as it is needed externally.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3955 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-17 00:56:57 +00:00
Mike Thomas b38081f60a Bugfix: Clusterrecords were potentially being removed from the hash in the middle of an iteration without using the iterator's safe removal method. This resulted in an array-OOB exception.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3953 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-16 18:45:40 +00:00
Ray Greenwell 3325b1d7a3 Rewrote getOccupantInfo(Name) to take advantage of a method that now exists
in PlaceObject.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3951 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-16 01:32:37 +00:00
Mark Johnson a933c1e4ab Added an function to be overriden if you want AI board summaries
automatically generated


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3948 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-15 03:03:56 +00:00
Ray Greenwell baa45c51c1 Added class translation support so that I could write a DSet converter.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3947 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-15 02:29:10 +00:00
Ray Greenwell ccb77db4fa Removed unused cruft.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3946 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-15 00:31:22 +00:00
Michael Bayne 9195817853 Ray will be proud of my micro-optimizery.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3943 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-14 02:24:07 +00:00
Michael Bayne 2aca17ee08 Have the WindowSlider wait two frames before starting to slide the window onto
the screen. In general the first frame is thrown off by the time it takes to
construct the window (which may be substantial) and the second might take a
while laying it out. After that though, we can smoothly slide things onto the
screen, and so we do.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3942 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-14 02:22:18 +00:00
Michael Bayne 196799d842 Wrapped long line.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3941 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-14 02:20:40 +00:00
Andrzej Kapolka 7a567e4adb Make the geometry node render to the opaque queue by default;
otherwise, everything under it will inherit the "SKIP" mode, 
which bypasses the render queues.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3940 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-14 01:43:07 +00:00
Ray Greenwell 7336f11d6f Shrink capacity in DSets upon element removal if the capacity is 8x larger
than it needs to be.
Broke streaming compatibility in order to be much more efficient over the wire.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3938 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-11 02:43:32 +00:00
Ray Greenwell a41128f93d Broke streaming backwards compatibility, only stream the ints that matter.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3937 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-11 02:42:21 +00:00
Michael Bayne 3f5aed3555 Let the vsync limit our frame rate instead of trying to do it by hand.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3934 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-09 23:54:26 +00:00
Ray Greenwell bdfecce767 A bit of simplification.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3927 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-08 23:21:47 +00:00
Michael Bayne 2841e90659 Load our initial configuration data synchronously. See comments for
explanation.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3925 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-08 22:16:01 +00:00
Andrzej Kapolka 3163825b29 For low frame rates, deal with moving over more than one leg per
update.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3923 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-08 01:40:09 +00:00
Ray Greenwell a0e9f70db3 Cleaned that method up a bit.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3922 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-08 01:03:57 +00:00