Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 27, 2011, 7:50:16 PM (14 years ago)
Author:
jo
Message:

The ai's strength can be modified by changing the value botlevel_ . The level can be adjusted between 1 (weak) and 10 (strong).
The next step is adding xml and console command functionality.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/ai/src/orxonox/controllers/ArtificialController.h

    r7832 r7833  
    8080           
    8181            virtual void doFire();
     82            void setBotLevel(float level=1.0f);
     83            inline float getBotLevel() const
     84                { return this->botlevel_; }
    8285
    8386        protected:
     
    144147            int numberOfWeapons;
    145148            int weapons[WeaponSystem::MAX_WEAPON_MODES];
     149            float botlevel_; //< Makes the level of a bot configurable.
    146150
    147151        private:
Note: See TracChangeset for help on using the changeset viewer.