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:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user