Back to project page SevenWonders.
The source code is released under:
Apache License
If you think the Android project SevenWonders listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
/** * /* w ww . j av a 2s . c o m*/ */ package skylight1.sevenwonders.levels; import skylight1.sevenwonders.services.SoundTracks; import skylight1.sevenwonders.view.GameMessagesDisplay; import skylight1.sevenwonders.view.SevenWondersGLRenderer; import skylight1.sevenwonders.view.GameMessagesDisplay.GameEvent; import android.os.Handler; final class CoinCollisionAction implements CollisionAction { @Override public void collision(Handler aUiHandler, SevenWondersGLRenderer aSevenWondersGLRenderer) { SoundTracks.getInstance().play(SoundTracks.COIN); GameMessagesDisplay.postMessage(GameEvent.COIN_COLLECTED); aSevenWondersGLRenderer.getGameState().incrementNumberofCoinsCollected(); } }