Changeset b660017 in advance-wars for src/com/medievaltech/advancewars/Game.java


Ignore:
Timestamp:
Jun 6, 2011, 5:09:12 PM (13 years ago)
Author:
dportnoy <devnull@…>
Branches:
master
Children:
fea4b77
Parents:
379005b
Message:

Removed the AppState enum and a bunch of code associated with it. This was all from the demo app that was used as a starting point for blackjack and looks like it's only useful for games that run in real-time, as opposed to turn-based.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/com/medievaltech/advancewars/Game.java

    r379005b rb660017  
    9999        if (savedInstanceState == null) {       // we were just launched: set up a new game
    100100                Log.w("AdvanceWars", "SIS is null");
    101                
    102                 mThread.setState(AppState.RUNNING);
    103101        } else {
    104102            Log.w("AdvanceWars", "SIS is nonnull");
    105103           
    106             mThread.setState(AppState.RUNNING);
    107            
    108104            mGameView.getThread().mGameState = (GameState)savedInstanceState.getSerializable("gameState");
    109105        }
    110     }
    111 
    112     /**
    113      * Invoked when the Activity loses user focus.
    114      */
    115     @Override
    116     protected void onPause() {
    117         super.onPause();
    118         mGameView.getThread().pause(); // pause game when Activity pauses
    119106    }
    120107
Note: See TracChangeset for help on using the changeset viewer.