Michael Bayne
95b19feb51
The scene metrics are now *much* simpler.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2433 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-19 22:37:57 +00:00
Michael Bayne
1cb3d1edb5
Added floorDiv().
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2432 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-19 22:28:28 +00:00
Michael Bayne
55ecaf885a
Out with the obsolete. The "oh, so" obsolete.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2431 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-19 20:44:10 +00:00
Michael Bayne
299e0845bb
Center on the center of the scene when it is first set. Adjust our view
...
bounds to preserve the current center point when we are resized. Deep
sixed "bounded" and some other needless fiddling.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2430 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-19 17:06:08 +00:00
Michael Bayne
bdd1697a41
Don't repaint when we rethink, rearranged some things so that we can avoid
...
recomputing visible objects, etc. if no blocks were loaded or flushed.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2429 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-19 02:01:56 +00:00
Michael Bayne
7772cdc175
Make our bounds available.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2428 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-19 02:01:08 +00:00
Michael Bayne
626d59a718
Apparently revalidating ain't going to do it, so we recenter and rethink.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2427 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-19 01:04:57 +00:00
Michael Bayne
e6a1ebbd80
We need to recreate our back buffer if our frame's bounds change.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2426 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-19 01:04:29 +00:00
Michael Bayne
3abbd1c8af
Removed old testing code. Whoopskidoodle!
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2425 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-19 00:56:35 +00:00
Michael Bayne
d398c84a7b
Pass the mouse event so that other information can be obtained.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2424 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-19 00:25:13 +00:00
Michael Bayne
f0a1bf2311
Don't can all mouse button 1 presses; allow objects without actions to
...
become the hover object if derived classes really want it (like the
editor).
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2423 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-18 23:19:13 +00:00
Michael Bayne
ffb9e3b4e4
Added code to enable bounds checking of calls to index. Not enabled by
...
default because we can generally figure it out from the NPE and this gets
called a crapload so we don't want to negatively impact performance.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2422 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-18 23:18:30 +00:00
Michael Bayne
6e967c699c
Was calculating footprint dimensions incorrectly.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2421 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-18 23:17:33 +00:00
Michael Bayne
7d58b4ed93
Fixed incorrect argument ordering.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2420 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-18 22:59:18 +00:00
Michael Bayne
81f90d1ee6
Fix bounding polygon calculation.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2419 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-18 22:59:04 +00:00
Michael Bayne
a4d16abb4c
Added code to support scene editing: adding and removing objects, updating
...
base and fringe tiles.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2418 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-18 18:33:31 +00:00
Michael Bayne
3a7f7f6bdb
Allow an object to be relocated (which requires recalculation of our
...
cached screen bounds, etc.).
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2417 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-18 18:33:07 +00:00
Michael Bayne
1182241d57
Removed highlighting code; cleaned up some other stuff.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2416 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-18 18:32:24 +00:00
Michael Bayne
50bf565485
Canned setBaseTiles().
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2415 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-18 18:31:21 +00:00
Michael Bayne
27184f6ddd
Fixed bug in footprint calculation.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2414 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-18 18:30:57 +00:00
Michael Bayne
d5701962a3
The big fat bernie revamp! Er, big fat miso revamp rather:
...
- Combined SceneViewPanel and IsoSceneView into one happy panel.
- Ditched the DisplayMisoScene notion; the new MisoScenePanel now manages
resolved scene information (like base, object and fringe tiles) itself
so that it can...
- ...support scrolling scenes by keeping blocks of resolved base, fringe
and object information loaded only for what is potentially visible
rather than for the whole scene.
Other things were surely cleaned up or broken in the process to keep a
keen eye out.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2413 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-17 19:21:17 +00:00
Michael Bayne
3de98670db
Give scene managers the opportunity to do something when a player
...
traverses a portal and give them the ability to position the player other
than on top of the entering portal when entering.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2412 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-17 19:17:07 +00:00
Michael Bayne
025cb91668
Ensure that any media inserted between the call to tick() and the call to
...
renderAllMedia() is ticked in all circumstances and ticked exactly once.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2411 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-15 21:27:22 +00:00
Michael Bayne
7aeae0d4c3
Change removeAnimation() to abortAnimation(); that's what is happening.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2410 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-15 00:39:20 +00:00
Ray Greenwell
3bdeed559f
- Do time math with the last timestamp rather then precomputing the next
...
timestamp so that we can switch frame rate on the fly.
- added setLength() to use a subset of the sequence
- added setResetOnInit() so that the sequencer can be swapped into a new
animation without being reset if desired.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2409 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-14 20:36:16 +00:00
Ray Greenwell
c0f4ed2777
progress towards duty feedbackers
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2408 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-14 17:16:23 +00:00
Michael Bayne
bae9fdf1e0
Exorcised scene width and height; make models unbounded by default;
...
cleaned up AStarPathUtil.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2407 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-12 02:14:52 +00:00
Michael Bayne
d933605343
Moved object handling into base MisoSceneModel, created new
...
SectionedMisoSceneModel for storing info on a section of a larger scene.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2406 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-12 02:14:10 +00:00
Michael Bayne
98e48001dc
Added bound().
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2405 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-12 02:06:35 +00:00
Michael Bayne
a8c6d62913
Immediately update our scene location when we are requested to track a
...
pathable.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2404 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-12 01:26:29 +00:00
Michael Bayne
1bf86bf495
Cope with lack of game object in a few methods.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2402 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-11 21:29:21 +00:00
Michael Bayne
baa595d65c
Not to freak out if we don't yet have _playerOids.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2401 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-11 21:22:30 +00:00
Michael Bayne
fca168018e
Don't freak out if we can't load our source image.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2400 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-11 18:48:05 +00:00
Michael Bayne
5dd245dadf
Make sure our socket connection is closed if authentication fails.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2399 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-10 22:02:59 +00:00
Michael Bayne
ef04c6e873
Track time spent invoking units and report it in the server report log.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2398 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-10 21:04:55 +00:00
Michael Bayne
1b1c38c998
Added tracking and reporting of messages sent and received; shaved 20 off
...
loc by combining message dispatch into one method.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2397 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-10 18:12:16 +00:00
Michael Bayne
36624d96ac
Finally got around to making compound events actually stick together until
...
they arrive at the client. Mmm... network efficiency++.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2396 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-10 17:48:42 +00:00
Michael Bayne
2a554f1569
Added support for object streaming debugging.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2395 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-10 17:47:45 +00:00
Michael Bayne
9c113eb8dc
Not to choke if we get passed a null image.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2394 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-09 22:02:20 +00:00
Michael Bayne
6ea4264eb4
If we fail to load an image, create a blank one in its stead.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2393 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-09 22:02:05 +00:00
Ray Greenwell
46b8aace97
Don't log a bunch of crap for sounds that are missing during a LOCK
...
unless verbose logging is turned on.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2392 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-08 20:30:44 +00:00
Ray Greenwell
758d0a4456
Give mute feedback
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2390 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-08 02:49:43 +00:00
Ray Greenwell
77633366cc
Handle not finding a music player for a song gracefully.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2389 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-08 01:46:16 +00:00
Michael Bayne
d987d66bf3
Whatever reason we had for assuming all off-screen tiles are passable,
...
that can't possibly be the right way to handle it. If you can't get there
by staying on the screen, you're not going.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2388 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-07 23:53:41 +00:00
Michael Bayne
4e1b4a00d8
Allow turning off the rendering of objects.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2387 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-07 23:32:47 +00:00
Michael Bayne
036104a7d5
If there's no base tile, it sure as hell ain't passable.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2386 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-07 22:04:39 +00:00
Michael Bayne
8d49b3cf7c
Log message edits.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2385 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-07 21:50:04 +00:00
Michael Bayne
7c2c067439
Fill in black if there's no base tile at all.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2384 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-07 21:43:00 +00:00
Michael Bayne
8663535d5a
Exclude the experimental music players.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2382 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-06 04:36:01 +00:00
Ray Greenwell
728ddcf575
only log that the queue is full (and the full damn contents of the queue)
...
when verbose logging is on.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2381 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-05 20:48:04 +00:00