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 Map<IToken, PlayerScore> finalScores = new HashMap<IToken, PlayerScore>();
22
23 private Map<IToken, Integer> totalKills = new HashMap<IToken, Integer>();
24
25 private Map<IToken, Integer> wasKilled = new HashMap<IToken, Integer>();
26
27 private HashMapMap<IToken, IToken, Integer> killCounts = new HashMapMap<IToken, IToken, Integer>();
28
29 private Map<IToken, Integer> suicides = new HashMap<IToken, Integer>();
30
31 private Map<IToken, UT2004AnalyzerObsStats> botObservers = new HashMap<IToken, UT2004AnalyzerObsStats>();
32
33 private Map<Integer, TeamScore> teamScores = new HashMap<Integer, TeamScore>();
34
35
36
37
38 public double matchTimeEnd;
39
40 @Override
41 public String toString() {
42 return "UT2004DeathMatchResult[" + (isDraw() ? "DRAW" : ("winnerTeam=" + getWinnerTeam()) ) + "]";
43 }
44
45 public UT2004CaptureTheFlagResult() {
46 super();
47 }
48
49 public UT2004CaptureTheFlagResult(int winnerTeam) {
50 super(winnerTeam);
51 }
52
53
54
55
56
57 public List<IToken> getBots() {
58 return bots;
59 }
60
61
62
63
64
65 public void setBots(List<IToken> bots) {
66 this.bots = bots;
67 }
68
69
70
71
72
73 public List<IToken> getNativeBots() {
74 return nativeBots;
75 }
76
77
78
79
80
81 public void setNativeBots(List<IToken> nativeBots) {
82 this.nativeBots = nativeBots;
83 }
84
85
86
87
88
89 public List<IToken> getAllBots() {
90 List<IToken> all = new ArrayList<IToken>(this.bots);
91 all.addAll(this.nativeBots);
92 return all;
93 }
94
95
96
97
98 public double getMatchTimeEnd() {
99 return matchTimeEnd;
100 }
101
102
103
104
105 public void setMatchTimeEnd(double matchTimeEnd) {
106 this.matchTimeEnd = matchTimeEnd;
107 }
108
109
110
111
112
113 public Map<IToken, PlayerScore> getFinalScores() {
114 return finalScores;
115 }
116
117
118
119
120
121 public void setFinalScores(Map<IToken, PlayerScore> finalScores) {
122 this.finalScores = finalScores;
123 }
124
125
126
127
128
129 public HashMapMap<IToken, IToken, Integer> getKillCounts() {
130 return killCounts;
131 }
132
133
134
135
136
137 public void setKillCounts(HashMapMap<IToken, IToken, Integer> killCounts) {
138 this.killCounts = killCounts;
139 }
140
141
142
143
144
145
146 public Map<IToken, Integer> getTotalKills() {
147 return totalKills;
148 }
149
150
151
152
153
154 public void setTotalKills(Map<IToken, Integer> totalKills) {
155 this.totalKills = totalKills;
156 }
157
158
159
160
161
162 public Map<IToken, Integer> getWasKilled() {
163 return wasKilled;
164 }
165
166
167
168
169
170 public void setWasKilled(Map<IToken, Integer> wasKilled) {
171 this.wasKilled = wasKilled;
172 }
173
174
175
176
177
178 public Map<IToken, Integer> getSuicides() {
179 return suicides;
180 }
181
182
183
184
185
186 public void setSuicides(Map<IToken, Integer> suicides) {
187 this.suicides = suicides;
188 }
189
190
191
192
193
194 public Map<IToken, UT2004AnalyzerObsStats> getBotObservers() {
195 return botObservers;
196 }
197
198
199
200
201
202 public void setBotObservers(Map<IToken, UT2004AnalyzerObsStats> botObservers) {
203 this.botObservers = botObservers;
204 }
205
206
207
208
209
210 public Map<Integer, TeamScore> getTeamScores() {
211 return teamScores;
212 }
213
214
215
216
217
218 public void setTeamScores(Map<Integer, TeamScore> teamScores) {
219 this.teamScores = teamScores;
220 }
221
222 }