@@ -19,6 +19,11 @@ module Phaser.Components {
1919 this . game = parent . game ;
2020 this . _sprite = parent ;
2121
22+ this . onAddedToGroup = new Phaser . Signal ;
23+ this . onRemovedFromGroup = new Phaser . Signal ;
24+ this . onKilled = new Phaser . Signal ;
25+ this . onRevived = new Phaser . Signal ;
26+
2227 this . onInputOver = new Phaser . Signal ;
2328 this . onInputOut = new Phaser . Signal ;
2429 this . onInputDown = new Phaser . Signal ;
@@ -36,14 +41,25 @@ module Phaser.Components {
3641 */
3742 private _sprite : Sprite ;
3843
39- // Creation and destruction
40- public onAdded : Phaser . Signal ;
41- public onKilled : Phaser . Signal ;
42- public onRevived : Phaser . Signal ;
44+ /**
45+ * Dispatched by the Group this Sprite is added to.
46+ */
47+ public onAddedToGroup : Phaser . Signal ;
4348
44- public onOutOfBounds : Phaser . Signal ;
49+ /**
50+ * Dispatched by the Group this Sprite is removed from.
51+ */
52+ public onRemovedFromGroup : Phaser . Signal ;
53+
54+ /**
55+ * Dispatched when this Sprite is killed.
56+ */
57+ public onKilled : Phaser . Signal ;
4558
46- // Input related events
59+ /**
60+ * Dispatched when this Sprite is revived.
61+ */
62+ public onRevived : Phaser . Signal ;
4763
4864 /**
4965 * Dispatched by the Input component when a pointer moves over an Input enabled sprite.
@@ -65,6 +81,11 @@ module Phaser.Components {
6581 */
6682 public onInputUp : Phaser . Signal ;
6783
84+
85+
86+
87+ public onOutOfBounds : Phaser . Signal ;
88+
6889 }
6990
7091}
0 commit comments