#pragma once #include "Texture.h" class PowerUp { public: enum class Type { green = 1, brown = 2 }; explicit PowerUp(const Point2f& center, PowerUp::Type type ); void Update( float elapsedSec ); void Draw( ) const; bool IsOverlapping(const Rectf& rect ) const; private: const Type m_Type; const Texture m_Texture; const float m_RotSpeed; Rectf m_TextClip; Circlef m_Shape; float m_Angle; Rectf GetTextClip(PowerUp::Type type) const; };