Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 18, 2011, 10:59:35 PM (13 years ago)
Author:
jo
Message:

New implementation. New bug. Bots use only yellow energy munition (LightningGun).

File:
1 edited

Legend:

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

    r8762 r8763  
    3232#include "OrxonoxPrereqs.h"
    3333
    34 #include <vector>
     34#include <map>
    3535
    3636#include "util/Math.h"
     
    149149            bool bShooting_;
    150150
    151             int numberOfWeapons; //<! Used for weapon init function. Displayes number of weapons available for a bot.
    152             int weaponModes[WeaponSystem::MAX_WEAPON_MODES]; //<! Links each "weapon" to it's weaponmode- managed by setupWeapons()
    153             int projectiles[WeaponSystem::MAX_WEAPON_MODES]; //<! Displays amount of projectiles of each weapon. - managed by setupWeapons()
     151            std::map<std::string, int> weaponModes_; //<! Links each "weapon" to it's weaponmode- managed by setupWeapons()
     152            //std::vector<int> projectiles_; //<! Displays amount of projectiles of each weapon. - managed by setupWeapons()
    154153            float botlevel_; //<! Makes the level of a bot configurable.
    155154            float timeout_; //<! Timeout for rocket usage. (If a rocket misses, a bot should stop using it.)
     
    160159            void setupWeapons(); //<! Defines which weapons are available for a bot. Is recalled whenever a bot was killed.
    161160            bool bSetupWorked; //<! If false, setupWeapons() is called.
     161            int getFiremode(std::string name);
    162162    };
    163163}
Note: See TracChangeset for help on using the changeset viewer.