#pragma once #include #include "Component.h" class PowerupComponent : public Component { public: /** * @brief Construct a new Powerup Component object * @param func The function to be called when the powerup is picked up */ PowerupComponent(std::function func); ~PowerupComponent() {}; void update(uint_fast16_t diffTime) override; private: std::function pickupFunc; };