Michael Bayne
bece90c4a3
Added getRecentFrameRate().
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4134 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-20 19:43:49 +00:00
Ray Greenwell
f7eb18460a
Began porting 'whirled'.
...
The basic whirled stuff is here; compiling and working.
'Spot' still to come.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4133 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-20 02:18:18 +00:00
Ray Greenwell
fb10d38232
Nixed pointless method.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4132 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-19 23:23:39 +00:00
Ray Greenwell
a22ca8b079
Simplified logging facilities.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4131 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-19 22:47:44 +00:00
Michael Bayne
98bbe02560
Don't freak out preloading clips if the manager failed to initialize.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4130 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-19 05:11:40 +00:00
Ray Greenwell
7ec9c8d642
Let's name inner classes with an "_" where Java puts a "$", and do
...
automatic name translation for those names.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4129 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-19 02:23:47 +00:00
Ray Greenwell
a2644d5c04
MessageListener adapter.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4128 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-19 02:22:51 +00:00
Michael Bayne
da4e12771f
A few twiddlings:
...
- set up the playerStatus array before gameWillStart() so that we can properly
note players that abandon ship before the game is going;
- fixed some raw collection usage;
- fixed some assumptions about IN_PLAY being the only state that means a game
is in play.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4127 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-19 01:56:54 +00:00
Ray Greenwell
0ac15b0e3c
Some bits and bobs: there are ResourceBundle and Locale classes in the mx
...
package, use those. The ResourceBundle stuff is not quite working now due
to bugs in beta3, but I'll loop back to it later.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4126 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-18 22:39:01 +00:00
Andrzej Kapolka
8de54d537c
Update state when buffers are processed so that we know when streams
...
end. Added an isPlaying method to check state.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4125 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-18 20:55:45 +00:00
Michael Bayne
9d84542e49
Add support for a base gain level to be applied to all sound effects.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4124 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-17 19:05:39 +00:00
Mark Johnson
048338efa4
Pulled out functionality to allow overriding.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4123 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-17 00:46:56 +00:00
Ray Greenwell
64e87bb907
Added the keys() function to the Map interface, replaced instances of
...
SimpleMap with HashMap. Discarded SimpleMap.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4122 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-16 21:06:06 +00:00
Ray Greenwell
4aa8f5a5d5
- Method comments.
...
- Track the size of non-simple keys separately so that we really know when
to resize the map.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4121 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-16 20:41:04 +00:00
Ray Greenwell
f778c1e518
- Created a Map interface.
...
- Renamed HashMap Hashtable, because I wanted a version without ties to
mx.* code. User-defined hashing functions may be specified.
- Created a subclass of Hashtable called HashMap which uses
functions in mx.utils.ObjectUtil to hash non-Hashable complex keys.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4120 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-16 19:02:24 +00:00
Ray Greenwell
470c46acf5
Oop, clear complex entries when we clear.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4119 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-16 01:53:23 +00:00
Ray Greenwell
8604a4ac6a
Various cleanuppery.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4118 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-16 01:51:01 +00:00
Ray Greenwell
c203c0e861
A HashMap in actionscript that can use arbitrary objects as keys.
...
Internally, three different things may be done for storage:
- Simple keys can utilize the Dictionary class, we just use one of those
inside the map.
- If the key implements Hashable, we can hash it.
- Otherwise, use mx.utils.ObjectUtil to generate a hash for any other key and
also to compare the keys. Keys are then wrapped in a KeyWrapper object
that implements Hashable. This last case will also handle null as a key.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4117 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-16 01:49:51 +00:00
Andrzej Kapolka
0224c33c45
Update streams in reverse order so that they can dispose of themselves
...
safely.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4116 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-15 04:04:06 +00:00
Michael Bayne
bd8d25b6dd
Added arrow key actions for panning the camera as well.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4115 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-13 03:36:45 +00:00
Ray Greenwell
eedebca87e
Removed dead import.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4114 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-12 18:14:47 +00:00
Ray Greenwell
d123c61606
Use the ArrayStreamer to stream regular Arrays as well.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4113 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-11 23:58:21 +00:00
Andrzej Kapolka
a9567278ea
Added ability to perform simple file queueing.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4112 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-11 02:09:54 +00:00
Andrzej Kapolka
790ddafb30
On second thought, cancel that; since we're not unbinding and rebinding,
...
there's no point in keeping the data buffers around.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4111 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-11 00:01:42 +00:00
Andrzej Kapolka
10c6d854f5
Added support for Ogg clips, which are decompressed when bound.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4110 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-10 23:44:11 +00:00
Andrzej Kapolka
b804f12d5d
Basic mechanisms for fading in and out.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4109 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-10 21:12:44 +00:00
Ray Greenwell
164d746072
Turns out they did fix the describeType bugs, but also changed the format
...
of the output.
Update code to recognize the new format and stop working around the old bugs.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4108 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-10 21:11:56 +00:00
Andrzej Kapolka
e732fe48aa
Added support for streaming Ogg files. Cross-fading still to come.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4107 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-10 19:47:40 +00:00
Ray Greenwell
fe3350dc3c
More streaming fixups.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4106 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-10 02:35:01 +00:00
Ray Greenwell
b82108ecea
Streaming fixups on the path towards getting things working in beta3.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4105 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-10 00:40:15 +00:00
Ray Greenwell
e100ef4faf
Updated to match API changes in Beta3.
...
InvocationRegistration had a constructor called Registration. I wonder if
that was causing the compile error with beta2.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4104 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-09 23:03:47 +00:00
Ray Greenwell
ff674f818f
Beta 3 is out! They removed the built-in StringBuilder class, so I made
...
my own for now that just does what I need it to.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4103 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-09 23:01:15 +00:00
Andrzej Kapolka
8e42599c6d
Added method to fast-forward animations, beginnings of support for model
...
variants.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4102 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-08 23:30:07 +00:00
Andrzej Kapolka
bfa0dd1749
Added light rotation dialog to model viewer.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4101 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-08 21:48:43 +00:00
Ray Greenwell
7bdf7aba88
Occam's razor.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4100 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-08 21:37:54 +00:00
Ray Greenwell
490dab5780
Added an ImageUtil with some basic utility functions.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4099 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-08 21:31:24 +00:00
Andrzej Kapolka
9ead46cc6d
Use alternate method to retrieve normals.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4098 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-08 21:03:30 +00:00
Michael Bayne
05fe7f8679
Don't choke if getFrequency() returns 0. We may want to check for that
...
specifically as this doesn't do the right thing for something like 50fps, but
does anyone actually use less than 60?
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4097 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-08 20:58:48 +00:00
Andrzej Kapolka
f59fbac2f4
Instead of 60, try using the refresh rate as the target FPS.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4096 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-08 18:06:24 +00:00
Michael Bayne
b31556e388
We need to dispose() our clip buffers on the main thread.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4095 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-08 16:51:48 +00:00
Michael Bayne
f07c7307c9
Cope if something in the underlying sound system freaks out.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4094 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-05 23:26:33 +00:00
Andrzej Kapolka
c8fa910ffe
Notify listeners that the old animation was cancelled when we start a
...
new one.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4093 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-05 22:17:36 +00:00
Mike Thomas
053c1bfe31
Use paint instead of getSnapshot on underlying mirages in composite mirage as it might save us creating an image object.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4092 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-05 01:30:14 +00:00
Mike Thomas
81d26ec622
Dispose of graphics object when done in getSnapshot, and use simpler version of drawImage.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4091 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-05 00:17:42 +00:00
Mike Thomas
2b98453e38
New type of mirage that simply draws a list of mirages one on top of the other(s).
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4090 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-04 23:41:41 +00:00
Michael Bayne
dac87ee10b
Type-safety!
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4089 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-04 05:35:19 +00:00
Mark Johnson
edd74d4014
Removed debug logging.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4088 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-04 00:39:46 +00:00
Mark Johnson
47ac305684
Allow the moveTo used while recovering from a failure to get the place
...
object in the SceneDirector to be overriden. The ZoneDirector needs to
inform its listeners when a zone change is made during this failure
case.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4087 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-04 00:37:54 +00:00
Andrzej Kapolka
3db1f2837f
Set log file redirect before initializing.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4086 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-03 21:55:42 +00:00
Andrzej Kapolka
491caeae20
Moved model compile method from Ant task to an application class to
...
avoid referring to Ant classes in the client jars.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4085 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-03 21:29:38 +00:00