Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 26, 2011, 12:04:42 AM (13 years ago)
Author:
dafrick
Message:

Converting tabs to spaces.

File:
1 edited

Legend:

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

    r8426 r8588  
    6161            virtual void boost(bool bBoost); // Starts or stops boosting.
    6262
    63                         void addEngine(Engine* engine);
    64                         bool hasEngine(Engine* engine);
    65                         Engine* getEngine(unsigned int i); // This one's for XMLPort
    66                         inline const std::vector<Engine*>& getEngineList()
    67                                 { return this->engineList_; }
    68                         void removeAllEngines();
     63            void addEngine(Engine* engine);
     64            bool hasEngine(Engine* engine);
     65            Engine* getEngine(unsigned int i); // This one's for XMLPort
     66            inline const std::vector<Engine*>& getEngineList()
     67                { return this->engineList_; }
     68            void removeAllEngines();
    6969
    70                         void setSpeedFactor(float factor);
    71                         float getSpeedFactor(); // Gets mean speed factor
    72                         float getMaxSpeedFront(); // gets largest speed forward
    73                         float getBoostFactor(); // gets mean boost factor
     70            void setSpeedFactor(float factor);
     71            float getSpeedFactor(); // Gets mean speed factor
     72            float getMaxSpeedFront(); // gets largest speed forward
     73            float getBoostFactor(); // gets mean boost factor
    7474
    7575            inline void setSteeringDirection(const Vector3& direction)
     
    7777            inline const Vector3& getSteeringDirection() const
    7878                { return this->steering_; }
    79                         inline void resetEngineTicks()
    80                                 { this->engineTicksNotDone = this->engineList_.size(); }
    81                         inline void oneEngineTickDone()
    82                                 { this->engineTicksNotDone--; }
    83                         inline const bool hasEngineTicksRemaining()
    84                                 { return (this->engineTicksNotDone>0); }
     79            inline void resetEngineTicks()
     80                { this->engineTicksNotDone = this->engineList_.size(); }
     81            inline void oneEngineTickDone()
     82                { this->engineTicksNotDone--; }
     83            inline const bool hasEngineTicksRemaining()
     84                { return (this->engineTicksNotDone>0); }
    8585
    8686            inline bool getBoost() const
     
    109109            virtual bool isCollisionTypeLegal(WorldEntity::CollisionType type) const;
    110110           
    111                         //All things booster
    112                         void changedEnableMotionBlur();
     111            //All things booster
     112            void changedEnableMotionBlur();
    113113            void boostCooledDown(void);
    114114
    115                         Shader* boostBlur_;
     115            Shader* boostBlur_;
    116116            float blurStrength_;
    117117            bool bEnableMotionBlur_;
    118118
    119                         std::vector<Engine*> engineList_;
    120                         int engineTicksNotDone; // Used for knowing when to reset temporary variables.
     119            std::vector<Engine*> engineList_;
     120            int engineTicksNotDone; // Used for knowing when to reset temporary variables.
    121121            Timer timer_;
    122122    };
Note: See TracChangeset for help on using the changeset viewer.