Commit Graph

4241 Commits

Author SHA1 Message Date
Ray Greenwell e2a292e0fb Use localeCompare.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4299 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-08-07 17:27:01 +00:00
Michael Bayne f665a5b2ea Added toString(), moved static methods to top.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4298 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-08-07 17:25:13 +00:00
Ray Greenwell 52bd679f6c If the normalized version of a name is the same as the raw version, it
may already be the case that the normalize() method returned the same
String, but if not, ensure that we're only holding on to one of those Strings.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4297 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-08-04 23:04:29 +00:00
Ray Greenwell 47a8a27a4e Cleanup.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4296 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-07-29 01:10:15 +00:00
Mike Thomas 3d7c12a5d1 Allow a little more info in deciding whether to declare the place empty.
Also, while I was in there, added some safety so we don't lose track of shutdownIntervals and let them run amuck.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4295 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-07-28 21:16:37 +00:00
Ray Greenwell 7c17069a16 Some fixups and enhancements.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4294 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-07-28 02:48:52 +00:00
Ray Greenwell ad74efc332 An adapter for a ClientObserver.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4293 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-07-26 00:37:02 +00:00
Ray Greenwell 151a0d9d1e There's no 'throws' in ActionScript, so essentially all exceptions are
runtime. The only way to learn what might be thrown is to read all the
documentation for a method. (Complaint suppressed.)
Anyway, let's cope if we encounter an error reading from our socket.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4292 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-07-25 21:23:47 +00:00
Ray Greenwell 426edf6ad7 Moved some of the standard work done by Authenticators into the base class.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4291 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-07-25 19:02:48 +00:00
Ray Greenwell 878129f75d Made a parameter name more descriptive (as well as reversing the meaning...).
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4290 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-07-25 02:19:44 +00:00
Ray Greenwell 4d6166dc12 Added a safe navigateToURL method for sending the browser to some page.
If the user embeds the flash client on their own page, if someone then
clicks something to visit a msoy page, we will be unable to load that
page in that same tab/window. Instead, we'll be forced by flash security
restrictions to open in a blank window.
Allow for either method, falling back to a blank window if the other
method fails.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4289 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-07-25 02:10:20 +00:00
Mike Thomas 5b83ee58a0 Call the proper removal function...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4288 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-07-24 23:29:43 +00:00
Mike Thomas 02113e6eab Allow shutdowners to be removed in case they're no longer interested.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4287 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-07-24 23:27:19 +00:00
Ray Greenwell ed1f43bdfc Fixed up a number of TODOs; created a new Wrapped interface to simplify
auto-unwrapping.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4286 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-07-24 19:53:24 +00:00
Ray Greenwell fb532c1349 Added missing methods.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4285 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-07-22 00:11:51 +00:00
Ray Greenwell a9109fc4af Added the CLIENT_DID_CLEAR client event.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4284 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-07-21 23:41:12 +00:00
Ray Greenwell e16d838b18 Be sure to generate a DID_LOGOFF event, and a few other bits.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4283 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-07-21 21:28:57 +00:00
Ray Greenwell 85052535b4 Added a CommandMenu, which is a pop-up menu that submits configured
CommandEvents for selected items.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4282 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-07-20 02:14:53 +00:00
Ray Greenwell f1f6b3bdb2 Renamed ControllerEvent to CommandEvent.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4281 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-07-20 02:14:14 +00:00
Mike Thomas 19219bb1a3 Break out the logic for whether the place is empty so we can override it.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4280 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-07-20 01:28:29 +00:00
Ray Greenwell 2f9ea3a69e Added a streaming Boolean wrapper. Untested.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4279 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-07-19 23:59:55 +00:00
Ray Greenwell 783b5ef33d Be sure to call super() in our clickHandler so that selected state toggles
when toggle mode is true.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4278 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-07-19 22:25:30 +00:00
Michael Bayne 2dcdebc29b Document the messages broadcast to the server.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4277 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-07-19 00:45:51 +00:00
Michael Bayne 41b73ffcb4 Factored the automatically scheduled reboot code out into a reusable class.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4276 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-07-19 00:43:08 +00:00
Ray Greenwell 78c7b49f9b Created a base Controller class; added a CommandButton that submits
controller commands; have PlaceController extend Controller.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4275 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-07-18 22:30:05 +00:00
Mike Thomas bbdcb53039 Fix problem where users are unable to connect to certain servers due to their preferred port getting locked into 443, which we aren't actually listening on.
We need to set up the preference interval (but not start it) before we try to open the connection.  Otherwise, we won't have it around if we get a shutdown call during that opening (which can and does happen).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4274 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-07-18 05:24:22 +00:00
Ray Greenwell 0387014af8 Added a sort() method that operates on arrays of Comparable elements.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4273 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-07-18 02:22:24 +00:00
Ray Greenwell 786a8ab947 Bugfix with toArray().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4272 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-07-18 02:21:55 +00:00
Ray Greenwell f118e213d2 Was logging warnings for any message bundle that didn't use a custom
class. Fixed.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4271 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-07-18 02:21:25 +00:00
Ray Greenwell ce3d3474f9 implement Comparable.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4270 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-07-18 02:20:40 +00:00
Ray Greenwell 8ede77fcb2 Made toStringBuf() protected so that subclasses in other packages may
override it.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4269 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-07-18 02:20:22 +00:00
Michael Bayne 5def25058a Avoid sticking a fork in things if we are asked to remove a null key.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4268 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-07-18 01:08:31 +00:00
Ray Greenwell 7ad341ef8d Removed debug logging.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4267 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-07-14 02:15:48 +00:00
Ray Greenwell a9d0c5d285 Let's make these work correctly...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4266 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-07-14 02:11:06 +00:00
Ray Greenwell 947db5851d Renamed the InvocationListeners to the standard way I've been naming
inner classes over here on the actionscript side.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4265 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-07-13 19:08:18 +00:00
Ray Greenwell fc91faf25f Standardized what we do in cases where a CloneNotSupportedException occurs
where we don't think it ever will.
Instead of returning null, or the exception, always throw a runtime
with just the CloneNotSupportedException as the argument, as this will
contain the most information and will preserve the stack trace.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4264 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-07-13 18:07:27 +00:00
Ray Greenwell ca06b47835 Report as useful a message as we can when we have an error.
I was getting an IllegalArgumentException and the message was "null",
so this will at least log the name of the exception.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4263 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-07-12 23:57:14 +00:00
Ray Greenwell 1818bd14dd Found one of the bugs: the default ArrayStreamer was being picked to stream
TypedArrays.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4262 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-07-12 23:51:01 +00:00
Michael Bayne 3c91f3bad2 Need JUnit.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4261 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-07-12 17:48:01 +00:00
Michael Bayne 7cc7f75bcc No longer need these dependency checks.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4260 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-07-12 17:43:57 +00:00
Michael Bayne 4ee125983d Updated our library dependencies.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4259 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-07-12 17:42:53 +00:00
Ray Greenwell 2f3584adf7 Various small fixes.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4258 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-07-12 02:22:18 +00:00
Ray Greenwell 78cefe9a8f Added the values() function to the Map interface, as well as a new method,
forEach(), in which you pass a visitor function that will visit each key/value
stored in the map.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4257 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-07-11 18:22:29 +00:00
Michael Bayne 489332edca Nixed old temporary code.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4256 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-07-07 20:43:57 +00:00
Michael Bayne 4894d1cfde Annoyingly, ClientObserver.clientDidLogoff() is called before the client's
inner bits are all clear and ready to try logging on to a new server. We
specifically wait to call clientLogonFailed() until after everything is
cleared, but I don't want to change the behavior of clientDidLogoff() for fear
that any one of the zillion directors depends on something being around during
that call.

Instead I added another callback clientDidClear() that is called when a
successful session is fulled cleared out (basically when we're not calling
clientLogonFailed()) so that entities that are waiting for a logoff to finish
so that they can logon somewhere else have a clean way of doing so.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4255 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-07-07 04:02:42 +00:00
Michael Bayne c0628363cb Updates to support a public facing and back-channel host for each node.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4254 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-07-06 23:52:55 +00:00
Michael Bayne 8df1c91699 Changed the weird-ass argument ordering for the UserMessage constructors. I'd
like to change the ordering for ChatMessage and its other derivations (the
bundle should precede the message) but that's more dangerous as the constructor
signature would not change.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4253 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-07-06 00:35:11 +00:00
Michael Bayne a3c86ec1d4 Make it easy to create a UserMessage for tells.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4252 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-07-06 00:27:44 +00:00
Michael Bayne 05cef39f63 Revamped chat handling a bit:
- the ChatProvider is now a proper singleton rather than providing static
methods for everything (it is accessed through CrowdServer.chatprov)
- it can now be extended to create a custom UserMessage for tells (which can
contain avatar information on systems that want to show an avatar on the
receipt of a tell)
- the ChatProvider API was tidied up a bit as some methods had been addded over
time that were not sufficiently general purpose so their callers will be
changed to use the general purpose APIs.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4251 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-07-06 00:22:12 +00:00
Michael Bayne ef86404ed8 Ignore peer clients, and scan through the client info set when removing because
we can't rely on building a new client info at session end time because the
client's ClientObject will have been destroyed.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4250 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-07-05 23:27:25 +00:00