Property | Type | Description | |
---|---|---|---|
GameReference |
Method | Description | |
---|---|---|
EventManager ( ) : System |
Temporary constructor for instansiating the list of events.
|
|
EventManager ( |
||
notify ( |
Notifies the appropriate handlers of an Event.
|
|
register ( string type, HandleEvent handler ) : void |
Registers an event handling function with the EventManager class. When the EventManager receives an event of the given type, the given handler will be called.
|
|
unregister ( string type, HandleEvent handler ) : void |
Unregisters the given event handler with the given type of event notification.
|
public EventManager ( |
||
gameReference | ||
return | System |
public notify ( |
||
eventInfo | Information about the event. | |
return | void |
public register ( string type, HandleEvent handler ) : void | ||
type | string | A string denoting the event type to trigger the handler. |
handler | HandleEvent | The handler function declared in the form: void EventHandler (Event eventInfo); |
return | void |
public unregister ( string type, HandleEvent handler ) : void | ||
type | string | The type of event from which to remove the handler. |
handler | HandleEvent | The handler to remove from the notification list. |
return | void |