Changeset b660017 in advance-wars for src/com/medievaltech/advancewars/Game.java
- Timestamp:
- Jun 6, 2011, 5:09:12 PM (13 years ago)
- Branches:
- master
- Children:
- fea4b77
- Parents:
- 379005b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/com/medievaltech/advancewars/Game.java
r379005b rb660017 99 99 if (savedInstanceState == null) { // we were just launched: set up a new game 100 100 Log.w("AdvanceWars", "SIS is null"); 101 102 mThread.setState(AppState.RUNNING);103 101 } else { 104 102 Log.w("AdvanceWars", "SIS is nonnull"); 105 103 106 mThread.setState(AppState.RUNNING);107 108 104 mGameView.getThread().mGameState = (GameState)savedInstanceState.getSerializable("gameState"); 109 105 } 110 }111 112 /**113 * Invoked when the Activity loses user focus.114 */115 @Override116 protected void onPause() {117 super.onPause();118 mGameView.getThread().pause(); // pause game when Activity pauses119 106 } 120 107
Note:
See TracChangeset
for help on using the changeset viewer.