Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 10, 2008, 3:37:48 AM (17 years ago)
Author:
landauf
Message:
  • Added a health bar
  • Some changes in CameraManager to handle the case when no camera exists after removing the last one, but this is still somehow buggy (freezes and later crashes reproducible but inexplicable after a few respawns)
  • Added PawnManager to handle destruction of Pawns without using delete within tick()
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/objecthierarchy2/src/orxonox/objects/worldentities/pawns/Pawn.h

    r2256 r2369  
    5555            inline void removeHealth(float health)
    5656                { this->setHealth(this->health_ - health); }
    57             inline float getHealht() const
     57            inline float getHealth() const
    5858                { return this->health_; }
    5959
     
    9696            WeaponSystem* weaponSystem_;
    9797    };
     98
     99    class _OrxonoxExport PawnListener : public OrxonoxClass
     100    {
     101        friend class Pawn;
     102
     103        public:
     104            PawnListener();
     105            virtual ~PawnListener() {}
     106
     107        protected:
     108            virtual void destroyedPawn(Pawn* pawn) = 0;
     109    };
    98110}
    99111
Note: See TracChangeset for help on using the changeset viewer.