Ray Greenwell
fe645cf2b7
typofix
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1389 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-24 20:32:11 +00:00
Ray Greenwell
984fa75229
made getIsoDirection() and getProjectedIsoDirection() more accurate.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1388 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-24 20:15:04 +00:00
Michael Bayne
16d4bfabca
Demoted some log messages to debug.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1387 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-24 05:58:55 +00:00
Walter Korman
86a9d88ed8
Clear out our scene when the client logs off.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1386 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-22 21:48:44 +00:00
Walter Korman
ed25692d93
Deal gracefully with moving to a non-existent location.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1385 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-22 21:47:14 +00:00
Walter Korman
b4982af8bc
Clear out our location and inform observers that Elvis has left the
...
building when the client logs off. Use an ObserverList. Expanded
imports.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1384 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-22 21:46:53 +00:00
Walter Korman
3bc46992bf
Set a flag to note whether we're paused and check the flag to avoid
...
ticking when paused rather than un-registering and re-registering
ourselves as a frame participant to effect same.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1383 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-22 01:56:25 +00:00
Walter Korman
cd9131c551
Use an ObserverList to store and work with the frame participants.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1382 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-22 01:48:08 +00:00
Walter Korman
4acd5fcfdd
Added convenience class for observing animations and being notified when
...
each individual animation completes and when all added animations have
completed.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1381 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-21 17:59:11 +00:00
Michael Bayne
9d1b8a664c
Minor fixups to get things running (and to get Atlantissonne working as a
...
JWS app, whee!).
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1380 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-21 04:47:48 +00:00
Michael Bayne
c4bc5fb292
No need to prefix things now.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1379 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-21 04:46:44 +00:00
Walter Korman
5e273ce72e
Made the logoff command a constant.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1378 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-17 21:22:46 +00:00
Michael Bayne
325433a763
Created a path that follows a single straight line and does so using the
...
same math that the scrolling code does to scroll in a straight line.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1377 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-17 21:14:06 +00:00
Michael Bayne
814bd71637
Moved getDirection() into DirectionUtil.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1376 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-17 21:13:26 +00:00
Michael Bayne
a8caf98434
Added a version of distance() that takes Point objects.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1375 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-17 21:13:03 +00:00
Michael Bayne
db31cedbd8
Removed setVelocity() from the interface. Paths may or may not want to use
...
the notion of velocity and they can expose that interface to whomever
creates them. We don't need to set the velocity in the abstract.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1374 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-17 21:12:48 +00:00
Michael Bayne
9bb8f1b524
Moved routines to calculate orientation from point a toward point b into
...
DirectionUtil.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1373 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-17 21:12:14 +00:00
Michael Bayne
ee9ff7d46b
Enhanced debug logging.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1372 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-17 21:11:34 +00:00
Ray Greenwell
193cffe8ea
Don't freak out if a base tile is null: now all the off-screen base
...
tiles are null...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1371 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-17 19:07:47 +00:00
Ray Greenwell
0c664ce9b7
Use the new accessor methods for getting base tile ids from the model.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1370 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-17 19:07:04 +00:00
Ray Greenwell
bb6b0f56ca
Changed MisoSceneModel so that it knows about the view width and height.
...
It no longer stores base tiles that are not visable in the view,
in fact it stores the base tiles in an array almost half the size as the
fully expanded scene array, and this new smaller array is used everywhere:
when saving the scene, serializing it to the user, or saving it in
the database.
We must now use the getBaseTile() and setBaseTile() methods to access the
base tiles because they are stored in this compressed format.
Also removed the fringe layer completely from the MisoSceneModel.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1369 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-17 19:06:23 +00:00
Walter Korman
ab242f4a71
Fixed javadoc typo.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1368 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-16 18:17:27 +00:00
Michael Bayne
7ba2173174
Fixed bug whereby byte buffer that held scene data was still big enough to
...
accomodate the fringe layer and the way the ByteBuffer stuff works, it
writes out the whole enchilada even if there are a bunch of zeros at the
end.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1367 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-16 03:54:18 +00:00
Michael Bayne
95daba5bee
Offset not Offsets.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1366 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-16 03:00:29 +00:00
Michael Bayne
612166a572
Created an Icon implementation that can be used to render sprites anywhere
...
that icons can be rendered.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1365 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-16 02:58:59 +00:00
Ray Greenwell
b63c2aeeba
never output the fringe layer.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1364 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-16 02:25:19 +00:00
Ray Greenwell
9a55ae3989
oops: removed leftover debugging
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1363 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-16 01:53:36 +00:00
Ray Greenwell
0dc1f378e5
use the standard hitTest utility method.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1362 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-16 01:49:38 +00:00
Michael Bayne
b15d38b54d
Relegated a shitload of logging to DEBUG status.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1361 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-15 23:54:35 +00:00
Michael Bayne
a52d62d532
Modified ActionFrames because having it implement MultiFrameImage and just
...
"remember" which orientation it should be doing was not working out
because multiple sprites can share the same action frames and they would
step on one anothers' toes.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1360 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-15 23:54:05 +00:00
Michael Bayne
14e2166194
Added an applyToDelegates() that restricts its application to delegates
...
that derive from a particular class.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1359 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-13 23:03:24 +00:00
Michael Bayne
70c8067048
Don't consider modes with higher than 75Hz refresh.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1358 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-09 18:43:56 +00:00
Michael Bayne
78ec4ab84b
Temporary ship recolorizations.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1357 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-09 18:43:32 +00:00
Michael Bayne
34f9f3d8c6
Leave the images in 8-bit format when we return them from the tileset
...
bundle so that we can recolor them if we later desire.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1356 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-09 16:51:26 +00:00
Michael Bayne
2739abf915
Support compositing images that haven't already been expanded into
...
separate rasters.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1355 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-09 16:49:16 +00:00
Michael Bayne
609c6939da
Minor formatting edits that occurred in the course of debugging.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1354 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-09 16:48:34 +00:00
Michael Bayne
8ad4c1abea
Dooh! Graphics not Graphics2D.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1353 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-09 16:47:48 +00:00
Walter Korman
bd6146292f
Restore the original clip only after we've un-translated the graphics
...
context. Minor reformatting and enhanced toString().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1352 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-09 04:42:10 +00:00
Walter Korman
441e21d08c
Pack the main frame to fit its components rather than referencing width
...
and height property values.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1351 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-09 04:39:12 +00:00
Walter Korman
eb270593d1
Need to trim whitespace from the project jar files.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1350 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-08 23:04:07 +00:00
Walter Korman
f0ebe247e4
Fixed javadoc typo.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1349 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-08 21:15:26 +00:00
Michael Bayne
7a7309f347
Make the tiler cope if it's given a null source image.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1348 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-07 03:23:46 +00:00
Michael Bayne
04a1b4a38a
Created a helper class that can be used to render a tiled background image
...
that is generated by cutting up a small image into nine sections and using
each appropriately to create the expanded background.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1347 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-07 03:11:17 +00:00
Michael Bayne
18c4c32c85
Whoops, I booched it.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1346 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-07 00:57:49 +00:00
Michael Bayne
ac31caa28b
Added support for centering the media panel on a region of interest when
...
it is displaying in a space smaller than its desired view size.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1345 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-07 00:53:56 +00:00
Michael Bayne
581a2cce44
Don't choke if we're asked about game over and we've already shut down and
...
pitched our game object.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1344 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-07 00:49:24 +00:00
Michael Bayne
6dcdba4540
Added toString() to records; report which record we're failing to add when
...
such things happen.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1343 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-07 00:05:02 +00:00
Michael Bayne
181fa3269d
Only update ourselves in halt() if we actually stopped something.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1342 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-06 23:24:15 +00:00
Michael Bayne
320706e857
Do our recoloring in one fell swoop.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1341 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-06 23:23:27 +00:00
Michael Bayne
8063347815
Modified image recoloring to use Colorization objects since they now live
...
in the same package. Also added support for applying a set of
recolorizations all at once so that previous recolorings aren't borked by
subsequent recolorings (plus it's more efficient).
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1340 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-06 23:23:08 +00:00