The great Game API re-org.
Moved everything onto sub-control objects. Got rid of the Listener interfaces. https://intranet.earth.threerings.net/metasoy/EZGame_API_Reorg I'll go through and make the documentation nice next. git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@535 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
@@ -30,19 +30,20 @@ public /*abstract*/ class EZEvent extends Event
|
||||
{
|
||||
/**
|
||||
* Access the game control to which this event applies.
|
||||
* Note: you will need to cast this to the appropriate GameControl type.
|
||||
*/
|
||||
public function get gameControl () :EZGameControl
|
||||
public function get gameControl () :AbstractGameControl
|
||||
{
|
||||
return _ezgame;
|
||||
return _gameCtrl;
|
||||
}
|
||||
|
||||
public function EZEvent (type :String, ezgame :EZGameControl)
|
||||
public function EZEvent (type :String, gameCtrl :Object)
|
||||
{
|
||||
super(type);
|
||||
_ezgame = ezgame;
|
||||
_gameCtrl = gameCtrl as AbstractGameControl;
|
||||
}
|
||||
|
||||
/** The game control for this event. */
|
||||
protected var _ezgame :EZGameControl;
|
||||
protected var _gameCtrl :AbstractGameControl;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user