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.getDesiredSkill();
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 @Override
95 public int getDesiredSkill() {
96 return skillLevel;
97 }
98
99
100
101
102
103
104 public UT2004NativeBotConfig setDesiredSkill(int skillLevel) {
105 this.skillLevel = skillLevel;
106 return this;
107 }
108
109 @Override
110 public String getSkin() {
111 return null;
112 }
113
114 public String getBotClass() {
115 return botClass;
116 }
117
118
119 public void setBotClass(String botClass) {
120 this.botClass = botClass;
121 }
122
123 }