Yatzy/Domain/Category.java

37 lines
678 B
Java
Raw Normal View History

2024-05-03 12:22:01 +02:00
package Domain;
public class Category {
private String name;
private String description;
private boolean scored;
private int score;
public Category(String name, String description, boolean scored, int score){
this.name = name;
this.description = description;
this.scored = false;
this.score = score;
}
public String getName(){
return name;
}
public String getDescription(){
return description;
}
public boolean isScored(){
return scored;
}
public int getScore(){
return score;
}
public boolean correctCategory(){
return true;
}
}