Commit Graph

3801 Commits

Author SHA1 Message Date
Andrzej Kapolka 7d46f81392 The problem was that setQuad was being called in the second constructor
after updateRenderState in the third constructor, so the quad's render 
state didn't include the alpha state.  I changed it so that 
updateRenderState is called in setQuad.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3859 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-02-15 22:19:36 +00:00
Michael Bayne bbc4dcad31 Added toString() to TimeFunction; moved AlphaState onto the quad being faded
rather than the node containing the quad, which shouldn't really make a
difference.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3858 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-02-15 21:01:39 +00:00
Ray Greenwell 892bdce01d Old man Occam came a knockin'.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3857 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-02-15 04:05:40 +00:00
Ray Greenwell 174fa1b9c6 Use PrivilegedExceptionAction to do privileged actions that might throw
an exception.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3856 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-02-15 04:04:24 +00:00
Ray Greenwell 1d36299e3c Some work on streaming.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3855 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-02-15 01:41:14 +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
Mike Thomas f449e2e77d Changed Exceptions to InvocationExceptions to invoke translation of error reason messages.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3852 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-02-14 21:57:39 +00:00
Mike Thomas 402de06e07 Added float-based weighted random selection function.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3851 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-02-14 21:46:53 +00:00
Mike Thomas ccce88790a Function wasn't informing listener of failures.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3850 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-02-14 21:46:28 +00:00
Ray Greenwell 4d7fb64b8c More progress.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3849 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-02-14 04:07:02 +00:00
Ray Greenwell 8366c150f4 Progress on the presents client.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3848 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-02-13 22:07:50 +00:00
Michael Bayne ad7e4f6be6 Added a helper class for sliding windows onto and off of the screen. Modified
the fade effect to automatically remove itself when it's done.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3847 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-02-10 04:45:12 +00:00
Ray Greenwell 85d56cceec Some more progress.
I still need to work on the Streaming, but I've figured out how
to do a bit of introspection which will be necessary when streaming an array.
Started working on the client classes, did ClientObserver and SessionObserver
stuff using flash's event notification system.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3846 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-02-10 03:44:20 +00:00
Michael Bayne 132dad93d2 Added a mechanism to skip to the end of the current camera path. It's sort of a
hack in that it just fakes an update to the path as if 100 seconds had elapsed,
but that essentially does just what we want and is so simple.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3845 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-02-10 02:24:58 +00:00
Michael Bayne 0bd48b4b6a Provide default translations for the one Parlor game message.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3844 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-02-09 19:22:34 +00:00
Ray Greenwell 90063d85cc Missed a spot (there's no 'throws' in actionscript..).
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3843 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-02-09 03:40:16 +00:00
Ray Greenwell 3f9c6c6081 Beginnings of the ActionScript 3.0 client: checkpoint checkin.
There's a long way to go and I think I need to rethink the way streaming
will work, but this is a start. These classes all compile under
the flex environment.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3842 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-02-09 03:33:58 +00:00
Andrzej Kapolka fe47f6a478 Float.MIN_VALUE is the smallest positive value, not the smallest
negative value.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3841 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-02-08 00:03:28 +00:00
Andrzej Kapolka 4849d344e1 Added optional target orientation to PanPath.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3840 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-02-07 22:37:40 +00:00
Andrzej Kapolka 44bc8722eb Removed redundant call to onFrameChange.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3839 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-02-07 21:45:08 +00:00
Andrzej Kapolka 593ee3a54d Added an explicit axis parameter (as opposed to using the up vector at
each time step) to avoid camera roll.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3838 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-02-07 21:43:26 +00:00
Michael Bayne d822c597b3 Allow the FadeInOutEffect to be used on arbitrary quads.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3837 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-02-07 01:33:46 +00:00
Michael Bayne e9be71fdf2 JME uses a separate Z order to determine how to sort ortho geometry.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3836 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-02-06 02:33:16 +00:00
Michael Bayne 6f90df64f8 Added getFrameTime().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3835 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-02-06 02:32:42 +00:00
Michael Bayne 965b44d253 Updated standard source header. Created a time function mechanism that can be
used to easily plug in different methods of smoothly varying a value over time.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3834 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-02-06 01:40:44 +00:00
Michael Bayne f749460fe7 Minor rearrangement.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3833 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-02-05 23:08:55 +00:00
Ray Greenwell 17987537f4 Provide a convenient method for indicating that a listener does not
need to be responded to. It turns out that a listener may not be
a marshaller if a server entity is calling a service request method
directly.  The convenience method handles this and is also cleaner looking
for callers.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3832 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-02-04 03:49:53 +00:00
Michael Bayne 12a4f4bb7e Oops, we need to be able to add and remove observers.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3831 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-02-04 03:30:44 +00:00
Michael Bayne 428afd4ca0 Add support for being notified when a camera path is complete.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3830 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-02-04 03:24:44 +00:00
Ray Greenwell 47f0772412 Protect against NPE if we try to send cards to an absent player.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3829 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-02-03 19:11:20 +00:00
Ray Greenwell 2f611366d9 Send the oid of the applicable game with the Hand.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3828 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-02-03 19:09:49 +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
Andrzej Kapolka 56b985beb4 Added a method to reset the camera's orientation.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3826 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-01-31 00:05:34 +00:00
Andrzej Kapolka 63b4a49773 Added a tension parameter to control the sharpness of the curve.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3825 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-01-30 19:50:10 +00:00
Ray Greenwell eb2635770e Commented out extremely common and innocuous log entry.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3824 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-01-30 19:18:11 +00:00
Andrzej Kapolka e81084a588 Added spline path for camera.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3823 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-01-28 01:35:08 +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
Michael Bayne 3dde8d448a Fix up the way we create our display to play nicely with the JmeCanvasApp.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3821 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-01-25 20:31:47 +00:00
Ray Greenwell abb941223d Protect our servers from a certain DOS attack: telling the server
that you're sending a giant array and having it try to allocate it.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3820 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-01-25 02:39:18 +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
Ray Greenwell 765fdc8edf Optimization: grow ourselves to the needed capacity prior to
fully reading elements off the stream to avoid repeatedly allocating
storage arrays and copying or rehashing the elements.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3818 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-01-23 23:08:02 +00:00
Mike Thomas d38c31027c Fix some stylistic stuff.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3817 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-01-23 21:11:15 +00:00
Mike Thomas c866377681 Bugfix - This MAY be the elusive sync bug(s). Puzzle controller queues progress events, then sends them periodicially on a tick. The round-id at the time of the tick is used to make sure stale events aren't sent. BUT, the queue never used to be cleared when the round changed, so stale events already in the queue could still be sent. Now clearing queue on round change.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3816 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-01-23 19:09:45 +00:00
Ray Greenwell b994d709d3 A possible fix for someone who is having problems with the card flipping:
http://forums.puzzlepirates.com/community/mvnforum/viewthread?thread=30539&firstunread=yes


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3815 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-01-20 01:25:05 +00:00
Michael Bayne 73e0a05b5f An internal error should always be accompanied by a log message. We could rely
on the adpater user to sort that out, but it's easier to just log things here
and save everyone time and effort.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3814 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-01-19 22:45:11 +00:00
Ray Greenwell 96f017fc3e Added getCards() convenience method.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3813 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-01-19 21:50:53 +00:00
Ray Greenwell 94ee4c7e9f Fixed two last cases of ignored listeners that ice testing has uncovered.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3812 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-01-19 01:50:42 +00:00
Ray Greenwell 918c61c77e Another place where we ignore a listener.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3811 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-01-19 01:43:12 +00:00
Ray Greenwell 78f7b7f3e0 Avoid logging spurious warnings about ignored listeners that weren't
really ignored, but just never got responded to due to a bigger problem.
(The bigger problems are already logged.)


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3810 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-01-19 01:40:05 +00:00