Commit Graph

2328 Commits

Author SHA1 Message Date
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
Michael Bayne 5e6ee6e8d9 Created a couple of basic directly usable InvocationListener derivations.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2296 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-04 01:26:30 +00:00
Ray Greenwell e3e6077e1b Don't complain if a direction for a spot is specified as '-1',
it's intentional.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2295 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-03 20:41:50 +00:00
Michael Bayne 687dc5f564 Map client connections by normalized auth username rather than credentials
instances.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2294 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-02 03:47:06 +00:00
Michael Bayne 77d0747692 Actually throw a NoSuchTileSetException when we say we're going it.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2293 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-02-28 02:03:43 +00:00
Michael Bayne efec457ac7 Modified tileset bundler to not rebuild bundles that are demonstrably up
to date (all files involved in the making of the bundle are older than the
built bundle file).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2292 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-02-28 00:46:52 +00:00
Michael Bayne 97c02d2a00 Don't make the internal field a Comparable as the serialization stuff
chokes on that.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2291 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-02-26 21:41:47 +00:00
Michael Bayne 56b0012782 Use Comparable for the to be removed distributed set key.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2290 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-02-26 17:54:56 +00:00
Michael Bayne 5ed8637ecf In order to properly pick up any changes made to ObjectInfo records in our
objects array, we have to recreate it completely because objects could
become interesting or uninteresting and we'd never know when to remove
them from one storage mechanism and stick them in the other.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2289 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-02-24 18:40:41 +00:00
Michael Bayne d7e60e2749 Not to freak out if we can't recolor an image, just log a warning and
return the unrecolored version.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2288 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-02-22 01:48:21 +00:00
Ray Greenwell 5962fa1e54 Made note of and implemented clearing of fringes when a base tile is set.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2287 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-02-20 00:40:13 +00:00
Ray Greenwell 7bde1b3b4b Use JAVA_HOME rather than hardcoding the path.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2286 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-02-18 23:06:54 +00:00
Michael Bayne 7b97f872c8 Allow initialization from an array of entries.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2285 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-02-18 19:50:34 +00:00
Michael Bayne 51a883fc34 Factored toString() into two methods for easier customization by derived
classes.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2284 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-02-18 18:59:08 +00:00
Michael Bayne f0628cfeac A streamable hash int map; whee!
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2283 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-02-18 03:01:16 +00:00