Created listener interfaces that will automatically be registered

if implemented by something on the display hierarchy.
You may also implement them in utility classes and register and unregister
event listening by hand.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@55 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
Ray Greenwell
2006-08-24 00:15:49 +00:00
parent b118e302a3
commit a465884a84
11 changed files with 185 additions and 18 deletions
+27
View File
@@ -0,0 +1,27 @@
package com.threerings.ezgame {
import flash.events.Event;
// TODO: there may not be much point in using the standard flash event
// architecture. I'm about thiiiiiiis close to not.
//
public /*abstract*/ class EZEvent extends Event
{
/**
* Access the game object to which this event applies.
*/
public function get gameObject () :EZGame
{
return _ezgame;
}
public function EZEvent (type :String, ezgame :EZGame)
{
super(type);
_ezgame = ezgame;
}
/** The game object for this event. */
protected var _ezgame :EZGame;
}
}