Exemplo n.º 1
0
  public FullChallengeMode() {
    foundInfo = new FoundInfo();

    //		foundInfo.setAlignment(Text.HAlignCenter, Text.VAlignBottom);
    //		foundInfo.setPadding(0, 55);

    foundInfo.setAlignment(Text.HAlignLeft, Text.VAlignTop);
    foundInfo.setPadding(10, 110);

    getDealer().setAsInfiniteDeal();
  }
Exemplo n.º 2
0
  @Override
  protected void onEndMode() {
    int hiScore = Settings.getInteger(R.settings.hiscores.fullchallenge, 0);
    int score = foundInfo.getFound();
    if (score > hiScore) Settings.putInteger(R.settings.hiscores.fullchallenge, score);

    setResultText(
        String.format(
            Ichigu.getString(R.strings.fullChallengeResult),
            foundInfo.getText(),
            (score > hiScore ? Ichigu.getString(R.strings.newHiscore) : "")));

    super.onEndMode();
  }
Exemplo n.º 3
0
 protected void drawScore() {
   foundInfo.draw();
 }
Exemplo n.º 4
0
 @Override
 protected int checkIchigu() {
   int score = super.checkIchigu();
   if (score > 0) foundInfo.increaseFound();
   return score;
 }
Exemplo n.º 5
0
 @Override
 protected void onStartMode() {
   super.onStartMode();
   foundInfo.reset();
 }