Yatzy/Domain/Category.java

37 lines
671 B
Java
Raw Permalink 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;
2024-05-03 21:10:44 +02:00
public Category(String name, String description){
2024-05-03 12:22:01 +02:00
this.name = name;
this.description = description;
this.scored = false;
2024-05-03 21:10:44 +02:00
this.score = 0;
2024-05-03 12:22:01 +02:00
}
public String getName(){
return name;
}
public String getDescription(){
return description;
}
public boolean isScored(){
return scored;
}
2024-05-06 15:57:22 +02:00
public int getScore(int[] values){
2024-05-03 12:22:01 +02:00
return score;
}
2024-05-03 21:10:44 +02:00
public boolean correctCategory(int[] values){
2024-05-03 12:22:01 +02:00
return true;
}
}