- Timestamp:
- Jul 1, 2011, 12:54:47 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/ai2/src/orxonox/controllers/ArtificialController.h
r8706 r8723 37 37 #include "Controller.h" 38 38 #include "controllers/NewHumanController.h" 39 #include "weaponsystem/WeaponSystem.h" 39 40 40 41 namespace orxonox … … 77 78 static void passivebehaviour(const bool passive); 78 79 static void formationsize(const int size); 80 81 virtual void doFire(); 82 void setBotLevel(float level=1.0f); 83 inline float getBotLevel() const 84 { return this->botlevel_; } 85 static void setAllBotLevel(float level); 79 86 80 87 protected: … … 141 148 bool bShooting_; 142 149 150 int numberOfWeapons; //< Used for weapon init function. Displayes number of weapons available for a bot. 151 int weapons[WeaponSystem::MAX_WEAPON_MODES]; 152 int projectiles[WeaponSystem::MAX_WEAPON_MODES]; 153 float botlevel_; //< Makes the level of a bot configurable. 154 float timeout_; //< Timeout for rocket usage. (If a rocket misses, a bot should stop using it.) 155 156 enum Mode {DEFAULT, ROCKET, DEFENCE, MOVING};//TODO; implement DEFENCE, MOVING modes 157 Mode mode_; //TODO: replace single value with stack-like implementation: std::vector<Mode> mode_; 158 void setPreviousMode(); 159 143 160 private: 161 void setupWeapons(); 162 const std::string& getWeaponname(int i, Pawn* pawn); 163 bool bSetupWorked; 144 164 }; 145 165 }
Note: See TracChangeset
for help on using the changeset viewer.