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; /*from w ww.j a v a 2s.co m*/ import lib.cards.models.EventHandler; import lib.cards.views.GameBoard.SpriteDefaultActionListener; public class SpriteDefaultActionEventHandler extends EventHandler<SpriteDefaultActionListener, SpriteEventObject> { public void fireOnSpriteDefaultAction(GameBoard board, Sprite sprite) { if (hasListeners()) { SpriteEventObject eventObject = new SpriteEventObject(board, sprite); notifyListeners(eventObject); } } @Override public void notifyListener(SpriteDefaultActionListener listener, SpriteEventObject eventObject) { listener.onSpriteDefaultAction(eventObject); } }