Changeset 11927 for code/branches/3DPacman_FS18/src/modules
- Timestamp:
- Apr 29, 2018, 2:07:18 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/3DPacman_FS18/src/modules/pacman/PacmanGhost.cc
r11926 r11927 46 46 RegisterObject(PacmanGhost); 47 47 48 /*this->velocity = Vector3(0, 0, 0);48 this->velocity = Vector3(0, 0, 0); 49 49 50 50 this->setCollisionType(CollisionType::Dynamic); … … 55 55 56 56 this->target_x = actuelposition.x; 57 this->target_z = actuelposition.z; */57 this->target_z = actuelposition.z; 58 58 59 59 } … … 105 105 106 106 //setorientation 107 /* 107 108 108 this->actuelposition = this->getPosition(); 109 109 … … 330 330 } //End of Position table 331 331 } 332 */ 332 333 333 } 334 334 … … 345 345 } 346 346 347 void PacmanGhost::setnewTarget(int firstdec, int seconddec){ /*347 void PacmanGhost::setnewTarget(int firstdec, int seconddec){ 348 348 decision = rand()%2; 349 349 switch(decision){ … … 359 359 break; 360 360 } 361 */361 362 362 } 363 363 364 364 void PacmanGhost::setnewTarget(int firstdec, int seconddec, int thirddec){ 365 /*365 366 366 decision = rand()%3; 367 367 switch(decision){ … … 382 382 break; 383 383 } 384 */384 385 385 } 386 386 387 387 void PacmanGhost::setnewTarget(int firstdec, int seconddec, int thirddec, int fourthdec){ 388 /*388 389 389 decision = rand()%4; 390 390 switch(decision){ … … 410 410 break; 411 411 } 412 */412 413 413 } 414 414 … … 425 425 426 426 void PacmanGhost::resetGhost(){ 427 /*427 428 428 this->setPosition(this->resetposition); 429 429 this->ismoving = false; … … 432 432 this->target_x = actuelposition.x; 433 433 this->target_z = actuelposition.z; 434 */434 435 435 } 436 436 }
Note: See TracChangeset
for help on using the changeset viewer.