Changeset 205f525 in advance-wars for src/com/example/advancewars/Game.java


Ignore:
Timestamp:
Jan 30, 2011, 8:26:19 PM (14 years ago)
Author:
dportnoy <devnull@…>
Branches:
master
Children:
26a9fd6, a0f5455
Parents:
90838a1
Message:

Added some buttons to the main menu. Added a new package to the project to make gui creation easier.

File:
1 edited

Legend:

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

    r90838a1 r205f525  
    5252                this.finish();
    5353                break;
    54             case MENU_NEW:
    55                 break;
    5654        }
    5755
     
    6765    @Override
    6866    protected void onCreate(Bundle savedInstanceState) {
    69         Log.w("Blackjack", "We're inside onCreate");
     67        Log.w("AdvanceWars", "We're inside onCreate");
    7068       
    7169        super.onCreate(savedInstanceState);
    7270       
    73         Log.w("Blackjack", "the super constructor was called successfully");
     71        Log.w("AdvanceWars", "the super constructor was called successfully");
    7472
    7573        // turn off the window's title bar
     
    8179        mGameView = (GameView) findViewById(R.id.lunar);
    8280        mThread = mGameView.getThread();
     81        mGameView.mGame = this;
    8382
    8483        mGameView.setTextView((TextView) findViewById(R.id.text));
    8584
    8685        if (savedInstanceState == null) {       // we were just launched: set up a new game
    87                 Log.w("Blackjack", "SIS is null");
     86                Log.w("AdvanceWars", "SIS is null");
    8887               
    8988                mThread.setState(AppState.RUNNING);
    9089        } else {
    91             Log.w("Blackjack", "SIS is nonnull");
     90            Log.w("AdvanceWars", "SIS is nonnull");
    9291           
    9392            mThread.setState(AppState.RUNNING);
Note: See TracChangeset for help on using the changeset viewer.