src/com/mmpp/motivationapp/backend/Achiever.java
public void update() {
		if(myAchievements.size() == allAchievements.size()) {
			return;
		}
		
		int i = 0;
		while(i < allAchievements.size() && allAchievements.get(i).isHasEarned()) {
			i++;
		}
		if(lifetimeCompleted >= allAchievements.get(i).getCost()) {
			earnAchievement(allAchievements.get(i));
		}
	}
/**
	 * Checks to see if user has earned any achievements
	 */
Checks to see if user has earned any achievements
Checks to see if user has earned any achievements
public void update() {
		if(myAchievements.size() == allAchievements.size()) {
			return;
		}
		int i = 0;
		while(i < allAchievements.size() && allAchievements.get(i).isHasEarned()) {
			i++;
		}
		if(lifetimeCompleted >= allAchievements.get(i).getCost()) {
			earnAchievement(allAchievements.get(i));
		}
	}
public void update ( ) { if ( myAchievements . size ( ) == allAchievements . size ( ) ) { return ; } int i = 0 ; while ( i < allAchievements . size ( ) && allAchievements . get ( i ) . isHasEarned ( ) ) { i ++ ; } if ( lifetimeCompleted >= allAchievements . get ( i ) . getCost ( ) ) { earnAchievement ( allAchievements . get ( i ) ) ; } }
Checks to see if user has earned any achievements
Checks to see if user has earned any achievements