1 package cz.cuni.amis.pogamut.ut2004.tournament.capturetheflag;
2
3 import java.util.ArrayList;
4 import java.util.HashMap;
5 import java.util.List;
6 import java.util.Map;
7
8 import cz.cuni.amis.pogamut.ut2004.analyzer.stats.UT2004AnalyzerObsStats;
9 import cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.PlayerScore;
10 import cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.TeamScore;
11 import cz.cuni.amis.pogamut.ut2004.tournament.match.result.UT2004TeamMatchResult;
12 import cz.cuni.amis.utils.maps.HashMapMap;
13 import cz.cuni.amis.utils.token.IToken;
14
15 public class UT2004CaptureTheFlagResult extends UT2004TeamMatchResult {
16
17 private List<IToken> bots = new ArrayList<IToken>();
18
19 private List<IToken> nativeBots = new ArrayList<IToken>();
20
21 private List<IToken> humans = new ArrayList<IToken>();
22
23 private Map<IToken, String> names = new HashMap<IToken, String>();
24
25 private Map<IToken, PlayerScore> finalScores = new HashMap<IToken, PlayerScore>();
26
27 private Map<IToken, Integer> totalKills = new HashMap<IToken, Integer>();
28
29 private Map<IToken, Integer> wasKilled = new HashMap<IToken, Integer>();
30
31 private HashMapMap<IToken, IToken, Integer> killCounts = new HashMapMap<IToken, IToken, Integer>();
32
33 private Map<IToken, Integer> suicides = new HashMap<IToken, Integer>();
34
35 private Map<IToken, UT2004AnalyzerObsStats> botObservers = new HashMap<IToken, UT2004AnalyzerObsStats>();
36
37 private Map<Integer, TeamScore> teamScores = new HashMap<Integer, TeamScore>();
38
39
40
41
42 public double matchTimeEnd;
43
44 @Override
45 public String toString() {
46 return "UT2004CaptureTheFlagResult[" + (isDraw() ? "DRAW" : ("winnerTeam=" + getWinnerTeam()) ) + "]";
47 }
48
49 public UT2004CaptureTheFlagResult() {
50 super();
51 }
52
53 public UT2004CaptureTheFlagResult(int winnerTeam) {
54 super(winnerTeam);
55 }
56
57
58
59
60
61 public List<IToken> getBots() {
62 return bots;
63 }
64
65
66
67
68
69 public void setBots(List<IToken> bots) {
70 this.bots = bots;
71 }
72
73
74
75
76
77 public List<IToken> getNativeBots() {
78 return nativeBots;
79 }
80
81
82
83
84
85 public void setNativeBots(List<IToken> nativeBots) {
86 this.nativeBots = nativeBots;
87 }
88
89
90
91
92
93 public List<IToken> getHumans() {
94 return humans;
95 }
96
97
98
99
100
101 public void setHumans(List<IToken> humans) {
102 this.humans = humans;
103 }
104
105
106
107
108
109 public Map<IToken, String> getNames() {
110 return names;
111 }
112
113
114
115
116
117 public void setNames(Map<IToken, String> names) {
118 this.names = names;
119 }
120
121
122
123
124
125 public List<IToken> getAllBots() {
126 List<IToken> all = new ArrayList<IToken>(this.bots);
127 all.addAll(this.nativeBots);
128 all.addAll(this.humans);
129 return all;
130 }
131
132
133
134
135 public double getMatchTimeEnd() {
136 return matchTimeEnd;
137 }
138
139
140
141
142 public void setMatchTimeEnd(double matchTimeEnd) {
143 this.matchTimeEnd = matchTimeEnd;
144 }
145
146
147
148
149
150 public Map<IToken, PlayerScore> getFinalScores() {
151 return finalScores;
152 }
153
154
155
156
157
158 public void setFinalScores(Map<IToken, PlayerScore> finalScores) {
159 this.finalScores = finalScores;
160 }
161
162
163
164
165
166 public HashMapMap<IToken, IToken, Integer> getKillCounts() {
167 return killCounts;
168 }
169
170
171
172
173
174 public void setKillCounts(HashMapMap<IToken, IToken, Integer> killCounts) {
175 this.killCounts = killCounts;
176 }
177
178
179
180
181
182
183 public Map<IToken, Integer> getTotalKills() {
184 return totalKills;
185 }
186
187
188
189
190
191 public void setTotalKills(Map<IToken, Integer> totalKills) {
192 this.totalKills = totalKills;
193 }
194
195
196
197
198
199 public Map<IToken, Integer> getWasKilled() {
200 return wasKilled;
201 }
202
203
204
205
206
207 public void setWasKilled(Map<IToken, Integer> wasKilled) {
208 this.wasKilled = wasKilled;
209 }
210
211
212
213
214
215 public Map<IToken, Integer> getSuicides() {
216 return suicides;
217 }
218
219
220
221
222
223 public void setSuicides(Map<IToken, Integer> suicides) {
224 this.suicides = suicides;
225 }
226
227
228
229
230
231 public Map<IToken, UT2004AnalyzerObsStats> getBotObservers() {
232 return botObservers;
233 }
234
235
236
237
238
239 public void setBotObservers(Map<IToken, UT2004AnalyzerObsStats> botObservers) {
240 this.botObservers = botObservers;
241 }
242
243
244
245
246
247 public Map<Integer, TeamScore> getTeamScores() {
248 return teamScores;
249 }
250
251
252
253
254
255 public void setTeamScores(Map<Integer, TeamScore> teamScores) {
256 this.teamScores = teamScores;
257 }
258
259 }