diff --git a/src/main/java/org/dungeon/achievements/AchievementComponent.java b/src/main/java/org/dungeon/achievements/AchievementComponent.java deleted file mode 100644 index d13bcc7f..00000000 --- a/src/main/java/org/dungeon/achievements/AchievementComponent.java +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright (C) 2014 Bernardo Sulzbach - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -package org.dungeon.achievements; - -import org.dungeon.creatures.Hero; - -/** - * The component abstract class. - *

- * Created by Bernardo on 07/12/2014. - */ -abstract class AchievementComponent { - - abstract boolean isFulfilled(Hero hero); - -} diff --git a/src/main/java/org/dungeon/achievements/BattleComponent.java b/src/main/java/org/dungeon/achievements/BattleComponent.java index 43333065..9d93ae26 100644 --- a/src/main/java/org/dungeon/achievements/BattleComponent.java +++ b/src/main/java/org/dungeon/achievements/BattleComponent.java @@ -27,7 +27,7 @@ *

* Created by Bernardo on 07/12/2014. */ -final class BattleComponent extends AchievementComponent { +final class BattleComponent { final CounterMap killsByCreatureType = new CounterMap(); final CounterMap killsByCreatureID = new CounterMap(); @@ -35,7 +35,6 @@ final class BattleComponent extends AchievementComponent { int battleCount; int longestBattleLength; - @Override public boolean isFulfilled(Hero hero) { BattleStatistics stats = hero.getBattleStatistics(); if (stats.getBattleCount() < battleCount) { diff --git a/src/main/java/org/dungeon/achievements/ExplorationComponent.java b/src/main/java/org/dungeon/achievements/ExplorationComponent.java index 44a83eff..d7264f61 100644 --- a/src/main/java/org/dungeon/achievements/ExplorationComponent.java +++ b/src/main/java/org/dungeon/achievements/ExplorationComponent.java @@ -27,7 +27,7 @@ *

* Created by Bernardo on 07/12/2014. */ -final class ExplorationComponent extends AchievementComponent { +final class ExplorationComponent { /** * Stores how many kills in Locations with a specified ID the Hero must have. @@ -44,7 +44,6 @@ final class ExplorationComponent extends AchievementComponent { */ final CounterMap sameLocationVisitCounter = new CounterMap(); - @Override public boolean isFulfilled(Hero hero) { ExplorationLog explorationLog = hero.getExplorationLog(); for (ID locationID : killCounter.keySet()) {