Commit Graph

3610 Commits

Author SHA1 Message Date
Michael Bayne c0a244cb8d Hold onto your hats kids, it's the biggest little refactor this side of the
Pecos. I'll sort out the per-project niggling bits in just a moment.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4209 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-06-23 18:12:45 +00:00
Michael Bayne 5ceed9c8b2 Nix the use of enum which is freaking out Proguard/Retroweaver. We'll sort it
out later when we're not in the middle of an Ice release.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4208 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-06-21 19:43:50 +00:00
Michael Bayne 2f3ecdf86d Some backwards compatibility bits.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4207 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-06-21 08:40:20 +00:00
Michael Bayne 0d887c9ede Cope with a lack of a KeyboardManager, base our idle check time on our minimum
idle time.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4206 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-06-21 08:14:45 +00:00
Michael Bayne 85d60b6520 Factored out the idle tracking code from Yohoho.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4205 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-06-21 07:23:23 +00:00
Ray Greenwell aa5f38be5d Changed the way the Authenticator is created.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4204 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-06-21 03:47:32 +00:00
Mark Johnson 8093513183 Have play call StartObserver.soundStarted with a null sound when the
sound fails to play for any reason.  We use the StartObserver to time 
other effects with sounds, however if the sound isn't going to play, we 
still want the other effects to go ahead.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4203 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-06-21 02:49:46 +00:00
Andrzej Kapolka 3fcc53f1b9 Make this method public, as it's now an override of a public method.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4201 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-06-20 20:10:42 +00:00
Andrzej Kapolka dc3bcddeb1 Added basic JME import dialog to model viewer. With the latest version
of LWJGL, the AWT canvas releases its OpenGL context after rendering.  
Rather than redesign all event handling to take place in the update 
method, I put in a hack to grab the context back.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4200 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-06-20 19:36:23 +00:00
Michael Bayne 78a8d6fe62 Nix superfluous log message.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4198 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-06-17 23:12:21 +00:00
Michael Bayne 9e0eac5944 Handle non-Joonix file paths properly.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4197 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-06-17 05:07:26 +00:00
Mark Johnson d2b9e351ba Genericized StreamableArrayList
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4196 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-06-17 00:31:25 +00:00
Michael Bayne 6c8b75af98 We call into a library that expects StringBuffers.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4192 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-06-13 23:06:44 +00:00
Ray Greenwell 79c6427c21 StringBuffer -> StringBuilder.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4191 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-06-13 22:42:20 +00:00
Andrzej Kapolka c90819ca69 .xml -> .mxml
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4189 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-06-13 18:46:45 +00:00
Michael Bayne 6deb8cd2cf RandomUtil moved to samskivert library.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4188 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-06-13 18:03:48 +00:00
Ray Greenwell f7983050e9 Modernized something that must have been around prior to the ability to
post Runnables to the omgr queue.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4187 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-06-12 23:07:25 +00:00
Andrzej Kapolka e6cad91066 When transforming bones into mesh space to deform the skin, use the
mesh's transform in the reference position rather than its current 
transform.  Otherwise, when we try to scale the mesh up, the bones get 
scaled down, and the scale goes away.  Also fixed a couple minor bugs in 
the viewer.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4182 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-06-08 01:45:40 +00:00
Michael Bayne 7090277d99 Revamped the frame manager to support operating on non-JFrames where our Window
and our RootPaneContainer might be different things (the Window would naturally
contain the RootPaneContainer but wouldn't necessarily be the same component).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4181 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-06-07 21:54:12 +00:00
Andrzej Kapolka 04af1ed28a Added support for animation sequences to the model viewer.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4180 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-06-07 20:15:19 +00:00
Andrzej Kapolka fab75fbd21 Added camera panning and recenter command to model viewer.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4179 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-06-07 19:35:06 +00:00
Andrzej Kapolka 6c6061c62a Fixed lighting (i.e., removed it) on pivot rendering.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4177 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-06-07 18:29:53 +00:00
Andrzej Kapolka b7ca8f50f4 Changed animations to allow support for morph style (linear blend
between deformed meshes) and flipbook style (simple switch between 
deformed meshes) in addition to skin style (meshes deformed in real 
time).  Currently, the resolution is the same as the animation frame 
rate.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4176 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-06-06 23:00:43 +00:00
Michael Bayne 51eb40d77f The natural next step is playersAllHere(), not startGame(). Normally all
players report ready and we then call playersAllHere(). If we have partial
no-show, playersAllHere() will never have been called, so we want to call that
and let that call startGame() (or do custom stuff for games that want to do
custom stuff).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4175 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-06-06 15:51:48 +00:00
Andrzej Kapolka a2b6ddd2db Copy useDisplayLists setting to instances.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4173 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-06-06 01:43:52 +00:00
Andrzej Kapolka e3f54a52bb Added ability to quantize animations to a set of preskinned meshes.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4172 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-06-06 01:37:34 +00:00
Mike Thomas cd8c665cf5 Pull out the ClientManager creation so it can more easily be overridden.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4171 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-06-06 01:01:07 +00:00
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
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
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
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
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
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
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 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 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
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
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