Commit Graph

4473 Commits

Author SHA1 Message Date
Ray Greenwell 39376d9d20 Extend ListenerAdapter, changed the failed function to be the first arg.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4331 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-08-19 01:05:17 +00:00
Andrzej Kapolka 9607d33093 Suppress warnings in generated code.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4330 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-08-17 23:39:21 +00:00
Ray Greenwell 79efc4dd0d Some comments laying about.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4329 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-08-17 22:16:04 +00:00
Ray Greenwell 1ae508f3aa Removed the pointless InvocationCodes.SUCCESS, moved it to ChatCodes,
which was the only child class that used it.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4328 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-08-16 18:38:39 +00:00
Ray Greenwell 1518c12cdf Implement PlaceControllerDelegates.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4327 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-08-16 00:25:19 +00:00
Ray Greenwell be83e13003 Occam's razor, comment fix.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4326 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-08-16 00:09:53 +00:00
Ray Greenwell ac242c0eca Encode nulls as a null byte array.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4325 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-08-15 21:32:50 +00:00
Michael Bayne f40325fa67 Revamped the way network stats are tracked so that they are all monotonically
increasing integers. Added tracking for connect and disconnect events.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4324 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-08-15 00:12:42 +00:00
Ray Greenwell cc4ed0b9d9 Commit comment containing information determined through experimentation.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4323 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-08-14 21:45:51 +00:00
Ray Greenwell 53aacc4bbc Added ClassUtil.isSameClass(), reimplemented another function using
the constructor property.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4322 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-08-12 01:19:30 +00:00
Ray Greenwell c85996ae5d Check that the other name is the same subclass of Name, not just a Name.
(And found a faster way to compare the classes of two objects.)


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4321 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-08-11 23:54:41 +00:00
Ray Greenwell 51a40c5f4f Use mx.utils.DisplayUtil.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4320 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-08-11 17:40:28 +00:00
Ray Greenwell 54f3fdb3e6 Implement Boolean array streaming.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4319 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-08-11 02:43:30 +00:00
Ray Greenwell 999acc1829 The event needs to be cancellable now.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4318 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-08-11 02:03:47 +00:00
Ray Greenwell ce5caaedfe Ah, I figured out how to fix up my one issue with controllers:
The default behavior of an event is determined by the entity that calls
into the event dispatcher, so the solution was to unify the dispatch of
these events. Created a utility method in CommandEvent to do that, and
did some singlton-like hackery on the constructor to prevent folks from
thinking they can just dispatch these themselves and have it work correctly.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4317 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-08-11 01:22:50 +00:00
Michael Bayne 1d2c8ae7ac Allow a name to be provided to a persisting unit.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4316 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-08-10 22:03:06 +00:00
Ray Greenwell ec3f1c1ddd Added a utility class for marshalling flash Objects.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4315 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-08-10 18:02:48 +00:00
Ray Greenwell 2ccf76d30a This is exactly the kind of thing I hate about abjectscript: if you forget
to cast something, it's all OK. Luckily I spelled everything correctly,
but lets change it so that the compiler can help us check things.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4314 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-08-10 18:02:00 +00:00
Mike Thomas e8cd7631fd Allow a message to specify the name to display for a user separate from the canonical username passed in the message as the speaker variable.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4313 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-08-09 22:26:38 +00:00
Ray Greenwell be62ca7301 Right, "Z" means boolean in Java array classnames.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4312 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-08-09 20:03:14 +00:00
Michael Bayne e1b68c4cd9 Display the entry first then the set.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4311 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-08-09 02:47:50 +00:00
Ray Greenwell 4fde46f362 Handle boolean arrays from the server.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4310 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-08-09 00:58:43 +00:00
Ray Greenwell 9a8214d39d This method should be protected.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4309 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-08-09 00:55:25 +00:00
Ray Greenwell 85d97f5e25 I forgot to pass in the "this" required by Function.apply() (or rather, I
was passing in the args as the 'this').
I made the last checkin after compiling to make sure everything was right,
but I forget that compiling doesn't check much in actionscript.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4308 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-08-08 23:25:16 +00:00
Ray Greenwell a56e12089c One has to be careful when overriding, or otherwise transferring
args from one varargs method to another, so that the varargs array from
the outer method is not packaged up as one arg to the inner method.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4307 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-08-08 23:22:26 +00:00
Ray Greenwell 902d12e1ac Added a convenient way to quickly add debugging output to a program without
importing anything: Log.testing("bla bla bla");
trace() is global too, but that goes directly to the debugger, not to the
Log system, so we can't see trace() statements in the firebug console,
for example.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4306 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-08-08 22:43:39 +00:00
Ray Greenwell f9a0392841 Bugfix.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4305 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-08-08 22:41:48 +00:00
Ray Greenwell c9d262bf64 Just print the exception. If it has a message, that will be printed,
otherwise we'll just get the name. I'm killing StringUtil.getMessage().


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4304 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-08-08 20:06:53 +00:00
Ray Greenwell 35c7144d26 Log stack traces for errors thrown in controller handle* methods.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4303 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-08-07 23:22:42 +00:00
Ray Greenwell fe78d7d9cd Added commented-out method that was added to our Java counterpart.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4302 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-08-07 19:47:09 +00:00
Ray Greenwell 309000f827 Added startsWith().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4301 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-08-07 19:46:47 +00:00
Michael Bayne e4d7da7d19 Added getAll().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4300 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-08-07 19:04:48 +00:00
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