Skip to content

Commit

Permalink
Removed the unused AchievementComponent.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bernardo committed Jan 11, 2015
1 parent 3c11408 commit dde2eb5
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 35 deletions.
31 changes: 0 additions & 31 deletions src/main/java/org/dungeon/achievements/AchievementComponent.java

This file was deleted.

3 changes: 1 addition & 2 deletions src/main/java/org/dungeon/achievements/BattleComponent.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,14 @@
* <p/>
* Created by Bernardo on 07/12/2014.
*/
final class BattleComponent extends AchievementComponent {
final class BattleComponent {

final CounterMap<String> killsByCreatureType = new CounterMap<String>();
final CounterMap<ID> killsByCreatureID = new CounterMap<ID>();
final CounterMap<ID> killsByWeapon = new CounterMap<ID>();
int battleCount;
int longestBattleLength;

@Override
public boolean isFulfilled(Hero hero) {
BattleStatistics stats = hero.getBattleStatistics();
if (stats.getBattleCount() < battleCount) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
* <p/>
* 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.
Expand All @@ -44,7 +44,6 @@ final class ExplorationComponent extends AchievementComponent {
*/
final CounterMap<ID> sameLocationVisitCounter = new CounterMap<ID>();

@Override
public boolean isFulfilled(Hero hero) {
ExplorationLog explorationLog = hero.getExplorationLog();
for (ID locationID : killCounter.keySet()) {
Expand Down

0 comments on commit dde2eb5

Please sign in to comment.