Skip to content
Snippets Groups Projects

Resolve "As a client I want gamification of the badges, so that users remain engaged."

9 files
+ 118
27
Compare changes
  • Side-by-side
  • Inline
Files
9
@@ -15,6 +15,7 @@ public class Sticker {
String description;
String imgPath;
int rarity; //1-5
boolean hasSticker;
public Sticker(int id, String name, String description, int rarity) {
this.id = id;
@@ -33,6 +34,16 @@ public class Sticker {
return imgFile.exists() ? imgPath : notFoundPath;
}
public boolean hasSticker(){
return hasSticker;
}
public void setVisibility(boolean hasSticker){
this.hasSticker = hasSticker;
}
public String getVisibility(){
return hasSticker? "" : "grayedOut";
}
@Override
public boolean equals(Object o) {
Loading