2013-10-01 12:54:29 +00:00
|
|
|
/**
|
|
|
|
* @author Richard Davey <rich@photonstorm.com>
|
|
|
|
* @copyright 2013 Photon Storm Ltd.
|
|
|
|
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
|
|
|
* @module Phaser.Events
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
2013-09-08 21:38:19 +00:00
|
|
|
/**
|
|
|
|
* The Events component is a collection of events fired by the parent game object and its components.
|
2013-10-01 12:54:29 +00:00
|
|
|
*
|
|
|
|
* @class Phaser.Events
|
|
|
|
* @constructor
|
|
|
|
*
|
|
|
|
* @param {Phaser.Sprite} sprite - A reference to Description.
|
2013-09-08 21:38:19 +00:00
|
|
|
*/
|
|
|
|
Phaser.Events = function (sprite) {
|
|
|
|
|
|
|
|
this.parent = sprite;
|
|
|
|
this.onAddedToGroup = new Phaser.Signal;
|
|
|
|
this.onRemovedFromGroup = new Phaser.Signal;
|
|
|
|
this.onKilled = new Phaser.Signal;
|
|
|
|
this.onRevived = new Phaser.Signal;
|
|
|
|
this.onOutOfBounds = new Phaser.Signal;
|
|
|
|
|
|
|
|
this.onInputOver = null;
|
|
|
|
this.onInputOut = null;
|
|
|
|
this.onInputDown = null;
|
|
|
|
this.onInputUp = null;
|
|
|
|
this.onDragStart = null;
|
|
|
|
this.onDragStop = null;
|
|
|
|
|
2013-09-10 19:40:34 +00:00
|
|
|
this.onAnimationStart = null;
|
|
|
|
this.onAnimationComplete = null;
|
|
|
|
this.onAnimationLoop = null;
|
|
|
|
|
2013-09-08 21:38:19 +00:00
|
|
|
};
|