Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 31, 2015, 3:51:08 PM (9 years ago)
Author:
landauf
Message:

made SpaceShip::engineList_ private again. moved function from ModularSpaceShip to SpaceShip and optimized it a little (neither iterator nor orxonox_casts are necessary here)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentationFS14/src/orxonox/worldentities/pawns/SpaceShip.h

    r10073 r10211  
    124124            bool hasEngine(Engine* engine) const; // Check whether the SpaceShip has a particular Engine.
    125125            Engine* getEngine(unsigned int i); // Get the i-th Engine of the SpaceShip.
     126            Engine* getEngineByName(const std::string& name);
    126127            /**
    127128            @brief Get the list of all Engines that are mounted on the SpaceShip.
     
    270271            float stallSpeed_; //!< The forward speed where no more lift is added.
    271272
    272             std::vector<Engine*> engineList_; //!< The list of all Engines mounted on this SpaceShip.
    273 
    274273        private:
    275274            void registerVariables();
     
    286285            void backupCamera(); // Save the original position and orientation of the camera.
    287286            void resetCamera(); // Reset the camera to its original position.
     287
     288            std::vector<Engine*> engineList_; //!< The list of all Engines mounted on this SpaceShip.
    288289
    289290            Timer timer_;                          //!< Timer for the cooldown duration.
Note: See TracChangeset for help on using the changeset viewer.