Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 1, 2011, 12:54:47 AM (13 years ago)
Author:
jo
Message:

'Stable' update. Merging by hand.

File:
1 edited

Legend:

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

    r8706 r8723  
    3737#include "Controller.h"
    3838#include "controllers/NewHumanController.h"
     39#include "weaponsystem/WeaponSystem.h"
    3940
    4041namespace orxonox
     
    7778            static void passivebehaviour(const bool passive);
    7879            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);
    7986
    8087        protected:
     
    141148            bool bShooting_;
    142149
     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
    143160        private:
     161            void setupWeapons();
     162            const std::string& getWeaponname(int i, Pawn* pawn);
     163            bool bSetupWorked;
    144164    };
    145165}
Note: See TracChangeset for help on using the changeset viewer.