Changeset 6778 for code/branches/rocket/src/orxonox/controllers
- Timestamp:
- Apr 26, 2010, 3:40:16 PM (15 years ago)
- Location:
- code/branches/rocket/src/orxonox/controllers
- Files:
-
- 4 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/rocket/src/orxonox/controllers/AIController.cc
r5929 r6778 57 57 58 58 // search enemy 59 random = rnd(maxrand);59 /* random = rnd(maxrand); 60 60 if (random < 15 && (!this->target_)) 61 this->searchNewTarget(); 61 this->searchNewTarget();*/ 62 62 63 63 // forget enemy 64 random = rnd(maxrand);65 if (random < 5 && (this->target_))66 this->forgetTarget();64 //random = rnd(maxrand); 65 //if (random < 5 && (this->target_)) 66 // this->forgetTarget(); 67 67 68 68 // next enemy 69 random = rnd(maxrand);69 /* random = rnd(maxrand); 70 70 if (random < 10 && (this->target_)) 71 this->searchNewTarget(); 71 this->searchNewTarget();*/ 72 72 73 73 // fly somewhere … … 87 87 88 88 // shoot 89 random = rnd(maxrand);90 if (random < 75 && (this->target_ && !this->bShooting_))91 this->bShooting_ = true;89 //random = rnd(maxrand); 90 //if (random < 75 && (this->target_ && !this->bShooting_)) 91 // this->bShooting_ = true; 92 92 93 // stop shooting94 random = rnd(maxrand);95 if (random < 25 && (this->bShooting_))96 this->bShooting_ = false;93 //// stop shooting 94 //random = rnd(maxrand); 95 //if (random < 25 && (this->bShooting_)) 96 // this->bShooting_ = false; 97 97 } 98 98 -
code/branches/rocket/src/orxonox/controllers/CMakeLists.txt
r6417 r6778 8 8 WaypointController.cc 9 9 WaypointPatrolController.cc 10 RocketController.cc 10 11 )
Note: See TracChangeset
for help on using the changeset viewer.