Commit Graph

106 Commits

Author SHA1 Message Date
Ray Greenwell 9b11d03b46 Added a Cloneable interface, fixed up a few bits.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4148 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-25 01:18:04 +00:00
Ray Greenwell c143e93554 Spot stuff in AbjectScript.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4144 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-24 00:20:00 +00:00
Ray Greenwell f7eb18460a Began porting 'whirled'.
The basic whirled stuff is here; compiling and working.
'Spot' still to come.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4133 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-20 02:18:18 +00:00
Ray Greenwell a22ca8b079 Simplified logging facilities.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4131 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-19 22:47:44 +00:00
Ray Greenwell 7ec9c8d642 Let's name inner classes with an "_" where Java puts a "$", and do
automatic name translation for those names.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4129 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-19 02:23:47 +00:00
Ray Greenwell a2644d5c04 MessageListener adapter.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4128 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-19 02:22:51 +00:00
Ray Greenwell 0ac15b0e3c Some bits and bobs: there are ResourceBundle and Locale classes in the mx
package, use those. The ResourceBundle stuff is not quite working now due
to bugs in beta3, but I'll loop back to it later.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4126 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-18 22:39:01 +00:00
Ray Greenwell 64e87bb907 Added the keys() function to the Map interface, replaced instances of
SimpleMap with HashMap. Discarded SimpleMap.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4122 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-16 21:06:06 +00:00
Ray Greenwell 4aa8f5a5d5 - Method comments.
- Track the size of non-simple keys separately so that we really know when
  to resize the map.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4121 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-16 20:41:04 +00:00
Ray Greenwell f778c1e518 - Created a Map interface.
- Renamed HashMap Hashtable, because I wanted a version without ties to
  mx.* code. User-defined hashing functions may be specified.
- Created a subclass of Hashtable called HashMap which uses
  functions in mx.utils.ObjectUtil to hash non-Hashable complex keys.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4120 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-16 19:02:24 +00:00
Ray Greenwell 470c46acf5 Oop, clear complex entries when we clear.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4119 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-16 01:53:23 +00:00
Ray Greenwell 8604a4ac6a Various cleanuppery.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4118 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-16 01:51:01 +00:00
Ray Greenwell c203c0e861 A HashMap in actionscript that can use arbitrary objects as keys.
Internally, three different things may be done for storage:
- Simple keys can utilize the Dictionary class, we just use one of those
  inside the map.
- If the key implements Hashable, we can hash it.
- Otherwise, use mx.utils.ObjectUtil to generate a hash for any other key and
  also to compare the keys. Keys are then wrapped in a KeyWrapper object
  that implements Hashable. This last case will also handle null as a key.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4117 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-16 01:49:51 +00:00
Ray Greenwell eedebca87e Removed dead import.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4114 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-12 18:14:47 +00:00
Ray Greenwell d123c61606 Use the ArrayStreamer to stream regular Arrays as well.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4113 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-11 23:58:21 +00:00
Ray Greenwell 164d746072 Turns out they did fix the describeType bugs, but also changed the format
of the output.
Update code to recognize the new format and stop working around the old bugs.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4108 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-10 21:11:56 +00:00
Ray Greenwell fe3350dc3c More streaming fixups.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4106 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-10 02:35:01 +00:00
Ray Greenwell b82108ecea Streaming fixups on the path towards getting things working in beta3.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4105 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-10 00:40:15 +00:00
Ray Greenwell e100ef4faf Updated to match API changes in Beta3.
InvocationRegistration had a constructor called Registration. I wonder if
that was causing the compile error with beta2.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4104 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-09 23:03:47 +00:00
Ray Greenwell ff674f818f Beta 3 is out! They removed the built-in StringBuilder class, so I made
my own for now that just does what I need it to.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4103 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-09 23:01:15 +00:00
Ray Greenwell 7bdf7aba88 Occam's razor.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4100 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-08 21:37:54 +00:00
Ray Greenwell 490dab5780 Added an ImageUtil with some basic utility functions.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4099 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-08 21:31:24 +00:00
Ray Greenwell 42622d73cd Fixup.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4067 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-27 01:26:56 +00:00
Ray Greenwell ad9a3e54e3 Updated some bits.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4058 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-26 00:47:49 +00:00
Ray Greenwell 6bf2506f50 Array.indexOf() turns out to be there, just not documented.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4037 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-19 21:02:38 +00:00
Ray Greenwell efefdaa312 Updated method documentation.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4029 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-18 02:04:06 +00:00
Ray Greenwell cd8f168452 Create controllers in the new way (actionscript wants to be all growed up
just like uncle Java!).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4028 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-18 01:58:44 +00:00
Ray Greenwell fc2870f7e5 Moved to msoy area.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4019 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-14 02:05:19 +00:00
Ray Greenwell 6fb248e739 Removed import of nonexistant class.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4018 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-14 02:04:56 +00:00
Ray Greenwell 127eebf9a6 Moved to msoy repository.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4002 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-06 23:15:36 +00:00
Ray Greenwell 64d7f32178 Lots of debug logging, some casting.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4001 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-06 20:05:28 +00:00
Ray Greenwell 492bde538f Added a note about singleton classes.
I'm just whinging, really.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3997 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-04 17:35:10 +00:00
Ray Greenwell 16a28de8bc Report from brown team, engaged in Operation Slam Your Dick in a Door:
"Still purple and bruised, sir!"

I'm working around more bugs. In theory everything should log in and join
the chat room, but the browser crashes- every single time.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3986 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-28 23:17:52 +00:00
Ray Greenwell 90e4017801 A bit more, more streaming issues. I might need to rework some stuff.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3985 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-28 02:02:22 +00:00
Ray Greenwell 538803e1fb Checkpoint. Closing in on getting a chat client up, but slogging through
annoying streaming issues.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3984 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-28 01:27:57 +00:00
Ray Greenwell d910fbb6f2 I changed a few things and suddenly the inaccessable method works again.
Boy, fun.

I guess I'm embracing the 'adapter' construct for emulating anonymous
classes, but I wish I wasn't.
I have half an idea to start over from scratch and write a very
actionscripty dobj/services/receiver system that ends up looking very
different on the client but still speaks to the server in the same way.
Probably things would just get more and more complex until I was back here.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3983 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-27 19:27:03 +00:00
Ray Greenwell c00f76f141 Made the methods public and it still doesn't work. There's some awful bug
in the compiler or runtime, I think.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3979 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-25 00:35:05 +00:00
Ray Greenwell 9a6ea2f7a6 Missed these two files in the last checkin.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3978 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-24 23:50:47 +00:00
Ray Greenwell a91bf8b14c Added some missing marshallers.
Use Long instead of long. I had them both (it may be useful so that we
know if we're streaming an object or just 8 bytes of value) but Windows
couldn't fucking tell them apart (case insensitivity) so I nixed one.
Reference some more marshallers in the client so that the classes will
be compiled in.. gawd.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3977 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-24 23:49:51 +00:00
Ray Greenwell 4a1fdbbbe8 A few things, now that I'm running again (I downgraded to the older beta).
I'm now pounding my head against new limitations that I'd not seen before, now
that the Client class that I'm using is not in the presents.client package.
Macromedia can go fuck themselves with a hot poker.
The .swf is already 200k and I've barely begun working on UI elements.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3972 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-24 02:28:26 +00:00
Ray Greenwell a9e862bead A bit more crap.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3969 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-22 03:29:31 +00:00
Ray Greenwell f6826f010c Dictionary is in the docs, but the compiler doesn't seem to know about it
yet. Rolled back (nearly, I fixed a small bug).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3968 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-22 03:10:43 +00:00
Ray Greenwell 7d3ef496fd More faffing about.
- started making chat UI stuff
- upgraded SimpleMap some to use the new Dictionary class
- Lots of experimenting with attaching functions to interface implementations.
I've upgraded to the new beta of Flex and it's giving me the pain. There's
new compiler bugs and I am working blind right now.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3966 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-22 02:10:37 +00:00
Ray Greenwell ccd6e2b81e Some stuff.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3962 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-18 00:43:45 +00:00
Ray Greenwell add8f3f97c Work around a compiler bug by FQing the Log classname we're using.
We can revert these statements when/if that bug gets fixed.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3960 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-18 00:04:34 +00:00
Ray Greenwell 3ecf7e311e Re-declare SUCCESS so that it can be referred to as ChatCodes.SUCCESS.
Setting up a prototype const doesn't work, which is possibly a compiler bug.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3959 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-18 00:02:48 +00:00
Ray Greenwell 091c7d2401 Checkpoint. This is not compiling right now due to three annoying problems:
- There seems to be a compiler bug that causes classes to be
  imported spuriously, or something. Classes that import only one of the Log
  classes are complaining about visibility of more than one of them.
- static constants are not inherited by subclasses, which is super annoying.
  I will try switching to prototype consts, but there seems to be a problem
  initializing those, and we don't want to make them vars...
- The fact that there are no inner classes combined with no method overloading
  is making things very inconvenient. I've been experimenting with faking
  an anonymous class by instantiating a dynamic object and attaching
  functions to it, but it's not working. I'll continue experimenting, because
  if we can't do this then someone shoot me.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3957 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-17 02:19:53 +00:00
Ray Greenwell d1b997b9ff Another note. There are 3 ways to cast and all of them suck in one
way or another!


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3956 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-17 01:19:15 +00:00
Ray Greenwell 8fb271be33 Checkpoint.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3954 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-16 22:12:46 +00:00
Ray Greenwell 03d94291db More.
Made ObserverList work with a passed-in function, actionscript style.
I might reconsider some earlier decisions to go away from ObserverList.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3952 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-16 02:11:27 +00:00