37 lines
678 B
Java
37 lines
678 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, 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;
|
||
|
}
|
||
|
}
|