
net.sf.esfinge.gamification.achievement.Trophy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gamification Show documentation
Show all versions of gamification Show documentation
The Esfinge Gamification is a matadata based framework applicable to systems requiring an gamification logic, regardless of the domain.
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