Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 27, 2011, 3:58:04 PM (14 years ago)
Author:
jo
Message:

Now the ai use lensflare if the weapon is on board and if they are close enough to the target. Hardcoded version!

File:
1 edited

Legend:

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

    r7163 r7832  
    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();
    7982
    8083        protected:
     
    138141            WeakPtr<Pawn> target_;
    139142            bool bShooting_;
     143           
     144            int numberOfWeapons;
     145            int weapons[WeaponSystem::MAX_WEAPON_MODES];
    140146
    141147        private:
     148            void setupWeapons();
     149            bool bSetupWorked;
    142150    };
    143151}
Note: See TracChangeset for help on using the changeset viewer.