All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.sf.esfinge.gamification.achievement.Trophy Maven / Gradle / Ivy

Go to download

The Esfinge Gamification is a matadata based framework applicable to systems requiring an gamification logic, regardless of the domain.

There is a newer version: 1.2.8
Show newest version
package net.sf.esfinge.gamification.achievement;

public class Trophy implements Achievement{
	
	private String name;

	public void setName(String name) {
		this.name = name;
	}

	public Trophy(String name) {
		super();
		this.name = name;
	}

	public String getName() {
		return name;
	}
	
	public void incrementAchievement(Achievement a) {
	}
	
	public boolean removeAchievement(Achievement r) {
		return true;
	}

	public String toString() {
		return "Tropy Achieved - " + name;
	}

	@Override
	public boolean equals(Object o) {
		if(!(o instanceof Trophy))
			return false;
		Trophy t = (Trophy)o;
		return this.name.equals(t.name);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy