Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 28, 2015, 10:30:56 PM (9 years ago)
Author:
gania
Message:

added other weapons

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/campaignHS15/src/orxonox/controllers/FightingController.h

    r10883 r10885  
    2121 *
    2222 *   Author:
    23  *      Fabian 'x3n' Landau
     23 *      Gani Aliguzhinov
    2424 *   Co-authors:
    25  *      ...
     25 *      Fabian 'x3n' Landau, Dominik Solenicki
    2626 *
    2727 */
     
    4545       
    4646            float squaredDistanceToTarget() const;
    47             bool isLookingAtTarget(float angle);
    48             bool hasTarget();
    49             ControllableEntity* getTarget()
     47            bool isLookingAtTarget(float angle) const;
     48            bool hasTarget() const;
     49            ControllableEntity* getTarget() const
    5050                { return this->target_; }
    5151            bool bKeepFormation_;
     
    6161
    6262            void maneuver();
    63             void dodge(Vector3& thisPosition, Vector3& diffUnit);
     63            void dodge(const Vector3& thisPosition, Vector3& diffUnit);
    6464            bool canFire();
    6565            void doFire();
     
    7171            bool bHasOrientationOfTarget_;
    7272            Quaternion orientationOfTarget_;
    73             Pawn* closestTarget();
     73            Pawn* closestTarget() const;
    7474
    7575            int attackRange_;
    7676            bool bShooting_;
    7777            int maneuverCounter_;   
    78             bool bLookAtTarget_;           
     78            bool bLookAtTarget_;
     79
     80            //WEAPONSYSTEM DATA
     81            int rocketsLeft_;
     82            float timeout_;
     83            bool bFiredRocket_;
     84            std::map<std::string, int> weaponModes_; //<! Links each "weapon" to it's weaponmode - managed by setupWeapons()
     85            //std::vector<int> projectiles_; //<! Displays amount of projectiles of each weapon. - managed by setupWeapons()
     86            void setupWeapons(); //<! Defines which weapons are available for a bot. Is recalled whenever a bot was killed.
     87            bool bSetupWorked; //<! If false, setupWeapons() is called.
     88            int getFiremode(std::string name);
     89         
    7990    };
    8091}
Note: See TracChangeset for help on using the changeset viewer.