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
31 private String botClass = "JakobM";
32
33 public UT2004NativeBotConfig() {
34 }
35
36
37
38
39
40 public UT2004NativeBotConfig(UT2004NativeBotConfig value) {
41 this.botId = value.getBotId();
42 this.teamNumber = value.getTeamNumber();
43 this.skillLevel = value.getSkillLevel();
44 }
45
46 @Override
47 public IToken getBotId() {
48 return botId;
49 }
50
51
52
53
54
55
56
57
58 public UT2004NativeBotConfig setBotId(IToken botId) {
59 this.botId = botId;
60 return this;
61 }
62
63
64
65
66
67
68
69
70 public UT2004NativeBotConfig setBotId(String botId) {
71 this.botId = Tokens.get(botId);
72 return this;
73 }
74
75 @Override
76 public int getTeamNumber() {
77 return teamNumber;
78 }
79
80
81
82
83
84
85 public UT2004NativeBotConfig setTeamNumber(int teamNumber) {
86 this.teamNumber = teamNumber;
87 return this;
88 }
89
90
91
92
93
94 public int getSkillLevel() {
95 return skillLevel;
96 }
97
98
99
100
101
102
103 public UT2004NativeBotConfig setSkillLevel(int skillLevel) {
104 this.skillLevel = skillLevel;
105 return this;
106 }
107
108 public String getBotClass() {
109 return botClass;
110 }
111
112 public void setBotClass(String botClass) {
113 this.botClass = botClass;
114 }
115
116 }