Commit Graph

1415 Commits

Author SHA1 Message Date
Ray Greenwell b900adeeeb Moved in the setRateGame() method from PuzzleManager; have it set the
rated flag in the gameconfig.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1418 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-01 21:21:20 +00:00
Michael Bayne 7d9dc465a0 Updated debugging output.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1417 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-31 22:14:44 +00:00
Michael Bayne eb04dd7ea4 Added a method which can be used to determine if an object is currently
part of a transaction.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1416 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-31 20:47:55 +00:00
Michael Bayne 2740e670cb Modified LinePath so that separate time stamps are kept for the x and y
directions, otherwise movement in one direction will unnecessarily reset
the "move stamp" for the other direction in which we didn't actually move.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1415 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-31 20:47:32 +00:00
Michael Bayne af28864778 New interface related to repackaged path stuff.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1414 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-31 07:34:45 +00:00
Michael Bayne eb8e85c503 Test new path-scrolled media panel.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1413 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-31 07:34:23 +00:00
Michael Bayne 844b0672f9 Reference path stuff in new package.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1412 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-31 07:34:11 +00:00
Michael Bayne 823de4a1a0 Added means by which a view can be scrolled to follow a path.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1411 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-31 07:33:52 +00:00
Michael Bayne 3261cff412 Removed debug logging.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1410 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-31 07:33:33 +00:00
Michael Bayne ccbc47a7de Separated path code from sprite code so that we can have other things
follow a path (specifically, I want to allow the media panel to be
"scrolled" along a path).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1409 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-31 03:38:03 +00:00
Ray Greenwell f448ebe4f1 Create the polygon cache hash with custom parameters to the constructor
to optimize memory performance.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1408 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-30 22:21:51 +00:00
Michael Bayne 7c4f86e63a pathBeginning() and pathCompleted() need to be public so that we can
create paths outside the media.sprite package.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1407 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-29 23:27:14 +00:00
Michael Bayne e00610ecdb Ensure that we're loading our images through a BufferedInputStream.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1406 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-29 18:45:00 +00:00
Michael Bayne 3ff72e8a58 Fixed typo in comment.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1405 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-29 18:44:36 +00:00
Michael Bayne 587e89ef24 Created services for distributing delta times over the network which are
interpreted according to a globally established base time.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1404 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-28 23:14:06 +00:00
Michael Bayne 9b88def20b Took out the server ticks business because we're going to do delta times
in a more general purpose manner.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1403 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-28 22:54:43 +00:00
Michael Bayne 27866e0541 Moved configuration fiddling into config object.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1402 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-28 22:25:44 +00:00
Michael Bayne fc0300d80d Removed debug logging.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1401 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-28 22:07:13 +00:00
Michael Bayne 1492561985 Whoops, had that backwards.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1400 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-28 22:06:05 +00:00
Michael Bayne 2168067c74 Debug logging cleanup.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1399 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-28 22:05:52 +00:00
Michael Bayne 2f1a67077a Added code to establish the time delta between the client and server
clocks immediately following authentication.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1398 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-28 21:56:38 +00:00
Michael Bayne f9980f9353 Edits and notes on client/server time sync.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1397 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-28 21:56:07 +00:00
Michael Bayne f0d7b8642b Need to ensure that we don't claim that the communicator is gone until
after both the reader and writer have exited (otherwise the reader could
exit before the writer which would result in the client chucking its
reference to the communicator which could subsequently bite us in the ass
if anyone tried to reference the client's distributed object manager when
the writer finally exited and triggered all of the clientDidLogoff
callbacks). Multithreaded programming is fun!


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1396 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-27 01:37:07 +00:00
Michael Bayne 0ce79473fb Whoops, forgot to register the scene and zone directors as invocation
receivers.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1395 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-26 02:35:02 +00:00
Michael Bayne d0e1722083 Oh yeah, moveBody() needs to be static.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1394 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-26 02:29:13 +00:00
Michael Bayne 97197d49cc Added support for initiating a place/scene/zone transition from the
server; chat director no longer needs to wait until we're logged on to
register itself with the invocation director.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1393 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-26 02:24:46 +00:00
Michael Bayne 8a7a046df8 Modified safe interval to use IntervalManager services because there's a
single instance of the IntervalManager unlike the standard Java Timer
services which would require someone to have a timer instance to do the
scheduling of our safe intervals. Plus Ray will be much happier now that
the SafeInterval is not so flippant about reusing methods.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1392 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-24 21:38:24 +00:00
Michael Bayne 989a9867e0 Created a convenience class for executing code on the dobjmgr thread via
the standard Java timer services.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1391 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-24 21:03:15 +00:00
Michael Bayne b07fbe123b Added mechanism for fetching resource strings that doesn't complain when
they don't exist.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1390 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-24 20:33:30 +00:00
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