37 lines
671 B
Java
37 lines
671 B
Java
package Domain;
|
|
|
|
public class Category {
|
|
|
|
private String name;
|
|
private String description;
|
|
private boolean scored;
|
|
private int score;
|
|
|
|
public Category(String name, String description){
|
|
this.name = name;
|
|
this.description = description;
|
|
this.scored = false;
|
|
this.score = 0;
|
|
}
|
|
|
|
public String getName(){
|
|
return name;
|
|
}
|
|
|
|
public String getDescription(){
|
|
return description;
|
|
}
|
|
|
|
public boolean isScored(){
|
|
return scored;
|
|
}
|
|
|
|
public int getScore(int[] values){
|
|
return score;
|
|
}
|
|
|
|
public boolean correctCategory(int[] values){
|
|
return true;
|
|
}
|
|
}
|