Yatzy/Domain/Category.java

37 lines
659 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(){
return score;
}
public boolean correctCategory(int[] values){
return true;
}
}