Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 17, 2011, 11:43:20 PM (13 years ago)
Author:
jo
Message:

Weaponsetup now generic. Munition management has not jet been implemented.

File:
1 edited

Legend:

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

    r8757 r8762  
    150150
    151151            int numberOfWeapons; //<! Used for weapon init function. Displayes number of weapons available for a bot.
    152             bool weapons[WeaponSystem::MAX_WEAPON_MODES]; //<! Displays if a weapon is available - managed by setupWeapons()
     152            int weaponModes[WeaponSystem::MAX_WEAPON_MODES]; //<! Links each "weapon" to it's weaponmode- managed by setupWeapons()
    153153            int projectiles[WeaponSystem::MAX_WEAPON_MODES]; //<! Displays amount of projectiles of each weapon. - managed by setupWeapons()
    154154            float botlevel_; //<! Makes the level of a bot configurable.
     
    159159            void setPreviousMode();
    160160            void setupWeapons(); //<! Defines which weapons are available for a bot. Is recalled whenever a bot was killed.
    161             const std::string getWeaponname(int i, int u, Pawn* pawn); //<! Function that links a weapon's firemode to its name.
    162             void analyseWeapons(Pawn* pawn);
    163161            bool bSetupWorked; //<! If false, setupWeapons() is called.
    164162    };
Note: See TracChangeset for help on using the changeset viewer.