Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 22, 2011, 6:57:16 PM (13 years ago)
Author:
jo
Message:

Bots are ready for rocket usage. (The hit rate for rockets is just about 60% though.). Note that this is just a proof of concept implementation. The next goal is a more generic implementation that adjusts the AI to any spaceship, not only the assff and similar ones.

File:
1 edited

Legend:

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

    r8701 r8711  
    149149            int weapons[WeaponSystem::MAX_WEAPON_MODES];
    150150            int projectiles[WeaponSystem::MAX_WEAPON_MODES];
    151             float botlevel_; //< Makes the level of a bot configurable.
     151            float botlevel_; //< Makes the level of a bot configurable.
     152            float timeout_; //< Timeout for rocket usage. (If a rocket misses, a bot should stop using it.)
    152153
    153154            enum Mode {DEFAULT, ROCKET, DEFENCE, MOVING};//TODO; implement DEFENCE, MOVING modes
    154155            Mode mode_;
     156            void setPreviousMode();
    155157
    156158        private:
Note: See TracChangeset for help on using the changeset viewer.