1 package cz.cuni.amis.pogamut.ut2004.tournament.match;
2
3 import cz.cuni.amis.utils.token.IToken;
4 import cz.cuni.amis.utils.token.Tokens;
5
6
7
8
9
10
11 public class UT2004NativeBotConfig implements IUT2004BotConfig {
12
13
14
15
16
17
18 private IToken botId;
19
20
21
22
23 private int teamNumber = 255;
24
25
26
27
28 private int skillLevel = 4;
29
30 public UT2004NativeBotConfig() {
31 }
32
33
34
35
36
37 public UT2004NativeBotConfig(UT2004NativeBotConfig value) {
38 this.botId = value.getBotId();
39 this.teamNumber = value.getTeamNumber();
40 this.skillLevel = value.getSkillLevel();
41 }
42
43 @Override
44 public IToken getBotId() {
45 return botId;
46 }
47
48
49
50
51
52
53
54
55 public UT2004NativeBotConfig setBotId(IToken botId) {
56 this.botId = botId;
57 return this;
58 }
59
60
61
62
63
64
65
66
67 public UT2004NativeBotConfig setBotId(String botId) {
68 this.botId = Tokens.get(botId);
69 return this;
70 }
71
72 @Override
73 public int getTeamNumber() {
74 return teamNumber;
75 }
76
77
78
79
80
81
82 public UT2004NativeBotConfig setTeamNumber(int teamNumber) {
83 this.teamNumber = teamNumber;
84 return this;
85 }
86
87
88
89
90
91 public int getSkillLevel() {
92 return skillLevel;
93 }
94
95
96
97
98
99
100 public UT2004NativeBotConfig setSkillLevel(int skillLevel) {
101 this.skillLevel = skillLevel;
102 return this;
103 }
104
105 }