Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 17, 2016, 10:29:21 PM (8 years ago)
Author:
landauf
Message:

merged branch cpp11_v3 back to trunk

Location:
code/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/trunk

  • code/trunk/src/orxonox/worldentities/pawns/Pawn.h

    r11052 r11071  
    6363            virtual ~Pawn();
    6464
    65             virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
    66             virtual void XMLEventPort(Element& xmlelement, XMLPort::Mode mode);
    67             virtual void tick(float dt);
     65            virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override;
     66            virtual void XMLEventPort(Element& xmlelement, XMLPort::Mode mode) override;
     67            virtual void tick(float dt) override;
    6868
    6969            inline bool isAlive() const
     
    7171
    7272
    73             virtual void setHealth(float health);
     73            void setHealth(float health);
    7474            inline void addHealth(float health)
    7575                { this->setHealth(this->health_ + health); }
     
    8989                { return this->initialHealth_; }
    9090
    91             virtual void setShieldHealth(float shieldHealth);
     91            void setShieldHealth(float shieldHealth);
    9292
    9393            inline float getShieldHealth()
     
    100100                { return (this->getShieldHealth() > 0); }
    101101
    102             virtual void setMaxShieldHealth(float maxshieldhealth);
     102            void setMaxShieldHealth(float maxshieldhealth);
    103103            inline float getMaxShieldHealth() const
    104104                { return this->maxShieldHealth_; }
     
    119119                { return this->shieldAbsorption_; }
    120120
    121             virtual void setShieldRechargeRate(float shieldRechargeRate);
     121            void setShieldRechargeRate(float shieldRechargeRate);
    122122            inline float getShieldRechargeRate() const
    123123                { return this->shieldRechargeRate_; }
    124124
    125             virtual void setShieldRechargeWaitTime(float shieldRechargeWaitTime);
     125            void setShieldRechargeWaitTime(float shieldRechargeWaitTime);
    126126            inline float getShieldRechargeWaitTime() const
    127127                { return this->shieldRechargeWaitTime_; }
     
    133133                { this->shieldRechargeWaitCountdown_ = this->getShieldRechargeWaitTime(); } // TODO: Implement in Projectile.cc
    134134
    135             virtual void decreaseShieldRechargeCountdownTime(float dt);
     135            void decreaseShieldRechargeCountdownTime(float dt);
    136136
    137137            /** @brief Sets the state of the pawns vulnerability. @param bVulnerable */
     
    157157            virtual void kill();
    158158
    159             virtual void fired(unsigned int firemode);
     159            virtual void fired(unsigned int firemode) override;
    160160            virtual void postSpawn();
    161161
     
    170170            void addWeaponPackXML(WeaponPack * wPack);
    171171            WeaponPack * getWeaponPack(unsigned int index) const;
    172             std::vector<WeaponPack *> * getAllWeaponPacks();
    173172
    174173            void addMunitionXML(Munition* munition);
     
    201200
    202201
    203             virtual void startLocalHumanControl();
     202            virtual void startLocalHumanControl() override;
    204203
    205204            void setAimPosition( Vector3 position )
     
    208207                { return this->aimPosition_; }
    209208
    210             virtual const Vector3& getCarrierPosition(void) const
     209            virtual const Vector3& getCarrierPosition(void) const override
    211210                { return this->getWorldPosition(); };
    212211
    213             virtual void changedVisibility();
     212            virtual void changedVisibility() override;
    214213
    215214            void setExplosionSound(const std::string& engineSound);
    216215            const std::string& getExplosionSound();
    217216
    218             virtual const WeaponSystem* getWeaponSystem() const
     217            inline const WeaponSystem* getWeaponSystem() const
    219218                { return this->weaponSystem_; }
    220219
    221220        protected:
    222             virtual void preDestroy();
    223 
    224             virtual void setPlayer(PlayerInfo* player);
    225             virtual void removePlayer();
     221            virtual void preDestroy() override;
     222
     223            virtual void setPlayer(PlayerInfo* player) override;
     224            virtual void removePlayer() override;
    226225
    227226            virtual void death();
     
    231230            virtual void spawneffect();
    232231
    233             virtual void damage(float damage, float healthdamage = 0.0f, float shielddamage = 0.0f, Pawn* originator = NULL, const btCollisionShape* cs = NULL);
     232            virtual void damage(float damage, float healthdamage = 0.0f, float shielddamage = 0.0f, Pawn* originator = nullptr, const btCollisionShape* cs = nullptr);
    234233
    235234            bool bAlive_;
    236235            bool bVulnerable_; ///< If false the pawn may not ged damaged
    237236
    238             virtual std::vector<PickupCarrier*>* getCarrierChildren(void) const
     237            virtual std::vector<PickupCarrier*>* getCarrierChildren(void) const override
    239238                { return new std::vector<PickupCarrier*>(); }
    240             virtual PickupCarrier* getCarrierParent(void) const
    241                 { return NULL; }
     239            virtual PickupCarrier* getCarrierParent(void) const override
     240                { return nullptr; }
    242241
    243242
Note: See TracChangeset for help on using the changeset viewer.