37 << QVariant(false) // artillery 11 |
37 << QVariant(false) // artillery 11 |
38 << QVariant(true) // random order 12 |
38 << QVariant(true) // random order 12 |
39 << QVariant(false) // king 13 |
39 << QVariant(false) // king 13 |
40 << QVariant(false) // place hog 14 |
40 << QVariant(false) // place hog 14 |
41 << QVariant(false) // shared ammo 15 |
41 << QVariant(false) // shared ammo 15 |
42 << QVariant(100) // damage modfier 16 |
42 << QVariant(false) //disable girders 16 |
43 << QVariant(45) // turn time 17 |
43 << QVariant(100) // damage modfier 17 |
44 << QVariant(100) // init health 18 |
44 << QVariant(45) // turn time 18 |
45 << QVariant(15) // sudden death 19 |
45 << QVariant(100) // init health 19 |
46 << QVariant(5) // case prob 20 |
46 << QVariant(15) // sudden death 20 |
47 << QVariant(3) // mines time 21 |
47 << QVariant(5) // case prob 21 |
48 << QVariant(4) // landadds 22 |
48 << QVariant(3) // mines time 22 |
49 << QVariant(0) // mine dud pct 23 |
49 << QVariant(4) // landadds 23 |
|
50 << QVariant(0) // mine dud pct 24 |
50 ; |
51 ; |
51 |
52 |
52 AmmoSchemeModel::AmmoSchemeModel(QObject* parent, const QString & fileName) : |
53 AmmoSchemeModel::AmmoSchemeModel(QObject* parent, const QString & fileName) : |
53 QAbstractTableModel(parent), |
54 QAbstractTableModel(parent), |
54 numberOfDefaultSchemes(4), |
55 numberOfDefaultSchemes(4), |
77 << "artillery" // 11 |
78 << "artillery" // 11 |
78 << "randomorder" // 12 |
79 << "randomorder" // 12 |
79 << "king" // 13 |
80 << "king" // 13 |
80 << "placehog" // 14 |
81 << "placehog" // 14 |
81 << "sharedammo" // 15 |
82 << "sharedammo" // 15 |
82 << "damagefactor" // 16 |
83 << "disablegirders" // 16 |
83 << "turntime" // 17 |
84 << "damagefactor" // 17 |
84 << "health" // 18 |
85 << "turntime" // 18 |
85 << "suddendeath" // 19 |
86 << "health" // 19 |
86 << "caseprobability" // 20 |
87 << "suddendeath" // 20 |
87 << "minestime" // 21 |
88 << "caseprobability" // 21 |
88 << "landadds" // 22 |
89 << "minestime" // 22 |
89 << "minedudpct" // 23 |
90 << "landadds" // 23 |
|
91 << "minedudpct" // 24 |
90 ; |
92 ; |
91 |
93 |
92 QList<QVariant> proMode; |
94 QList<QVariant> proMode; |
93 proMode |
95 proMode |
94 << predefSchemesNames[1] // name 0 |
96 << predefSchemesNames[1] // name 0 |
105 << QVariant(false) // artillery 11 |
107 << QVariant(false) // artillery 11 |
106 << QVariant(true) // random order 12 |
108 << QVariant(true) // random order 12 |
107 << QVariant(false) // king 13 |
109 << QVariant(false) // king 13 |
108 << QVariant(false) // place hog 14 |
110 << QVariant(false) // place hog 14 |
109 << QVariant(true) // shared ammo 15 |
111 << QVariant(true) // shared ammo 15 |
110 << QVariant(100) // damage modfier 16 |
112 << QVariant(false) //disable girders 16 |
111 << QVariant(15) // turn time 17 |
113 << QVariant(100) // damage modfier 17 |
112 << QVariant(100) // init health 18 |
114 << QVariant(15) // turn time 18 |
113 << QVariant(15) // sudden death 19 |
115 << QVariant(100) // init health 19 |
114 << QVariant(0) // case prob 20 |
116 << QVariant(15) // sudden death 20 |
115 << QVariant(3) // mines time 21 |
117 << QVariant(0) // case prob 21 |
116 << QVariant(4) // landadds 22 |
118 << QVariant(3) // mines time 22 |
117 << QVariant(0) // mine dud pct 23 |
119 << QVariant(4) // landadds 23 |
|
120 << QVariant(0) // mine dud pct 24 |
118 ; |
121 ; |
119 |
122 |
120 QList<QVariant> shoppa; |
123 QList<QVariant> shoppa; |
121 shoppa |
124 shoppa |
122 << predefSchemesNames[2] // name 0 |
125 << predefSchemesNames[2] // name 0 |
133 << QVariant(false) // artillery 11 |
136 << QVariant(false) // artillery 11 |
134 << QVariant(true) // random order 12 |
137 << QVariant(true) // random order 12 |
135 << QVariant(false) // king 13 |
138 << QVariant(false) // king 13 |
136 << QVariant(false) // place hog 14 |
139 << QVariant(false) // place hog 14 |
137 << QVariant(true) // shared ammo 15 |
140 << QVariant(true) // shared ammo 15 |
138 << QVariant(100) // damage modfier 16 |
141 << QVariant(true) //disable girders 16 |
139 << QVariant(30) // turn time 17 |
142 << QVariant(100) // damage modfier 17 |
140 << QVariant(100) // init health 18 |
143 << QVariant(30) // turn time 18 |
141 << QVariant(50) // sudden death 19 |
144 << QVariant(100) // init health 19 |
142 << QVariant(1) // case prob 20 |
145 << QVariant(50) // sudden death 20 |
143 << QVariant(3) // mines time 21 |
146 << QVariant(1) // case prob 21 |
144 << QVariant(4) // landadds 22 |
147 << QVariant(3) // mines time 22 |
145 << QVariant(0) // mine dud pct 23 |
148 << QVariant(4) // landadds 23 |
|
149 << QVariant(0) // mine dud pct 24 |
146 ; |
150 ; |
147 |
151 |
148 QList<QVariant> basketball; |
152 QList<QVariant> basketball; |
149 basketball |
153 basketball |
150 << predefSchemesNames[3] // name 0 |
154 << predefSchemesNames[3] // name 0 |
161 << QVariant(false) // artillery 11 |
165 << QVariant(false) // artillery 11 |
162 << QVariant(true) // random order 12 |
166 << QVariant(true) // random order 12 |
163 << QVariant(false) // king 13 |
167 << QVariant(false) // king 13 |
164 << QVariant(false) // place hog 14 |
168 << QVariant(false) // place hog 14 |
165 << QVariant(true) // shared ammo 15 |
169 << QVariant(true) // shared ammo 15 |
166 << QVariant(100) // damage modfier 16 |
170 << QVariant(true) //disable girders 16 |
167 << QVariant(30) // turn time 17 |
171 << QVariant(100) // damage modfier 17 |
168 << QVariant(100) // init health 18 |
172 << QVariant(30) // turn time 18 |
169 << QVariant(15) // sudden death 19 |
173 << QVariant(100) // init health 19 |
170 << QVariant(0) // case prob 20 |
174 << QVariant(15) // sudden death 20 |
171 << QVariant(3) // mines time 21 |
175 << QVariant(0) // case prob 21 |
172 << QVariant(4) // landadds 22 |
176 << QVariant(3) // mines time 22 |
173 << QVariant(0) // mine dud pct 23 |
177 << QVariant(4) // landadds 23 |
|
178 << QVariant(0) // mine dud pct 24 |
174 ; |
179 ; |
175 |
180 |
176 QList<QVariant> minefield; |
181 QList<QVariant> minefield; |
177 minefield |
182 minefield |
178 << predefSchemesNames[4] // name 0 |
183 << predefSchemesNames[4] // name 0 |
189 << QVariant(false) // artillery 11 |
194 << QVariant(false) // artillery 11 |
190 << QVariant(true) // random order 12 |
195 << QVariant(true) // random order 12 |
191 << QVariant(false) // king 13 |
196 << QVariant(false) // king 13 |
192 << QVariant(false) // place hog 14 |
197 << QVariant(false) // place hog 14 |
193 << QVariant(true) // shared ammo 15 |
198 << QVariant(true) // shared ammo 15 |
194 << QVariant(150) // damage modfier 16 |
199 << QVariant(true) //disable girders 16 |
195 << QVariant(30) // turn time 17 |
200 << QVariant(150) // damage modfier 17 |
196 << QVariant(50) // init health 18 |
201 << QVariant(30) // turn time 18 |
197 << QVariant(15) // sudden death 19 |
202 << QVariant(50) // init health 19 |
198 << QVariant(0) // case prob 20 |
203 << QVariant(15) // sudden death 20 |
199 << QVariant(0) // mines time 21 |
204 << QVariant(0) // case prob 21 |
200 << QVariant(50) // landadds 22 |
205 << QVariant(0) // mines time 22 |
201 << QVariant(0) // mine dud pct 23 |
206 << QVariant(50) // landadds 23 |
|
207 << QVariant(0) // mine dud pct 24 |
202 ; |
208 ; |
203 |
209 |
204 schemes.append(defaultScheme); |
210 schemes.append(defaultScheme); |
205 schemes.append(proMode); |
211 schemes.append(proMode); |
206 schemes.append(shoppa); |
212 schemes.append(shoppa); |