Changeset 95509e1 in galcon-client for src/com/example/helloandroid/Game.java


Ignore:
Timestamp:
Jun 5, 2010, 7:01:47 PM (15 years ago)
Author:
dportnoy <devnull@…>
Branches:
master
Children:
c65ef39
Parents:
61c4fbc
Message:

Removed reference Lunar Lander classes and lots of code that was originally from Lunar Lander. Fleets are now the same color as the player who sent them.

File:
1 edited

Legend:

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

    r61c4fbc r95509e1  
    7575                mThread.unpause();
    7676                return true;
    77             case MENU_EASY:
    78                 mThread.setDifficulty(DrawingThread.DIFFICULTY_EASY);
    79                 return true;
    80             case MENU_MEDIUM:
    81                 mThread.setDifficulty(DrawingThread.DIFFICULTY_MEDIUM);
    82                 return true;
    83             case MENU_HARD:
    84                 mThread.setDifficulty(DrawingThread.DIFFICULTY_HARD);
    85                 return true;
    8677        }
    8778
     
    113104            // we were just launched: set up a new game
    114105                mThread.setState(DrawingThread.STATE_RUNNING);
    115             Log.w(this.getClass().getName(), "SIS is null");
     106            Log.w("Galcon", "SIS is null");
    116107        } else {
    117             // we are being restored: resume a previous game
    118                 mThread.restoreState(savedInstanceState);
    119             Log.w(this.getClass().getName(), "SIS is nonnull");
     108            Log.w("Galcon", "SIS is nonnull");
    120109        }
    121110    }
     
    140129        // just have the View's thread save its state into our Bundle
    141130        super.onSaveInstanceState(outState);
    142         mThread.saveState(outState);
    143         Log.w(this.getClass().getName(), "SIS called");
     131        Log.w("Galcon", "SIS called");
    144132    }
    145133}
Note: See TracChangeset for help on using the changeset viewer.