- Timestamp:
- Jun 30, 2011, 8:30:13 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/ai/src/orxonox/controllers/ArtificialController.cc
r8719 r8720 91 91 this->numberOfWeapons = 0; 92 92 this->botlevel_ = 1.0f; 93 this->mode_ = DEFAULT; 93 this->mode_ = DEFAULT;////Vector-implementation: mode_.push_back(DEFAULT); 94 94 this->timeout_=0; 95 95 } … … 98 98 { 99 99 if (this->isInitialized()) 100 { 100 {//Vector-implementation: mode_.erase(mode_.begin(),mode_.end()); 101 101 this->removeFromFormation(); 102 102 … … 1046 1046 {//ROCKET: mid range weapon 1047 1047 //TODO: Which weapon is the rocket? How many rockets are available? 1048 this->mode_ = ROCKET; 1048 this->mode_ = ROCKET;//Vector-implementation: mode_.push_back(ROCKET); 1049 1049 this->getControllableEntity()->fire(3);//launch rocket 1050 1050 if(this->getControllableEntity()&&this->target_)//after fire(3) getControllableEntity() refers to the rocket! … … 1081 1081 else if(wpn=="LaserMunition")//other munitiontypes are not defined yet :-( 1082 1082 weapons[0]=0; 1083 else if(wpn==" LENSFLARE")//TODO: insert right munition name1083 else if(wpn=="FusionMunition") 1084 1084 weapons[1]=1; 1085 else if(wpn==" SIMPLEROCKET")//TODO: insert right munition name1085 else if(wpn=="TargetSeeking Rockets") 1086 1086 weapons[2]=2; 1087 1087 else if(wpn=="ROCKET")//TODO: insert right munition name … … 1133 1133 void ArtificialController::setPreviousMode() 1134 1134 { 1135 this->mode_ = DEFAULT; 1135 this->mode_ = DEFAULT; //Vector-implementation: mode_.pop_back(); 1136 1136 } 1137 1137
Note: See TracChangeset
for help on using the changeset viewer.