Esempio n. 1
0
 public void initDistributions()
 {
     // danger - chance of criminal spawning
     dangerSet = new DiscreteDistribution();
     dangerSet.add(0.00f, 0.90f, 0.01f);
     dangerSet.add(0.90f, 0.97f, 0.02f);
     dangerSet.add(0.97f, 1.00f, 0.03f);
     // income - gold per turn
     incomeSet = new DiscreteDistribution();
     incomeSet.add(0.00f, 0.60f, 1);
     incomeSet.add(0.60f, 0.90f, 2);
     incomeSet.add(0.90f, 1.00f, 3);
     // safety - ???
     safetySet = new DiscreteDistribution();
     safetySet.add(0.00f, 0.60f, 1);
     safetySet.add(0.60f, 0.90f, 2);
     safetySet.add(0.90f, 1.00f, 3);
 }