Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 17, 2016, 1:59:00 PM (9 years ago)
Author:
landauf
Message:

added c++11 features to code that was added in presentationHS15

File:
1 edited

Legend:

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

    r11057 r11065  
    7272                                                                        //<! this and target_ plus or minus some amount in difference vector direction,
    7373                                                                        //<! depending on whether it is better to close up or survive.
    74             void dodgeTowards (Vector3& position);  //fly towards position and awoid being hit
    7574            void doFire();  //<! choose weapon, set aim at target_ and fire
    7675            WeakPtr<ControllableEntity> target_;
     
    9796            void setupWeapons(); //<! Defines which weapons are available for a bot. Is recalled whenever a bot was killed.
    9897            bool bSetupWorked; //<! If false, setupWeapons() is called.
    99             int getFiremode(std::string name);
     98            int getFiremode(const std::string& name);
    10099         
    101100    };
Note: See TracChangeset for help on using the changeset viewer.