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(); }
@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(); }
protected void drawScore() { foundInfo.draw(); }
@Override protected int checkIchigu() { int score = super.checkIchigu(); if (score > 0) foundInfo.increaseFound(); return score; }
@Override protected void onStartMode() { super.onStartMode(); foundInfo.reset(); }