Back to project page rock-paper-scissors.
The source code is released under:
MIT License
If you think the Android project rock-paper-scissors 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 au.com.codeka.rps.game; //w w w.j av a 2 s. co m import au.com.codeka.rps.GameFragment; /** * This is the state we enter when we've found an opponent and the game itself is running. */ public class GameRunningState extends State { private StateManager stateManager; @Override public void onEnter(StateManager stateManager) { this.stateManager = stateManager; this.stateManager.getGameActivity().setFragment(new GameFragment()); } }