Bug fix in LightmapRenderer — Now water attenuates sunlight, new creature attribution: religion sphere

Former-commit-id: fd200afabaf318bec060a8fea9eb82da6f105aad
Former-commit-id: e035368f4d6d589bdb6822301fee763eb00df984
This commit is contained in:
Song Minjae
2016-02-25 01:28:00 +09:00
parent 19630e2147
commit c56e09505b
19 changed files with 209 additions and 171 deletions

View File

@@ -12,7 +12,7 @@ public class FudgeDice {
/**
* Define new set of fudge dice with given counts.
* @param randfunc
* @param randfunc java.util.Random or its extension
* @param counts amount of die
*/
public FudgeDice(Random randfunc, int counts) {
@@ -21,8 +21,8 @@ public class FudgeDice {
}
/**
* Roll dice and get result. Range: [-3, 3] for three dice
* @return
* Roll dice and get result.
* @return Normal distributed integer [-N , N] for diceCount of N. 0 is the most frequent return.
*/
public int roll() {
int diceResult = 0;
@@ -34,7 +34,7 @@ public class FudgeDice {
}
/**
* @return random [-1, 0, 1]
* @return integer randomly picked from {-1, 0, 1}
*/
private int rollSingleDie() {
return (randfunc.nextInt(3)) - 1;