-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathTttRules.java
35 lines (28 loc) · 1.01 KB
/
TttRules.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package me.nikl.mpgamebundle.tictactoe;
import me.nikl.gamebox.data.toplist.SaveType;
import me.nikl.gamebox.game.rules.GameRuleRewards;
/**
* @author Niklas Eicker
*/
public class TttRules extends GameRuleRewards {
private boolean loseOnTimeOver;
private int timePerTurn = 10;
private int randomMoveProbability = 0;
public TttRules(String key, boolean saveStats, SaveType saveType, double cost, double moneyToWin, int tokenToWin, int timePerTurn, boolean loseOnTimeOver) {
super(key, saveStats, saveType, cost, moneyToWin, tokenToWin);
this.loseOnTimeOver = loseOnTimeOver;
this.timePerTurn = timePerTurn;
}
public boolean isLoseOnTimeOver() {
return loseOnTimeOver;
}
public int getTimePerTurn() {
return timePerTurn;
}
public int getRandomMoveProbability() {
return randomMoveProbability;
}
public void setRandomMoveProbability(int randomMoveProbability) {
this.randomMoveProbability = randomMoveProbability;
}
}