Commit Graph

2342 Commits

Author SHA1 Message Date
Michael Bayne c69a7b0f7c Allow the frame to be constructed with a graphics configuration.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2346 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-30 00:00:00 +00:00
Michael Bayne 9c54590c92 We're not generating that colorization for our health. We need to return
it to the caller!


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2345 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-29 02:30:14 +00:00
Michael Bayne 30b02ababe Cleaned up the code to be more sensible.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2344 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-27 23:45:04 +00:00
Michael Bayne 5c0879a964 Whoops, spoke to soon. That wasn't really a bug, just a misunderstanding.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2343 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-27 23:25:59 +00:00
Michael Bayne 8876bd90e4 Fixed a bug pointed out by Muffy. We love more eyes on the code!
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2342 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-27 23:20:55 +00:00
Michael Bayne f0ef1a95bb Don't resubscribe if nothing changed.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2341 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-27 17:24:55 +00:00
Michael Bayne 9532dbe02a Whoops, have to add them in the proper order otherwise the target walks
over to the person who started the cluster rather than vice versa.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2340 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-27 17:13:38 +00:00
Michael Bayne dfe0e7aa5e Report to the caller (by excepting) when a cluster is full; demoted log
messages to debug.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2339 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-27 16:45:30 +00:00
Michael Bayne 5bf27ca281 Whoops, wrong error code.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2338 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-27 16:04:26 +00:00
Michael Bayne 07a426fe9b Make cluster extend Rectangle so that we get all of its lovely methods.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2337 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-27 15:57:47 +00:00
Michael Bayne c8b1404483 New error code.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2336 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-27 00:10:29 +00:00
Michael Bayne 4be173c19f More cluster fiddly.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2335 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-27 00:10:08 +00:00
Michael Bayne d29fef39ba Added getFootprint().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2334 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-26 23:42:41 +00:00
Michael Bayne 3ebff402de Provide an extensible way (what a fancy way to describe a protected
method) for validating whether a body can stand at their requested
location.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2333 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-26 22:34:24 +00:00
Michael Bayne 0c6a54380a Added canAddBody() and locationForBody().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2332 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-26 18:18:29 +00:00
Michael Bayne 590c993599 Include the bounds in the cluster rather than a center and an occupant
count. The client can figure out the occupants if it needs them.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2331 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-26 02:37:08 +00:00
Michael Bayne 5d6883c75c Revamped location and cluster handling so that we can implement the fancy
new dynamic cluster system all good and proper.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2330 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-26 02:06:06 +00:00
Michael Bayne a3ff1486e0 Regenerated minus the ever changing timestamps.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2329 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-26 01:35:41 +00:00
Michael Bayne 253079107c Make object base dimensions available without having to instantiate an
object tile.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2328 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-26 00:18:55 +00:00
Ray Greenwell a8ca78bde2 toArray now returns Object[] instead of Object
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2327 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-26 00:16:03 +00:00
Michael Bayne 0bd5d6728c Whoops, left in some debug logging.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2326 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-25 23:06:51 +00:00
Michael Bayne 0b0757b98c Fixed up the goddamned repaint fuckola. Fucking pain in the ass, all this
Swing, AWT and frame manager interaction.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2325 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-25 23:05:58 +00:00
Michael Bayne b281725f29 Characters must be oriented with a valid direction code.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2324 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-25 20:53:16 +00:00
Michael Bayne be1f2eb1fc Further whipping of dynamic clusters into shape.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2323 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-25 19:28:59 +00:00
Michael Bayne b66e0d2584 Keep track of whether or not anything was painted each frame and avoid the
extra effort of copying the back buffer to the screen if nothing actually
changed.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2322 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-25 19:06:54 +00:00
Michael Bayne 0dd5966c9a Extend SimpleStreamableObject so that we get a useful default toString().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2321 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-25 03:16:11 +00:00
Michael Bayne 8fef03b84e Make where() not freak out if we do not yet have our place object.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2320 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-25 01:12:29 +00:00
Ray Greenwell 2c7c0107e2 - don't "lock" sounds when we're using the test sound directory
- allow random picks from among some variants when using test sounds
- fixed default sound for JWS users so that it loads from a bundle


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2319 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-24 19:35:18 +00:00
Ray Greenwell 153ed8d1b9 Added a runtime adjust for verbose logging of sound playing
(useful when working with testsounds).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2318 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-23 04:10:50 +00:00
Michael Bayne dec635a9a4 That feller needs to be transient.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2317 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-23 02:20:49 +00:00
Michael Bayne b975698d02 No need for nestable exception. It's standard issue now.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2316 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-23 01:54:20 +00:00
Ray Greenwell 639e08b36a Specify a fallback sound path in the constructor to be used if
a sound cannot be found.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2315 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-22 18:14:00 +00:00
Michael Bayne f6c16e6faf Allow preferred width or height to be overridden since it seems that
JScrollPane will happily return some insane value when it's wrapping an
empty JList.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2314 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-22 01:56:09 +00:00
Ray Greenwell 712d3f8ab5 Two GameConfigs are not equal unless they are of the exact same class.
This was originally in yohoho's PuzzleConfig, but apparently got deleted
a while back, and this is where it should be anyway.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2313 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-20 19:50:35 +00:00
Ray Greenwell d53b707e4f Can init the mutelist with a String[] of muted players.
Can get a String[] of the currently muted players.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2312 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-20 00:46:34 +00:00
Michael Bayne 2662abde69 Screw the damned "generated on" stamps since they end up generating
different files when the source interface hasn't changed and CVS sticks a
nice little "last checked in" timestamp in there anyway.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2311 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-19 02:03:09 +00:00
Ray Greenwell 6eb6289a48 return -1 rather than puke if invalid weights are specified for
getWeightedIndex.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2310 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-18 19:38:30 +00:00
Michael Bayne 0bddc6767f Added basic hook for portal traversal access control.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2309 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-17 19:34:26 +00:00
Michael Bayne 36bcb083ca Added a constructor that takes a message bundle and a code and creates a
qualified error code with them.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2308 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-17 19:21:45 +00:00
Ray Greenwell 632366d019 Fixed bug that may occaisionally cause sound to not shut down,
removed unnecessary synchronization.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2307 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-17 18:50:18 +00:00
Ray Greenwell d1d538376f removed vestigial variable
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2306 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-17 05:28:26 +00:00
Michael Bayne ff600ddb66 Log more information if the queue is full since I saw that when entering a
sword fighting puzzle just now.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2305 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-13 18:35:03 +00:00
Ray Greenwell b0f351769c Good night Wesley, I added a runtime adjust for the output buffer size.
I'll surely remove it in the morning.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2304 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-12 00:28:05 +00:00
Michael Bayne 91146a6805 Added support for registering, on a per class basis, a delay which will be
observed after the last subscriber of a matching distributed object has
been removed. Our client's subscription will not be flushed until after
the delay has expired, and only then if no other subscriber has come along
requesting the object in the meanwhile.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2303 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-11 04:43:14 +00:00
Michael Bayne ef525ebad9 Modified DSet support such that additions, updates and removals are
applied immediately on the authoritative copy of the object (the one on
the server). We already do this for all other object modifications (except
OidList which is kind of special anyway), but we should be wary of
potential wickosity.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2302 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-10 18:29:54 +00:00
Ray Greenwell 152344f223 Merged grabNewObjects and prepareObjectList into one method:
refreshObjectList, so that we can remove objects as well as add them.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2301 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-10 09:24:04 +00:00
Michael Bayne 7295ef9f87 Add support for handling plurality more simply.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2300 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-05 23:27:39 +00:00
Ray Greenwell f15987477b made Cloneable
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2299 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-05 21:17:27 +00:00
Ray Greenwell 15792c5928 added getWeightedIndex().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2298 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-05 02:50:28 +00:00
Michael Bayne 2b094c6511 Added InvocationMarshaller implementations for our prefab
InvocationListener extensions.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2297 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-04 01:35:33 +00:00