Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 31, 2015, 5:31:23 PM (9 years ago)
Author:
landauf
Message:

replaced tabs with spaces. no changes in code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentationFS14/src/modules/objects/controllers/TurretController.h

    r10072 r10215  
    3939 namespace orxonox
    4040 {
    41         /**
    42                 @brief
    43                 Controller for turrets. Chooses a target, and makes the turret aim/shoot at it.
     41    /**
     42        @brief
     43        Controller for turrets. Chooses a target, and makes the turret aim/shoot at it.
    4444
    45                 The controllableEntity gets casted to Turret, so this controller won't work for anything else.
    46         */
    47         class _OrxonoxExport TurretController : public ArtificialController, public Tickable
    48         {
    49                 public:
    50                         TurretController(Context* context);
    51                         virtual ~TurretController();
     45        The controllableEntity gets casted to Turret, so this controller won't work for anything else.
     46    */
     47    class _OrxonoxExport TurretController : public ArtificialController, public Tickable
     48    {
     49        public:
     50            TurretController(Context* context);
     51            virtual ~TurretController();
    5252
    53                         virtual void tick(float dt);
     53            virtual void tick(float dt);
    5454
    55                 private:
     55        private:
    5656
    57                         void searchTarget();
    58                         bool isLookingAtTargetNew(float angle) const;
    59                         float targetScore(Pawn* pawn, float distance) const;
     57            void searchTarget();
     58            bool isLookingAtTargetNew(float angle) const;
     59            float targetScore(Pawn* pawn, float distance) const;
    6060
    61                         bool once_; //!< Flag for executing code in the tick function only once.
    62         };
     61            bool once_; //!< Flag for executing code in the tick function only once.
     62    };
    6363 }
    6464
Note: See TracChangeset for help on using the changeset viewer.