Commit Graph

4109 Commits

Author SHA1 Message Date
Michael Bayne 56216c27e8 Would you believe, more type-safety?
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4167 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-31 04:44:21 +00:00
Michael Bayne 83cffce259 Regenerated object definitions with the new hotness.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4166 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-31 04:16:57 +00:00
Michael Bayne 07ee188d82 Properly handle parameterized DSet fields in DObject declarations. Other
parameterized types will be easy to add, but I've not yet had occasion to use
them. We're all about "just in time" support.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4165 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-31 04:16:04 +00:00
Michael Bayne 331c3b285f A whole monkey load of type-safety and the addition of typedClone() which
returns a properly typed clone of the DSet in question.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4164 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-31 04:14:42 +00:00
Ray Greenwell 1ae124d584 Implementing clone() is apparently "required" for subclasses of Event.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4163 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-31 02:32:17 +00:00
Andrzej Kapolka 69c20acd43 Brought things up to date with the latest JME code.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4162 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-31 02:21:04 +00:00
Ray Greenwell e981a9eed9 Made PlaceView extend flash's IEventDispatcher, wired up something
that sorta behaves like our controllers in java. I might be able to make
this better.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4161 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-31 01:27:13 +00:00
Ray Greenwell 2766a6c1f9 Added a toString().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4160 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-31 01:16:19 +00:00
Ray Greenwell 9e3c46c7a5 Unwrap integers before assigning properties. God, I wish I could just
autotranslate at the network layer.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4159 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-31 01:15:58 +00:00
Michael Bayne 77adfc15ec Revamped the basic Presents client to support attempts to connect to the server
on multiple ports, falling back from one to the next as appropriate.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4158 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-30 22:12:15 +00:00
Ray Greenwell a3dfc741c6 Fixed up some event constructors that didn't have zero-arg forms.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4157 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-30 21:08:39 +00:00
Andrzej Kapolka 3a7fe70124 Clear out original-to-copy mapping after creating copy so that we don't
prevent the last copy from being garbage collected.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4156 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-30 16:09:14 +00:00
Andrzej Kapolka e04f7eb1f8 Unbind buffer from source before we attempt to delete it, allow
re-resolving clips waiting to be unloaded.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4155 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-29 02:53:50 +00:00
Ray Greenwell 6b3aba0225 Allow zero-arg construction (for unserialization).
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4154 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-27 01:51:33 +00:00
Ray Greenwell 074b7f4547 Added a note about a failed attempt at making things better.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4153 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-27 01:04:11 +00:00
Ray Greenwell cdd7a64b04 Renamed some "inner" classes, removed debugging lines.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4152 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-26 22:39:31 +00:00
Ray Greenwell fdfce50d01 Checkpoint, I've got an interactive 2d scene mostly working.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4151 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-26 21:54:34 +00:00
Ray Greenwell 9c33f1de53 A few bits of cleany/fixy.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4150 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-25 22:51:04 +00:00
Andrzej Kapolka 86fd2c05ae Use a gray background for contrast in the model viewer.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4149 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-25 20:12:20 +00:00
Ray Greenwell 9b11d03b46 Added a Cloneable interface, fixed up a few bits.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4148 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-25 01:18:04 +00:00
Andrzej Kapolka 4415b88e60 Keep track of the number of bound sources in ClipBuffer so that we don't
try to delete a buffer that's still bound to a source.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4147 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-24 22:35:17 +00:00
Andrzej Kapolka 0a2dd5b3c7 Go back to exporting only the nodes in the selection when something is
selected.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4146 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-24 21:28:06 +00:00
Ray Greenwell 26c928fc45 Use the valueOf factory methods pretty much everywhere.
These are the preferred way to get instances of Boolean, Byte,
Short, Character, Integer, Long, Float, and Double object.
It's always made sense for Boolean objects, and with 1.5 these factory
methods were blessed as the proper way to get instances unless one
absolutely needed a distinct object.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4145 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-24 01:24:24 +00:00
Ray Greenwell c143e93554 Spot stuff in AbjectScript.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4144 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-24 00:20:00 +00:00
Ray Greenwell a6746bc04f Update parser test.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4143 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-23 23:22:20 +00:00
Ray Greenwell 96f3d8e58e Avoid pointless usage of a server class. The first clue should have been
that it was a server class... ;)


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4142 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-23 23:16:14 +00:00
Ray Greenwell 412c02cbaa Whoops! I forgot to check in the new StageLocation class,
also added a log error message to my equals() logic error checking.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4141 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-23 22:12:30 +00:00
Ray Greenwell 99a97622a6 Refactored things so that the whirled.spot Location class is merely an
interface and specific games can define their own concept of a location.
Portal and SceneLocation now both have a Location instance within them.
All the whirled stuff is happy not knowing the details of the Location even
though it manages portals and other such goodies. The 'stage' stuff
does need to know, and yohoho uses the new StageLocation class
that is essentially identical to the old 'Location'.

SceneLocation previously extended Location, and there were a lot of places
where they were used somewhat interchangeably, or a SceneLocation and
a regular Location were compared. This shouldn't be done anymore and I've
left in code that should dump stack if it occurs, so that we can spot
these logic errors at runtime.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4140 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-23 21:44:05 +00:00
Ray Greenwell 869641562d Removed unneeded line.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4139 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-23 21:34:40 +00:00
Michael Bayne 1e5b2bd08d Allow an offset to be specified for not-quite centered windows.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4138 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-23 01:02:49 +00:00
Michael Bayne b13b1a54a4 Type the occupantInfo DSet.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4137 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-22 22:50:39 +00:00
Michael Bayne e9294b4a3d Fixed bug with argument handling.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4136 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-22 17:27:40 +00:00
Michael Bayne 9d6c809533 Allow the set of ports to be specified for the rejector.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4135 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-22 16:52:59 +00:00
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