Changeset 11917 for code/branches/3DPacman_FS18/src/modules
- Timestamp:
- Apr 29, 2018, 1:12:17 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/3DPacman_FS18/src/modules/pacman/PacmanGhost.cc
r11915 r11917 88 88 Vector3(70,10,195),Vector3(70,10,150),Vector3(20,10,150),Vector3(-20,10,150),Vector3(-70,10,150), //25-29 89 89 Vector3(-135,10,150),Vector3(-185,10,150),Vector3(-215,10,150),Vector3(-215,10,105),Vector3(-135,10,105) //30-34 90 Vector3(-70,10,105),Vector3(-20,10,105),Vector3(20,10,105),Vector3(70,10,105),Vector3(70,10,60), //35-39 91 Vector3(0,10,60),Vector3(-70,10,60),Vector3(-135,10,15),Vector3(-70,10,60),Vector3(0,10,15), //40-44 92 Vector3(70,10,15),Vector3(-70,10,-35),Vector3(-20,10,-35),Vector3(20,10,-35),Vector3(70,10,-35), //45-49 93 Vector3(70,10,-85),Vector3(20,10,-85),Vector3(-20,10,-85),Vector3(-70,10,-85),Vector3(-135,10,-85), //50-54 94 Vector3(-215,10,-85),Vector3(-215,10,-135),Vector3(-135,10,-135),Vector3(-70,10,-135),Vector3(-20,10,-135), //55-59 95 Vector3(20,10,-135),Vector3(70,10,-135),Vector3(20,10,-195),Vector3(-20,10,-195),Vector3(-135,10,-195), //60-64 96 Vector3(-215,10,-195),Vector3(0,10,-35) //65-66 90 97 }; 91 98 … … 151 158 } 152 159 else if(findpos(actuelposition,possibleposition[9])){ 153 setnewTarget(6,8,10 ); //38160 setnewTarget(6,8,10,38); 154 161 } 155 162 else if(findpos(actuelposition,possibleposition[10])){ 156 setnewTarget(9,11 ); //45,9163 setnewTarget(9,11,45); 157 164 } 158 165 else if(findpos(actuelposition,possibleposition[11])){ … … 163 170 } 164 171 else if(findpos(actuelposition,possibleposition[13])){ 165 setnewTarget(11,14,16 ); //61172 setnewTarget(11,14,16,61); 166 173 } 167 174 else if(findpos(actuelposition,possibleposition[14])){ … … 172 179 } 173 180 else if(findpos(actuelposition,possibleposition[16])){ 174 setnewTarget(13,15 ); //62181 setnewTarget(13,15,62); 175 182 } 176 183 else if(findpos(actuelposition,possibleposition[17])){ … … 205 212 } 206 213 else if(findpos(actuelposition,possibleposition[27])){ 207 setnewTarget(26,28 );//37214 setnewTarget(26,28,37); 208 215 } 209 216 else if(findpos(actuelposition,possibleposition[28])){ 210 setnewTarget(27,29 ); //36217 setnewTarget(27,29,36); 211 218 } 212 219 else if(findpos(actuelposition,possibleposition[29])){ … … 226 233 } 227 234 else if(findpos(actuelposition,possibleposition[34])){ 228 setnewTarget(30,33);//35,42 229 } 230 235 setnewTarget(30,33,35,42); 236 } 237 else if(findpos(actuelposition,possibleposition[35])){ 238 setnewTarget(34,36,41); 239 } 240 else if(findpos(actuelposition,possibleposition[36])){ 241 setnewTarget(28,35); 242 } 243 else if(findpos(actuelposition,possibleposition[37])){ 244 setnewTarget(27,38); 245 } 246 else if(findpos(actuelposition,possibleposition[38])){ 247 setnewTarget(9,37,39); 248 } 249 else if(findpos(actuelposition,possibleposition[39])){ 250 setnewTarget(38,40,45); 251 } 252 else if(findpos(actuelposition,possibleposition[40])){ 253 setnewTarget(39,41); //Shouldn't be able to return in center 254 } 255 else if(findpos(actuelposition,possibleposition[41])){ 256 setnewTarget(35,43); 257 } 258 else if(findpos(actuelposition,possibleposition[42])){ 259 setnewTarget(34,43,54); 260 } 261 else if(findpos(actuelposition,possibleposition[43])){ 262 setnewTarget(41,46); 263 } 264 else if(findpos(actuelposition,possibleposition[44])){ 265 setnewTarget(40,66); 266 } 267 else if(findpos(actuelposition,possibleposition[45])){ 268 setnewTarget(10,39,49); 269 } 270 else if(findpos(actuelposition,possibleposition[46])){ 271 setnewTarget(43,47); 272 } 273 else if(findpos(actuelposition,possibleposition[47])){ 274 setnewTarget(46,52,66); 275 } 276 else if(findpos(actuelposition,possibleposition[48])){ 277 setnewTarget(49,51,66); 278 } 279 else if(findpos(actuelposition,possibleposition[49])){ 280 setnewTarget(45,48); 281 } 282 else if(findpos(actuelposition,possibleposition[50])){ 283 setnewTarget(51,61); 284 } 285 else if(findpos(actuelposition,possibleposition[51])){ 286 setnewTarget(48,50); 287 } 288 else if(findpos(actuelposition,possibleposition[52])){ 289 setnewTarget(47,53); 290 } 291 else if(findpos(actuelposition,possibleposition[53])){ 292 setnewTarget(52,58); 293 } 294 else if(findpos(actuelposition,possibleposition[54])){ 295 setnewTarget(42,55,57); 296 } 297 else if(findpos(actuelposition,possibleposition[55])){ 298 setnewTarget(54,56); 299 } 300 else if(findpos(actuelposition,possibleposition[56])){ 301 setnewTarget(55,57,65); 302 } 303 else if(findpos(actuelposition,possibleposition[57])){ 304 setnewTarget(54,56,58,64); 305 } 306 else if(findpos(actuelposition,possibleposition[58])){ 307 setnewTarget(53,57,59); 308 } 309 else if(findpos(actuelposition,possibleposition[59])){ 310 setnewTarget(58,59,63); 311 } 312 else if(findpos(actuelposition,possibleposition[60])){ 313 setnewTarget(59,61,62); 314 } 315 else if(findpos(actuelposition,possibleposition[61])){ 316 setnewTarget(13,50,60); 317 } 318 else if(findpos(actuelposition,possibleposition[62])){ 319 setnewTarget(16,60); 320 } 321 else if(findpos(actuelposition,possibleposition[63])){ 322 setnewTarget(59,64); 323 } 324 else if(findpos(actuelposition,possibleposition[64])){ 325 setnewTarget(57,63,65); 326 } 327 else if(findpos(actuelposition,possibleposition[65])){ 328 setnewTarget(56,64); 329 } 231 330 232 331 else{ 332 this->resetGhost(); //Shouldn't happen... 233 333 } //End of Position table 234 334 }
Note: See TracChangeset
for help on using the changeset viewer.