ad4f36729b
Import mx's StringUtil.substitute() into our own StringUtil, as it's annoying to have two StringUtils.
Ray Greenwell
2006-12-07 21:26:05 +00:00
0ffa0211bc
Converted the base CurseFilter to actionscript.
Ray Greenwell
2006-12-07 03:43:18 +00:00
509f61c83e
Cruft removal.
Ray Greenwell
2006-12-07 02:58:39 +00:00
acdd1b543c
Expanding chat services that were ommitted earlier: filtering, chatters.
Ray Greenwell
2006-12-07 00:11:15 +00:00
e28f419b22
escape() has nothing to do with the unescape() just below it, it's used to prepare messages before handing them off to a MessageFormat. We don't have those in actionscript, so we don't need to prepare.
Ray Greenwell
2006-12-06 21:19:52 +00:00
b6b7e75823
Added a convenient static dumpStack() method.
Ray Greenwell
2006-12-06 20:21:07 +00:00
dfb4de0608
Wee Occam Jr., with his shiny oversized plastic "My First Razor"!
Ray Greenwell
2006-12-06 02:50:32 +00:00
d9894b6c78
I don't think jamming things into 'source' is kosher, so do it the right way.
Ray Greenwell
2006-12-06 02:49:41 +00:00
e15d6d31d1
Found nefarious bug (when it bit me, of course). If a listener was removed during event dispatch, the size of the list was shrinking and putting the kibosh on listeners at the end of the list. (The Java side avoids this due to the different way arrays work.) - Changed the listener and subscriber lists to simple arrays, and make a copy prior to dispatch so that we don't miss anybody!
Ray Greenwell
2006-12-06 02:48:53 +00:00
2fbd049185
Allow the prefix for where to find message translations to be set.
Mike Thomas
2006-12-01 17:28:06 +00:00
20a9685cc4
Allow menu items to be configured with a callback function directly (to which any args will be passed), instead of only dispatching controller commands.
Ray Greenwell
2006-12-01 03:06:42 +00:00
06046aed9c
DSet should be cloneable; ObjectUtil.copy() only works for registered Externalizables or built-in classes.
Ray Greenwell
2006-12-01 02:24:27 +00:00
737bca0a98
Have where() use which().
Michael Bayne
2006-11-28 18:24:25 +00:00
616f18546c
Return true if we succeeded.
Ray Greenwell
2006-11-27 22:06:08 +00:00
a559b48f38
Dispatch a SIZE_KNOWN event when we know our media's size.
Ray Greenwell
2006-11-20 22:13:02 +00:00
d93d529ff8
Do not shutdown and reload if we're going to display the same URL, useful for when this is used within another widget as a list item renderer.
Ray Greenwell
2006-11-20 21:23:33 +00:00
b6d37a472a
If we're trying to remove an already removed marshaller, let's hear about where we're doing it.
Michael Bayne
2006-11-20 18:21:08 +00:00
9ff4149e90
Commented out unneeded client code.
Ray Greenwell
2006-11-18 02:32:17 +00:00
776761aeef
Allow the occupant info to be different depending on the place.
Ray Greenwell
2006-11-17 20:01:36 +00:00
c1e791d393
New safer library locating process.
Michael Bayne
2006-11-16 22:51:36 +00:00
287f7d32a3
New deal, projects with dependencies on libraries that may be built during a larger build process get them from dist/lib at the top-level.
Michael Bayne
2006-11-16 21:26:44 +00:00
d42a8e9475
Regenerated from updated templates.
Ray Greenwell
2006-11-15 03:00:05 +00:00
4ad212350e
We need commons-collections for genservice.
Ray Greenwell
2006-11-15 02:59:14 +00:00
2ad124322d
Made actionscript code generation ByteArray-aware. (ByteArray is a special class for dealing with bytes. It does not extend the normal Array).
Ray Greenwell
2006-11-15 02:53:12 +00:00
253d8ae90c
Actionscript SetAdapter.
Ray Greenwell
2006-11-15 02:23:48 +00:00
cfddf38a67
Generic control for scrolling a display object around within its parent. This doesn't (seem to) work quite right because of the way Flash does handles component dimensions. It's designed to be overridden.
Ray Greenwell
2006-11-13 22:42:38 +00:00
ff951383c3
Load images into our own security domain so that we can examine their pixels.
Ray Greenwell
2006-11-10 23:45:05 +00:00
6dddf9c234
Re-enable the content mask. Do not use getters/setters unless we're overridding one from a superclass. The getters and setters hide implementation details: you never know if a getter is doing massive amounts of computation, and it looks like a simple field access. The nice parenthesis required for normal function calls are a reminder to the coder that maybe they should stash that value in a local variable if they're going to use it many times.
Ray Greenwell
2006-11-10 01:32:40 +00:00
92205abedf
Temporarily turn off masking so that everyone can enjoy playing with p15n.
Ray Greenwell
2006-11-09 18:30:46 +00:00
5ae9307636
Factored the curse filter out into a reusable class.
Michael Bayne
2006-11-09 00:24:22 +00:00
4694c1ce17
Just who() is fine, we don't need the whole user object dumped.
Michael Bayne
2006-11-07 01:40:23 +00:00
ce2c276d87
Implemented DisplayUtil.applyToHierarchy, because the similar function included in the mx library is unable to cope with security errors accessing a child.
Ray Greenwell
2006-11-03 22:34:10 +00:00
9ef2673464
Apparently String concatination is really cheap in AVM2, so let's just keep things simple.
Ray Greenwell
2006-11-02 23:53:30 +00:00
e9f13b66cd
Beans, frank.
Michael Bayne
2006-11-02 05:14:46 +00:00
6f18912003
Collections.shuffle().
Ray Greenwell
2006-11-01 03:55:14 +00:00
91b50cd0b8
Took care of some TODOs.
Ray Greenwell
2006-11-01 03:52:29 +00:00
b0cc50b21b
- Don't actually set our width/height to that of the media we contain. That's so "Java" of me, in actionscript children regularly have larger bounds than their parents (and get to display it all). - Stronger security restrictions on loaded content. (Games will break) - A few visits from old man Occam.
Ray Greenwell
2006-10-31 23:46:22 +00:00
35082bbaca
New and improved lint removal.
Michael Bayne
2006-10-26 23:00:20 +00:00
9437211e40
We must load content into our SecurityDomain if we want its ApplicationDomain to be a child of ours.
Ray Greenwell
2006-10-26 21:29:13 +00:00
a9d5ca01e2
We don't need the application to be passed-in, it's always statically accessible.
Ray Greenwell
2006-10-26 01:49:44 +00:00
0bb157aedf
When running in local mode we want to properly tag all events originating on the client with the proper source oid. Normally this happens when the client's event is received over the network but in local mode events never go over the network and thus all appear to have originated on the "server".
Michael Bayne
2006-10-25 17:10:30 +00:00
0a89eedc6c
Nixed JavaConstants.
Ray Greenwell
2006-10-24 22:16:57 +00:00
a83c70dd0f
Handle showing a resource class or an already-configured DisplayObject.
Ray Greenwell
2006-10-23 22:47:54 +00:00
8683642e4f
Match recent changes on Java side.
Ray Greenwell
2006-10-23 17:47:43 +00:00
a98a15a6d4
This is just an informational message.
Jonathan Le Plastrier
2006-10-20 22:07:51 +00:00
7d68d9c617
Added CommandEvent.markAsHandled().
Ray Greenwell
2006-10-18 01:38:48 +00:00
1468a3fa3d
Moving the Max exporters to Nenya.
Andrzej Kapolka
2006-10-18 00:13:11 +00:00
a494383688
We now reference project.dir.
Michael Bayne
2006-10-13 23:52:10 +00:00
bb650a11d2
Revamped the snapshot task to copy the dist/lib/ dependent jars into lib/ for the snapshot so that it contains all appropriate dependencies regardless of from where the local build got them.
Michael Bayne
2006-10-13 22:42:34 +00:00
0962f1035b
Added proper 'snapshot' target.
Michael Bayne
2006-10-13 22:33:56 +00:00
96a7202d75
Out with obsolete file.
Michael Bayne
2006-10-13 22:29:46 +00:00
d558ef79af
Determine which libraries to copy from libs-incl.xml.
Michael Bayne
2006-10-13 22:22:48 +00:00
1dfd474317
Have Narya declare its library dependencies in an includable build file and do some kind of annoying fiddling to allow its dependencies to come either from the build directory of its dependee or from lib/.
Michael Bayne
2006-10-13 22:17:06 +00:00
4a537cadeb
Unstream lists as Arrays.
Ray Greenwell
2006-10-11 21:30:56 +00:00
20d1e1d024
Allow chat displays to register themselves in a known order and to report to one another whether they've already displayed a chat message.
Michael Bayne
2006-10-10 21:48:27 +00:00
3c385628a1
Freak not out if we're not fully connected to a known peer.
Michael Bayne
2006-10-10 21:47:39 +00:00
499f86715a
The class in question here is not an instance of ActionScript.java but rather an arbitrary Java class which we are converting to ActionScript (the language, not the class). Hopefully this will appease the compiler.
Michael Bayne
2006-10-09 19:28:35 +00:00
8a935f1203
This didn't compile for me without the Generics.
Par Winzell
2006-10-09 15:36:52 +00:00
7c6cff471b
InvocationService.InvocationListener is a special case and can't even go in the raw imports. Whee!
Michael Bayne
2006-10-06 01:48:54 +00:00
8673055be4
More proper field conversion.
Michael Bayne
2006-10-06 00:34:03 +00:00
47d1369180
A psudo random number generator that can be seeded. Use at your own risk.
Mark Johnson
2006-10-05 22:27:06 +00:00
e532378ce4
We need InvocationService inner-listeners in our raw imports because those aren't magically in scope for ActionScript, we have to generate import statements for them.
Michael Bayne
2006-10-05 20:38:11 +00:00
63c4e10d3c
Improved Java to ActionScript field type conversion.
Michael Bayne
2006-10-05 20:30:30 +00:00
c7dd56f845
More juicy auto-generating goodness.
Michael Bayne
2006-10-05 02:01:34 +00:00
e292e04e65
More fiddling and improvements to code generation.
Michael Bayne
2006-10-05 01:33:25 +00:00
4c2e242261
More jiggery pokery to create blank TypedArray instances of the proper type when we encounter the pattern "new SomeClass[0]". Le whee!
Michael Bayne
2006-10-05 00:30:32 +00:00
19fa31cdba
Don't implement subList() as in Java this is a view and we can't do that easily in ActionScript without ubercomplexity. So we'll rewrite the code that was using it.
Michael Bayne
2006-10-05 00:24:20 +00:00
e4438e4070
We need to notice and observe the @ActionScript(name="foo") annotations when slurping comments from Java source files.
Michael Bayne
2006-10-05 00:18:06 +00:00
626b4d257f
Added some methods to StreamableArrayList that behave properly (use Equalable to determine equality instead of using reference equality).
Michael Bayne
2006-10-05 00:16:11 +00:00
27ab1efe4e
We no longer pass a classpath reference to the GenActionScriptTask, it uses the classpath provided to the <taskdef>.
Michael Bayne
2006-10-04 23:37:18 +00:00
4a9fde7830
Now we have a cool @ActionScript annotation that allows us to specify different field/method names for the ActionScript version of a class (or to omit something entirely). This removes the need for special case hackery for toStringBuilder().
Michael Bayne
2006-10-04 23:35:41 +00:00
ed51df0807
Add Hashable for classes that override hashCode(); strip out *Codes interfaces because we can't do that in ActionScript; properly handle static var and non-static const.
Michael Bayne
2006-10-04 21:25:16 +00:00
874d8eaa8f
When generating ActionScript streamable classes, use TypedArray for fields but Array for static constants and method arguments.
Michael Bayne
2006-10-04 21:08:12 +00:00
f4a25e9521
Use TypedArray for array fields when converting a Streamable into ActionScript.
Michael Bayne
2006-10-04 21:03:05 +00:00
e99ac5762d
Regenerated all of the ActionScript services using the new code generation tool.
Michael Bayne
2006-10-04 20:41:51 +00:00
ad7ac5aa3e
Let's wrapp everything in parens.
Michael Bayne
2006-10-04 19:00:23 +00:00
9da0e7a4f3
OMG, it like handles the annoying ActionScript not-so-inner classes.
Michael Bayne
2006-10-04 18:53:36 +00:00
20c0f0ff3d
Regenerated with updated Marshaller and Dispatcher templates.
Michael Bayne
2006-10-04 18:13:34 +00:00
d25d5e53f1
We're getting very close to having generated ActionScript Service and Listener interfaces, and Marshallers for same. The remaining snag has to do with the annoyance of ActionScript not supporting inner classes, which means that ChatService.TellListener for example has to become ChatService_TellListener.
Michael Bayne
2006-10-04 18:12:56 +00:00
3305c1b922
Our inherited constructor documentation didn't make much sense.
Michael Bayne
2006-10-04 02:17:35 +00:00
398767da5f
Ran the auto-generator on all our Streamable stuff in Narya. Tidied up the results.
Michael Bayne
2006-10-04 02:07:04 +00:00
8015764c61
Don't look now kids, but it's automatic generation of ActionScript code from Java. Of course this is a very limited translation facility that is mainly focused on auto-generating Streamable ActionScript classes from their Java originals, and it doesn't actually convert method bodies, just field and method declarations, initial values, and such.
Michael Bayne
2006-10-04 02:05:15 +00:00
d7bf98354e
Match abstract classes as well.
Michael Bayne
2006-10-04 02:01:00 +00:00
5e55b0b343
Fixed typo.
Michael Bayne
2006-10-04 01:59:57 +00:00
572d5a6555
Oop, we'll want to immediately Stringify any args passed to our constructor, as well.
Ray Greenwell
2006-10-04 01:20:13 +00:00
5e769376f2
Stringify an added element at the time it is added, not at the time that toString() is called on the buffer.
Ray Greenwell
2006-10-04 01:15:15 +00:00
23f6486bf7
Added clarifying comments.
Ray Greenwell
2006-09-29 18:40:41 +00:00
48faea2ace
All VirtualMachineErrors seem worthy of fork sticking. Also re: my previous checkin, tihs will be a non-issue when we start devoting an entire separate JVM to each game (which we will have to do for all games that run server code) because then all a game can do is stick a fork in its own JVM and render itself unplayable.
Michael Bayne
2006-09-29 00:45:58 +00:00
57edcd84b6
We have to specifically enumerate the scary errors that we'll let actually stick a fork in the server otherwise malicious or broken code can generate an AbstractMethodError or some other error and cause the server to decide to quit.
Michael Bayne
2006-09-29 00:41:33 +00:00
bd8ee0fd4d
Bugfix: return undefined, not null, to indicate absence in the map.
Ray Greenwell
2006-09-28 19:11:17 +00:00
f544a76b62
Added the ManagerCaller that was added a while back on the Java side.
Ray Greenwell
2006-09-27 23:54:40 +00:00
0650d58006
Improved the debug-mode logging a bit.
Ray Greenwell
2006-09-27 23:54:09 +00:00
eda71de8d3
Added another method that's booching GG games.
Michael Bayne
2006-09-27 16:59:38 +00:00
8676bb1adc
Avoid div0 in rare situation.
Michael Bayne
2006-09-27 16:54:13 +00:00
2a71f0c9bc
Added getTinyClassName().
Ray Greenwell
2006-09-27 00:31:03 +00:00
11e08c165e
I think this is better. Only define the weave taskdef in the two targets we need it. This adds some duplicate code, but we turn the onerror fail back on, so if the library is not found then ant will throw an error and exit. But it will only do this if you try to run the targets which need this taskdef.
Jonathan Le Plastrier
2006-09-26 22:52:58 +00:00
cade4b6435
Narya now builds using from dist/lib. Also, the weave taskdef reports a warning if it cannot find the retroweaver jars, instead of preventing ant from running. These changes will need to happen on the other rings as well.
Jonathan Le Plastrier
2006-09-26 20:23:05 +00:00
16689b51d4
We need these for binary compatibility with existing Game Gardens games. We may need the two argument versions as well, but I'll wait and see.
Michael Bayne
2006-09-25 05:27:09 +00:00
a3213cdee2
Automatically unwrap any result object that is wrapped.
Ray Greenwell
2006-09-24 23:51:33 +00:00
0709dc9580
Two minor edits to List support.
Ray Greenwell
2006-09-19 01:25:52 +00:00