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/overlays/OrxonoxOverlay.h

    r2256 r2369  
    125125
    126126        //! Gets the rotation angle applied to this overlay in degrees.
    127         const Radian& getRotation() const         { return this->angle_; }
     127        const Degree& getRotation() const         { return this->angle_; }
    128128
    129129        //! Rotates the overlay by angle degrees.
     
    166166        virtual void changedOwner() {}
    167167
     168        inline void setOverlayGroup(OverlayGroup* group)
     169        {
     170            if (group != this->group_)
     171            {
     172                this->group_ = group;
     173                this->changedOverlayGroup();
     174            }
     175        }
     176        inline OverlayGroup* getOverlayGroup() const
     177            { return this->group_; }
     178        virtual void changedOverlayGroup() {}
     179
    168180    protected:
    169181        virtual void angleChanged();
     
    184196        Vector2 position_;                         //!< Position of the pickPoint on the screen.
    185197        Vector2 pickPoint_;                        //!< Point on the overlay to pick when translating
    186         Radian angle_;                             //!< Rotation angle of the overlay
     198        Degree angle_;                             //!< Rotation angle of the overlay
    187199        RotationState rotState_;             //!< horizontal, vertical or inbetween
    188200
     
    195207        static std::map<std::string, OrxonoxOverlay*> overlays_s;
    196208        ControllableEntity* owner_;
     209        OverlayGroup* group_;
    197210  };
    198211
    199212  SUPER_FUNCTION(7, OrxonoxOverlay, changedOwner, false);
     213  SUPER_FUNCTION(8, OrxonoxOverlay, changedOverlayGroup, false);
    200214}
    201215
Note: See TracChangeset for help on using the changeset viewer.