Debian Codegraph @

loadlevel.cpp

raw symbols SCIP
1 /* ************************************************************************* *
2 SDL-Ball - DX-Ball/Breakout remake with openGL and SDL for Linux
3 Copyright (C) 2008 Jimmy Christensen ( dusted at dusted dot dk )
4
5 This program is free software: you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation, either version 3 of the License, or
8 (at your option) any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>.
17 * ************************************************************************* */
18
19 class powerupLoaderClasscxx . . $ powerupLoaderClass# {
20 public:
21 //most common
22 stringcxx . . $ std/string# chancescxx . . $ powerupLoaderClass#chances.[4];
23 int powerupscxx . . $ powerupLoaderClass#powerups.;
24 int powerupsGivencxx . . $ powerupLoaderClass#powerupsGiven.;
25 stringcxx . . $ std/string# evilPowerupscxx . . $ powerupLoaderClass#evilPowerups.;
26
27 powerupLoaderClasscxx . . $ powerupLoaderClass#powerupLoaderClass(49f6e7a06ebc5aa8).() {
28 int chance=-1;
29 powerupscxx . . $ powerupLoaderClass#powerups.=0;
30 powerupsGivencxx . . $ powerupLoaderClass#powerupsGiven.=0;
31 stringcxx . . $ std/string# linecxx . . $ std/__cxx11/basic_string#basic_string(925dcc5e17f50391).;
32
33 //Which powerups are evil?
34 evilPowerupscxx . . $ powerupLoaderClass#evilPowerups. =cxx . . $ std/__cxx11/basic_string#`operator=`(978ca1133b5f6e74). "2H37"; //P
35
36 ifstreamcxx . . $ std/ifstream# powerFilecxx . . $ std/basic_ifstream#basic_ifstream(b8cd37071ce335df).(useThemecxx . . $ useTheme(24764cae04130674).("/powerups.txt"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).,settingcxx . . $ std/__cxx11/basic_string#basic_string(a47f53d4115f6ce5)..lvlThemecxx . . $ settings#lvlTheme.).datacxx . . $ std/__cxx11/basic_string#data(258ee1c9e0a18a5c).());
37 if(!powerFile.is_opencxx . . $ std/basic_ifstream#is_open(c9857a73d68e59ba).())
38 {
39 coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " Could not open 'powerups.txt'"<<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a).endlcxx . . $ std/endl(345bf97a19cc83a9).;
40 varcxx . . $ var..quitcxx . . $ vars#quit.=1;
41 return;
42 }
43
44 while(!powerFile.eofcxx . . $ std/basic_ios#eof(50ce9a9e25b4a850).())
45 {
46 getlinecxx . . $ std/getline(4ec722ed0b69c2ab).(powerFile, line);
47 if(line.comparecxx . . $ std/__cxx11/basic_string#compare(a291d14eafe45d05).("Most:")==0)
48 {
49 chance=0;
50 } else if(line.comparecxx . . $ std/__cxx11/basic_string#compare(a291d14eafe45d05).("More:")==0)
51 {
52 chance=1;
53 } else if(line.comparecxx . . $ std/__cxx11/basic_string#compare(a291d14eafe45d05).("Less:")==0)
54 {
55 chance=2;
56 } else if(line.comparecxx . . $ std/__cxx11/basic_string#compare(a291d14eafe45d05).("Least:")==0)
57 {
58 chance=3;
59 } else {
60 //No matches, either its a comment or a powerup.
61 if(line.comparecxx . . $ std/__cxx11/basic_string#compare(42b39d70d030e8aa).(0,2,"//")!=0 && line.comparecxx . . $ std/__cxx11/basic_string#compare(a291d14eafe45d05).("")!=0)
62 {
63 chancescxx . . $ powerupLoaderClass#chances.[chance] +=cxx . . $ std/__cxx11/basic_string#`operator+=`(63cc1ae870623930). line[cxx . . $ std/__cxx11/basic_string#`operator[]`(7b73c3179b3cb3ad).0];
64 powerupscxx . . $ powerupLoaderClass#powerups.++;
65 }
66 }
67
68 }
69 }
70
71 char selectRandomPowerupcxx . . $ powerupLoaderClass#selectRandomPowerup(6e9c618e4dd2eafc).()
72 {
73 int i = randcxx . . $ rand(9efc7249d839d30e).()%100;
74 powerupsGivencxx . . $ powerupLoaderClass#powerupsGiven.++;
75 if(i < 1) //1% of powerups are from this class
76 {
77 i=randcxx . . $ rand(9efc7249d839d30e).()%chancescxx . . $ powerupLoaderClass#chances.[3].lengthcxx . . $ std/__cxx11/basic_string#length(6f8bd5c0ea8fb29a).();
78 return(chancescxx . . $ powerupLoaderClass#chances.[3][cxx . . $ std/__cxx11/basic_string#`operator[]`(7b73c3179b3cb3ad).i]);
79 } else if(i < 11) //10% of powerups are from this class
80 {
81 i=randcxx . . $ rand(9efc7249d839d30e).()%chancescxx . . $ powerupLoaderClass#chances.[2].lengthcxx . . $ std/__cxx11/basic_string#length(6f8bd5c0ea8fb29a).();
82 return(chancescxx . . $ powerupLoaderClass#chances.[2][cxx . . $ std/__cxx11/basic_string#`operator[]`(7b73c3179b3cb3ad).i]);
83 } else if(i < 41) //30% of powerups are from this class
84 {
85 i=randcxx . . $ rand(9efc7249d839d30e).()%chancescxx . . $ powerupLoaderClass#chances.[1].lengthcxx . . $ std/__cxx11/basic_string#length(6f8bd5c0ea8fb29a).();
86 return(chancescxx . . $ powerupLoaderClass#chances.[1][cxx . . $ std/__cxx11/basic_string#`operator[]`(7b73c3179b3cb3ad).i]);
87 } else { //Rest of the powerups are from this class
88 i=randcxx . . $ rand(9efc7249d839d30e).()%chancescxx . . $ powerupLoaderClass#chances.[0].lengthcxx . . $ std/__cxx11/basic_string#length(6f8bd5c0ea8fb29a).();
89 return(chancescxx . . $ powerupLoaderClass#chances.[0][cxx . . $ std/__cxx11/basic_string#`operator[]`(7b73c3179b3cb3ad).i]);
90 }
91 }
92
93 char randomPowerupcxx . . $ powerupLoaderClass#randomPowerup(e6e5e845b55315fc).(char p)
94 {
95 int i;
96 //First, decide if we are going to put a powerup in the brick. (based on p)
97 i=randcxx . . $ rand(9efc7249d839d30e).()%100;
98 if(p=='Q') //100% chance of evil
99 {
100 return(randomEvilPowerupcxx . . $ powerupLoaderClass#randomEvilPowerup(6e9c618e4dd2eafc).());
101 } else if(p=='K') //100% chance
102 {
103 return(selectRandomPowerupcxx . . $ powerupLoaderClass#selectRandomPowerup(6e9c618e4dd2eafc).());
104 } else if(p=='N' && i < 1) //1%
105 {
106 return(selectRandomPowerupcxx . . $ powerupLoaderClass#selectRandomPowerup(6e9c618e4dd2eafc).());
107 } else if(p=='M' && i < 2) //2%
108 {
109 return(selectRandomPowerupcxx . . $ powerupLoaderClass#selectRandomPowerup(6e9c618e4dd2eafc).());
110 } else if(p=='L' && i < 5) //5%
111 {
112 return(selectRandomPowerupcxx . . $ powerupLoaderClass#selectRandomPowerup(6e9c618e4dd2eafc).());
113 } else if(p=='J' && i < 10) //10%
114 {
115 return(selectRandomPowerupcxx . . $ powerupLoaderClass#selectRandomPowerup(6e9c618e4dd2eafc).());
116 }
117
118 //Return no powerup or return the specified.
119 if(p=='K' || p=='N' || p=='M' || p=='L' || p=='J')
120 {
121 return('0');
122 } else {
123 return(p);
124 }
125
126 }
127
128 char randomEvilPowerupcxx . . $ powerupLoaderClass#randomEvilPowerup(6e9c618e4dd2eafc).()
129 {
130 int i=randcxx . . $ rand(9efc7249d839d30e).()%evilPowerupscxx . . $ powerupLoaderClass#evilPowerups..lengthcxx . . $ std/__cxx11/basic_string#length(6f8bd5c0ea8fb29a).();
131 return(evilPowerupscxx . . $ powerupLoaderClass#evilPowerups.[cxx . . $ std/__cxx11/basic_string#`operator[]`(7b73c3179b3cb3ad).i]);
132 }
133
134 };
135
136 void loadlevelcxx . . $ loadlevel(868a7d721ce16093).(stringcxx . . $ std/string# file, brickcxx . . $ brick# bricks[] ,int level)
137 {
138 ifstreamcxx . . $ std/ifstream# levelfilecxx . . $ std/basic_ifstream#basic_ifstream(b8cd37071ce335df).(file.datacxx . . $ std/__cxx11/basic_string#data(258ee1c9e0a18a5c).());
139 if(!levelfile.is_opencxx . . $ std/basic_ifstream#is_open(c9857a73d68e59ba).())
140 {
141 coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " Could not open " <<cxx . . $ std/`operator<<`(88df5bef833f7f83). file <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). endlcxx . . $ std/endl(345bf97a19cc83a9).;
142 varcxx . . $ var..quitcxx . . $ vars#quit.=1;
143 return;
144 }
145 stringcxx . . $ std/string# linecxx . . $ std/__cxx11/basic_string#basic_string(925dcc5e17f50391).;
146 int levelread=0,brick=0,ch=0;
147 varcxx . . $ var..numlevelscxx . . $ vars#numlevels.=0;
148 varcxx . . $ var..scrollInfocxx . . $ vars#scrollInfo..dropcxx . . $ scrollInfoScruct#drop. = 0;
149
150
151 while(!levelfile.eofcxx . . $ std/basic_ios#eof(50ce9a9e25b4a850).())
152 {
153 getlinecxx . . $ std/getline(4ec722ed0b69c2ab).(levelfile,line);
154 //Har vi fundet start?
155 if(levelread == 0)
156 {
157 //Nej, er det nu?
158 if(line.substrcxx . . $ std/__cxx11/basic_string#substr(149c655009c9bbd2).(0,11) ==cxx . . $ std/`operator==`(4b17aa87c9f300c6). "** Start **")
159 {
160 levelread++;
161 }
162 } else if(levelread == 1)
163 {
164 //Do the level stop now?
165 if(line.substrcxx . . $ std/__cxx11/basic_string#substr(149c655009c9bbd2).(0,10) ==cxx . . $ std/`operator==`(4b17aa87c9f300c6). "** Stop **")
166 {
167 levelread=0;
168 varcxx . . $ var..numlevelscxx . . $ vars#numlevels.++;
169 brick=0;
170 } else { //Reading data from level
171
172 if(varcxx . . $ var..numlevelscxx . . $ vars#numlevels. == level)
173 {
174 if(line[cxx . . $ std/__cxx11/basic_string#`operator[]`(7b73c3179b3cb3ad).0] == '>')
175 {
176 if(line.substrcxx . . $ std/__cxx11/basic_string#substr(149c655009c9bbd2).(0,6) ==cxx . . $ std/`operator==`(4b17aa87c9f300c6). "> down")
177 {
178 varcxx . . $ var..scrollInfocxx . . $ vars#scrollInfo..dropspeedcxx . . $ scrollInfoScruct#dropspeed. = atolcxx . . $ atol(fd364382987d21ca).( line.substrcxx . . $ std/__cxx11/basic_string#substr(149c655009c9bbd2).(7,line.lengthcxx . . $ std/__cxx11/basic_string#length(6f8bd5c0ea8fb29a).()).datacxx . . $ std/__cxx11/basic_string#data(258ee1c9e0a18a5c).() );
179 varcxx . . $ var..scrollInfocxx . . $ vars#scrollInfo..dropcxx . . $ scrollInfoScruct#drop. = 1;
180 }
181 } else {
182 while(line[cxx . . $ std/__cxx11/basic_string#`operator[]`(7b73c3179b3cb3ad).ch] != 0)
183 {
184 bricks[brick].powerupcxx . . $ brick#powerup. = line[cxx . . $ std/__cxx11/basic_string#`operator[]`(7b73c3179b3cb3ad).ch];
185 bricks[brick].typecxx . . $ brick#type. = line[cxx . . $ std/__cxx11/basic_string#`operator[]`(7b73c3179b3cb3ad).ch+1];
186
187 if(bricks[brick].typecxx . . $ brick#type. == 'D')
188 {
189 char rgb[3][5];
190
191 sprintf(rgb[0], "0x%c%c", line[cxx . . $ std/__cxx11/basic_string#`operator[]`(7b73c3179b3cb3ad).ch+2], line[cxx . . $ std/__cxx11/basic_string#`operator[]`(7b73c3179b3cb3ad).ch+3]);
192 sprintf(rgb[1], "0x%c%c", line[cxx . . $ std/__cxx11/basic_string#`operator[]`(7b73c3179b3cb3ad).ch+4], line[cxx . . $ std/__cxx11/basic_string#`operator[]`(7b73c3179b3cb3ad).ch+5]);
193 sprintf(rgb[2], "0x%c%c", line[cxx . . $ std/__cxx11/basic_string#`operator[]`(7b73c3179b3cb3ad).ch+6], line[cxx . . $ std/__cxx11/basic_string#`operator[]`(7b73c3179b3cb3ad).ch+7]);
194
195 bricks[brick].texcxx . . $ object#tex..propcxx . . $ textureClass#prop..glTexColorInfocxx . . $ texProp#glTexColorInfo.[0] = 0.003921569*strtolcxx . . $ strtol(8cc4c7acb13e570c).(rgb[0], NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, 16);
196 bricks[brick].texcxx . . $ object#tex..propcxx . . $ textureClass#prop..glTexColorInfocxx . . $ texProp#glTexColorInfo.[1] = 0.003921569*strtolcxx . . $ strtol(8cc4c7acb13e570c).(rgb[1], NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, 16);
197 bricks[brick].texcxx . . $ object#tex..propcxx . . $ textureClass#prop..glTexColorInfocxx . . $ texProp#glTexColorInfo.[2] = 0.003921569*strtolcxx . . $ strtol(8cc4c7acb13e570c).(rgb[2], NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, 16);
198
199 bricks[brick].texcxx . . $ object#tex..propcxx . . $ textureClass#prop..glParColorInfocxx . . $ texProp#glParColorInfo.[0] = 0.003921569*strtolcxx . . $ strtol(8cc4c7acb13e570c).(rgb[0], NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, 16);
200 bricks[brick].texcxx . . $ object#tex..propcxx . . $ textureClass#prop..glParColorInfocxx . . $ texProp#glParColorInfo.[1] = 0.003921569*strtolcxx . . $ strtol(8cc4c7acb13e570c).(rgb[1], NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, 16);
201 bricks[brick].texcxx . . $ object#tex..propcxx . . $ textureClass#prop..glParColorInfocxx . . $ texProp#glParColorInfo.[2] = 0.003921569*strtolcxx . . $ strtol(8cc4c7acb13e570c).(rgb[2], NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!, 16);
202
203 bricks[brick].texcxx . . $ object#tex..propcxx . . $ textureClass#prop..glTexColorInfocxx . . $ texProp#glTexColorInfo.[3] = 1.0;
204 ch +=6;
205 }
206 //cout << "Level: " << levelnum << " brick: " << brick << " Powerup: " << line[ch] << " Type: " << line[ch+1]<<"\n";
207
208 brick++;
209 ch +=2;
210 }
211 ch=0;
212 } //Not a command
213 } //denne level settes op
214 }
215 }
216 }
217 coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "Read " <<cxx . . $ std/basic_ostream#`operator<<`(23b6575433a77e57). varcxx . . $ var..numlevelscxx . . $ vars#numlevels. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " levels from '"<<cxx . . $ std/`operator<<`(88df5bef833f7f83). file <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7)."'" <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). endlcxx . . $ std/endl(345bf97a19cc83a9).;
218 levelfile.closecxx . . $ std/basic_ifstream#close(49f6e7a06ebc5aa8).();
219 }
220
221 void initlevelscxx . . $ initlevels(83d74ed8983f71c9).(brickcxx . . $ brick# bricks[], textureClasscxx . . $ textureClass# texLvl[])
222 {
223 int brick;
224 powerupLoaderClasscxx . . $ powerupLoaderClass# powerupLoadercxx . . $ powerupLoaderClass#powerupLoaderClass(49f6e7a06ebc5aa8).;
225
226 //Temp storage for custom colors
227 GLfloat tempCol[4], tempParCol[3];
228
229 //Set dem op
230 int row,i;
231 i=0;
232
233 for(row=0;row<23;row++)
234 {
235
236 for(brick=0;brick < 26; brick++)
237 {
238
239 bricks[i].posxcxx . . $ object#posx. = -1.54 + (GLfloat)brick*0.1232;
240 bricks[i].posycxx . . $ object#posy. = 0.95+ ((GLfloat)row*0.07)*-1;
241
242 if(bricks[i].typecxx . . $ brick#type. != '0')
243 {
244 bricks[i].activecxx . . $ object#active.=1;
245 bricks[i].collidecxx . . $ object#collide.=1;
246 bricks[i].isdyingnormallycxx . . $ brick#isdyingnormally.=0;
247 bricks[i].isexplodingcxx . . $ brick#isexploding.=0;
248 bricks[i].reflectcxx . . $ object#reflect.=1;
249
250 bricks[i].fadecxx . . $ brick#fade.=1.0;
251 bricks[i].fadespeedcxx . . $ brick#fadespeed.=2.0;
252 bricks[i].zoomcxx . . $ brick#zoom.=1.0;
253 bricks[i].zoomspeedcxx . . $ brick#zoomspeed.=4.0;
254 bricks[i].widthcxx . . $ object#width.=0.0616;
255 bricks[i].heightcxx . . $ object#height.=0.035;
256
257 bricks[i].scorecxx . . $ brick#score.=11;
258 bricks[i].destroytowincxx . . $ brick#destroytowin.=1;
259 bricks[i].hitsLeftcxx . . $ brick#hitsLeft.=1;
260
261 bricks[i].powerupcxx . . $ brick#powerup. = powerupLoader.randomPowerupcxx . . $ powerupLoaderClass#randomPowerup(e6e5e845b55315fc).(bricks[i].powerupcxx . . $ brick#powerup.);
262
263 bricks[i].bricknumcxx . . $ brick#bricknum.=brick;
264
265 bricks[i].rowcxx . . $ brick#row.=row;
266 updated_nbrickcxx . . $ updated_nbrick.[row][brick] = i; // This brick is active
267 //cout<<"Brick:"<< nbrick[row][brick]<<endl;
268 } else {
269 bricks[i].scorecxx . . $ brick#score.=0;
270 bricks[i].destroytowincxx . . $ brick#destroytowin.=0;
271 bricks[i].activecxx . . $ object#active.=0;
272 updated_nbrickcxx . . $ updated_nbrick.[row][brick]=-1;
273 // cout<<"Brick:"<< nbrick[row][brick]<<endl;
274 }
275
276
277
278
279 if(bricks[i].typecxx . . $ brick#type. == '1')
280 {
281 bricks[i].texcxx . . $ object#tex.=cxx . . $ textureClass#`operator=`(3d2eb6eb750966d4).texLvl[6];
282 bricks[i].opacitycxx . . $ object#opacity.=texLvl[6].propcxx . . $ textureClass#prop..glTexColorInfocxx . . $ texProp#glTexColorInfo.[3];
283 } else if(bricks[i].typecxx . . $ brick#type. == '2')
284 {
285 bricks[i].texcxx . . $ object#tex.=cxx . . $ textureClass#`operator=`(3d2eb6eb750966d4).texLvl[7];
286 bricks[i].opacitycxx . . $ object#opacity.=texLvl[7].propcxx . . $ textureClass#prop..glTexColorInfocxx . . $ texProp#glTexColorInfo.[3];
287 }else if(bricks[i].typecxx . . $ brick#type. == '3')
288 {
289 bricks[i].powerupcxx . . $ brick#powerup. = '0';
290 bricks[i].texcxx . . $ object#tex.=cxx . . $ textureClass#`operator=`(3d2eb6eb750966d4). texLvl[2];
291 bricks[i].opacitycxx . . $ object#opacity.=texLvl[2].propcxx . . $ textureClass#prop..glTexColorInfocxx . . $ texProp#glTexColorInfo.[3];
292 bricks[i].scorecxx . . $ brick#score.=30;
293 bricks[i].destroytowincxx . . $ brick#destroytowin.=0;
294 } else if(bricks[i].typecxx . . $ brick#type. == '4')
295 {
296 bricks[i].texcxx . . $ object#tex.=cxx . . $ textureClass#`operator=`(3d2eb6eb750966d4).texLvl[4]; //glass texture
297 bricks[i].hitsLeftcxx . . $ brick#hitsLeft. = 2; //takes two hits to kill
298 bricks[i].opacitycxx . . $ object#opacity.=texLvl[4].propcxx . . $ textureClass#prop..glTexColorInfocxx . . $ texProp#glTexColorInfo.[3];
299 } else if(bricks[i].typecxx . . $ brick#type. == '5')
300 {
301 bricks[i].texcxx . . $ object#tex.=cxx . . $ textureClass#`operator=`(3d2eb6eb750966d4).texLvl[8];
302 bricks[i].opacitycxx . . $ object#opacity.=texLvl[8].propcxx . . $ textureClass#prop..glTexColorInfocxx . . $ texProp#glTexColorInfo.[3];
303
304
305 } else if(bricks[i].typecxx . . $ brick#type. == '6')
306 {
307 bricks[i].texcxx . . $ object#tex.=cxx . . $ textureClass#`operator=`(3d2eb6eb750966d4).texLvl[9];
308 bricks[i].opacitycxx . . $ object#opacity.=texLvl[9].propcxx . . $ textureClass#prop..glTexColorInfocxx . . $ texProp#glTexColorInfo.[3];
309
310
311 } else if(bricks[i].typecxx . . $ brick#type. == '7')
312 {
313 bricks[i].texcxx . . $ object#tex.=cxx . . $ textureClass#`operator=`(3d2eb6eb750966d4).texLvl[10];
314 bricks[i].opacitycxx . . $ object#opacity.=texLvl[10].propcxx . . $ textureClass#prop..glTexColorInfocxx . . $ texProp#glTexColorInfo.[3];
315
316
317 } else if(bricks[i].typecxx . . $ brick#type. == '8')
318 {
319 bricks[i].texcxx . . $ object#tex.=cxx . . $ textureClass#`operator=`(3d2eb6eb750966d4).texLvl[11];
320 bricks[i].opacitycxx . . $ object#opacity.=texLvl[11].propcxx . . $ textureClass#prop..glTexColorInfocxx . . $ texProp#glTexColorInfo.[3];
321
322 } else if(bricks[i].typecxx . . $ brick#type. == '9')
323 {
324 bricks[i].texcxx . . $ object#tex.=cxx . . $ textureClass#`operator=`(3d2eb6eb750966d4).texLvl[5]; //invisible texture
325 bricks[i].texcxx . . $ object#tex..framecxx . . $ textureClass#frame.=1;
326 bricks[i].hitsLeftcxx . . $ brick#hitsLeft. = 3; //takes 3 to kill
327 bricks[i].opacitycxx . . $ object#opacity.=texLvl[5].propcxx . . $ textureClass#prop..glTexColorInfocxx . . $ texProp#glTexColorInfo.[3];
328
329 } else if(bricks[i].typecxx . . $ brick#type. == 'A')
330 {
331 bricks[i].texcxx . . $ object#tex.=cxx . . $ textureClass#`operator=`(3d2eb6eb750966d4).texLvl[12];
332 bricks[i].opacitycxx . . $ object#opacity.=texLvl[12].propcxx . . $ textureClass#prop..glTexColorInfocxx . . $ texProp#glTexColorInfo.[3];
333 } else if(bricks[i].typecxx . . $ brick#type. == 'B')
334 {
335 bricks[i].texcxx . . $ object#tex.=cxx . . $ textureClass#`operator=`(3d2eb6eb750966d4).texLvl[0];
336 bricks[i].opacitycxx . . $ object#opacity.=texLvl[0].propcxx . . $ textureClass#prop..glTexColorInfocxx . . $ texProp#glTexColorInfo.[3];
337 } else if(bricks[i].typecxx . . $ brick#type. == 'C')
338 {
339 bricks[i].texcxx . . $ object#tex.=cxx . . $ textureClass#`operator=`(3d2eb6eb750966d4).texLvl[3];
340 bricks[i].opacitycxx . . $ object#opacity.=texLvl[3].propcxx . . $ textureClass#prop..glTexColorInfocxx . . $ texProp#glTexColorInfo.[3];
341 bricks[i].powerupcxx . . $ brick#powerup. = powerupLoader.randomEvilPowerupcxx . . $ powerupLoaderClass#randomEvilPowerup(6e9c618e4dd2eafc).();
342 } else if(bricks[i].typecxx . . $ brick#type. == 'D') //type D get colors applied by loadlevel.
343 {
344 //Hold the colors while applying texture props
345 memcpy(tempCol, bricks[i].texcxx . . $ object#tex..propcxx . . $ textureClass#prop..glTexColorInfocxx . . $ texProp#glTexColorInfo., sizeof(tempCol));
346 memcpy(tempParCol, bricks[i].texcxx . . $ object#tex..propcxx . . $ textureClass#prop..glParColorInfocxx . . $ texProp#glParColorInfo., sizeof(tempParCol));
347
348 bricks[i].texcxx . . $ object#tex. =cxx . . $ textureClass#`operator=`(3d2eb6eb750966d4). texLvl[1];
349
350 //Put pack the colors
351 memcpy(bricks[i].texcxx . . $ object#tex..propcxx . . $ textureClass#prop..glTexColorInfocxx . . $ texProp#glTexColorInfo.,tempCol, sizeof(tempCol));
352 memcpy(bricks[i].texcxx . . $ object#tex..propcxx . . $ textureClass#prop..glParColorInfocxx . . $ texProp#glParColorInfo.,tempParCol,sizeof(tempParCol));
353
354 bricks[i].opacitycxx . . $ object#opacity. = tempCol[3];
355
356 }
357
358 i++;
359 }
360 }
361 // cout << "Powerups given to this level: " << powerupLoader.powerupsGiven << endl;
362 }