17 lines
290 B
Java
17 lines
290 B
Java
|
package domain.sheets;
|
||
|
|
||
|
import java.util.ArrayList;
|
||
|
|
||
|
public class Chance extends Category{
|
||
|
|
||
|
@Override
|
||
|
public void calcValueFromRoll(ArrayList<Integer> rolls) {
|
||
|
int sum = 0;
|
||
|
for(int roll : rolls){
|
||
|
sum += roll;
|
||
|
}
|
||
|
|
||
|
this.value = sum;
|
||
|
}
|
||
|
}
|