Commit Graph

3629 Commits

Author SHA1 Message Date
Michael Bayne f39306a793 New bui package.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3687 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-08-23 18:58:24 +00:00
Michael Bayne fd05f9aad5 com.jme.bui -> com.jmex.bui.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3686 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-08-23 18:56:36 +00:00
Andrzej Kapolka ea646a4d46 Allow subclasses of MisoScenePanel to skip arbitrary scene objects, as opposed to just object without actions.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3685 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-08-23 00:06:52 +00:00
Michael Bayne ef65ee5644 Do things in a way more amenable to subclassing.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3684 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-08-22 18:30:07 +00:00
Michael Bayne 1afa3712fb Cope with failing to initialize the sound system.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3683 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-08-22 18:29:47 +00:00
Ray Greenwell 97a909c98f SortedIterator -> Collections.getSortedIterator().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3682 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-08-15 22:54:45 +00:00
Ray Greenwell de892e0187 Catch exceptions in a few tender places during creation of a place and try
to log information.
There was an exception in here somewhere that froze a big tourney last week
but the stack trace was optimized out by hotspot (damn thee!). Hopefully
this will at least narrow it down, and possibly prevent total brokenness.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3681 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-08-12 22:22:13 +00:00
Ray Greenwell 6e07b60f48 Fixed code to detect invalid updates to not totally hose everything:
it was trying to print where() which failed because it was doing so
before all the values were intialized.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3680 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-08-11 22:33:22 +00:00
Ray Greenwell b95a8056d1 Let's log a stack trace so that we can see where the damn error is, instead
of having an error triggered right after this one that happens to print
a stack trace look like the matching stack trace for the original error.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3679 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-08-11 22:30:40 +00:00
Ray Greenwell 84c5a06d4f Goodness, let's optimizee the common case: if two name objects ARE the
same class and loaded from the same class loader we don't need to
do two string compares.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3678 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-08-11 19:15:24 +00:00
Ray Greenwell 429a655ae8 Re-use one static rectangle for constraint ops. This should be safe if
the method in which it's used is only called from the dobj thread.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3677 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-08-10 01:35:07 +00:00
Michael Bayne 5fbb02bc34 Decode InvocationRequestEvent information as well.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3676 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-08-08 23:59:27 +00:00
Michael Bayne d30119eb65 Do some jiggery pokery to better classify the zillions of Interval$Unit$1
runnables that get added to the dobjmgr queue.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3675 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-08-08 23:54:41 +00:00
Michael Bayne ffec15fdd9 We need to build libunsafe.so for FreeBSD.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3674 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-08-08 19:00:33 +00:00
Michael Bayne 46220291eb Moved the WaveData clip provider into its own class.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3673 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-08-05 20:34:35 +00:00
Michael Bayne d668c91b9b Use the new LRUHashMap removal observer mechanism.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3672 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-08-05 20:26:01 +00:00
Michael Bayne 237419b179 Exclude the openal package unless the lwjgl libraries are present.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3671 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-08-05 07:32:33 +00:00
Michael Bayne 064f18deb7 Fixed comment; added proper cache size adjustment.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3670 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-08-05 03:20:14 +00:00
Michael Bayne 9d3eb07c06 A new sound system based on OpenAL. Only supports sound effects at the
moment, but OpenAL has the necessary business to later integrate "streams"
of audio (music).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3669 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-08-05 03:12:16 +00:00
Ray Greenwell bdfc2a7005 Added a setToken() that takes a boolean, as it can be very convenient.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3668 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-08-04 01:15:17 +00:00
Michael Bayne 738cf657cb Allow a player to be replaced in an in-play game; properly handle the case
in a turn-based game where the turn holder is replaced and update the
turnHolder field in a way that doesn't cause the client to think that the
turn changed.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3667 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-08-03 07:46:54 +00:00
Michael Bayne a3ca9ba149 Link to the jME API.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3666 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-08-03 01:36:34 +00:00
Ray Greenwell dc202b3e8a Let's find out what that invalid argument exception is, should it recur.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3665 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-08-01 18:11:33 +00:00
Ray Greenwell d87ca1d8e1 Avoid some repaints when we can.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3664 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-07-28 21:10:11 +00:00
Ray Greenwell 898a3bf5d5 Not sure if this is a big deal, but it can't hurt: our media panels
shouldn't be transparent so that repaints don't travel up past them.
(Some were, but I think our repaint manager was keeping paints out of
the parents anyway, somehow).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3663 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-07-28 21:08:47 +00:00
Michael Bayne e438377297 Introspect on our classes in a privileged block so that unsigned code can
call ObjectInputStream.defaultReadObject().


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3662 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-07-25 17:24:25 +00:00
Andrzej Kapolka 6c1db160ce Make the default color white.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3661 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-07-23 02:10:32 +00:00
Andrzej Kapolka 67d1ca90c4 Moved the calls to the various layer-painting methods to their own independent method.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3660 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-07-23 01:30:35 +00:00
Andrzej Kapolka 694b7f0f98 Correctly handle the case where a surface (or wall) with things on it is removed and replaced with another surface (wall).
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3659 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-07-21 23:50:20 +00:00
Michael Bayne 301c1cbe4d Dispatch the notification that the client failed to logon after we are
completely cleaned up so that an immediate attempt to logon using a
different configuration will not fail due to the client thinking it's
still logged on from the previous failed attempt.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3658 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-07-21 20:23:37 +00:00
Michael Bayne 15528d9055 Multiple ports!
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3657 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-07-21 19:34:26 +00:00
Michael Bayne eba31091bb Switch the default port for the Presents system to the DirectPlay port.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3656 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-07-21 19:26:05 +00:00
Michael Bayne 8c94273b69 Allow the connection manager to listen for incoming connections on
multiple ports.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3655 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-07-21 19:21:33 +00:00
Michael Bayne 06faee3ef6 Test program for the uid fiddly business.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3654 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-07-21 19:10:28 +00:00
Michael Bayne 06b8f41e66 Added setuid() and setgid() to Unsafe.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3653 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-07-21 19:10:08 +00:00
Andrzej Kapolka 58bf15f3e8 Added persistTo/unpersistFrom methods for persisting updates.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3652 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-07-21 02:23:45 +00:00
Michael Bayne ac22e65145 Enabled some debug logging when STREAM_DEBUG is activated. Removed custom
String marshaller as a StreamerMarshaller is used for String fields.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3651 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-07-16 01:46:20 +00:00
Michael Bayne 03411cbd9c Various renamery.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3650 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-07-14 03:54:11 +00:00
Ray Greenwell 84361f9f9b - Initialize our timestmap in willStart() (which postdates the original
creation of this class).
- Track when all the sparks have moved outside the bounds of the animation
  and end it then.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3649 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-07-14 01:37:34 +00:00
Andrzej Kapolka 9e7f85e873 Changed removeObject to removeObjects.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3648 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-07-13 23:06:12 +00:00
Ray Greenwell 8dd1890a18 - The 'jog' parameter was broken. Fixed it, added xjog and yjog.
- Added a 'fade' parameter so that you can decide if you want the
  fade-out option.
- Renamed some other parameters.
- Fixed it so that it never paints outside its bounds.
- There is wacky broken behavior with the starting x/y velocities
  that does unexpected things. It should probably be removed and handled
  by code using this class, but it's called from too many places for me
  to feel comfortable making that big a change.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3647 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-07-13 00:35:25 +00:00
Ray Greenwell b1ec3ab5b5 Comment fixups.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3646 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-07-07 18:51:35 +00:00
Ray Greenwell fa8ee9f8f8 Added finishResolution(), which is called on the dobj thread to finish up
population of the client object.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3645 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-07-07 18:46:38 +00:00
Ray Greenwell 3820456813 Allow subclasses to not create a speak service if they should so desire.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3644 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-07-06 17:47:51 +00:00
Michael Bayne 9f470a4205 If we end up with a selectable channel in our selection set that we no
longer know about, request that it be given the boot when it rears its
ugly head.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3643 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-07-06 01:00:19 +00:00
Michael Bayne 90ac82e9c6 Allow a set of classname translations to be configured in an
ObjectInputStream to facilitate conversion of serialized data when classes
are repackaged.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3642 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-07-05 20:02:20 +00:00
Michael Bayne 595df9ee28 Which game you talkin' 'bout Willis?
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3641 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-07-05 17:39:48 +00:00
Ray Greenwell b603e6b051 More stuff with ending player games:
- If a player leaves, handle the ending of their game in GameManager.
- don't start the turn first turn in turn-based games on a missing player
- Let derived classes get playerGameDidEnd() even if the game doesn't
  have statuses.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3640 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-07-01 23:56:54 +00:00
Elizabeth Fong e1338dca1e partial fix to 'logged off players automatically win all matches in tourneys'
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3639 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-07-01 00:50:13 +00:00
Michael Bayne a213847eea Added leavePlace() for games where you are sometimes not in any "place" at
all.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3638 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-06-30 00:02:13 +00:00