1234567891011121314151617181920212223242526272829303132 |
- #ifndef DISPLAYHP_H
- #define DISPLAYHP_H
- #include "../Structures/Affichable.h"
- #define BARRE_EPAIS 5
- class DisplayHP : public Affichable
- {
- public:
- DisplayHP( int vieMax, Uint32 front = 0x00940C, Uint32 back = 0x2E0000, Vec up = Vec(0.0f, 48.0f) );
- virtual ~DisplayHP();
- void updateImg( const int &vie );
- void IAmHere( const Vec &pos );
- void setMax( int max );
- protected:
- void cadrer();
- protected:
- int m_vieMax;
- Uint32 m_front;
- Uint32 m_back;
- Vec m_up;
- SDL_Rect m_vie;
- };
- #endif
|