Back to project page AndroSol.
The source code is released under:
MIT License
If you think the Android project AndroSol listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package lib.cards.views; /*ww w. java2 s . c om*/ import lib.cards.models.EventHandler; import lib.cards.views.GameBoard.SpriteAddedListener; public class SpriteAddedEventHandler extends EventHandler<SpriteAddedListener, SpriteEventObject> { public void fireOnSpriteAdded(GameBoard board, Sprite sprite) { if (hasListeners()) { SpriteEventObject eventObject = new SpriteEventObject(board, sprite); notifyListeners(eventObject); } } @Override public void notifyListener(SpriteAddedListener listener, SpriteEventObject eventObject) { listener.onSpriteAdded(eventObject); } }