mirror of
https://github.com/Nimac0/SDL_Minigame
synced 2026-01-12 10:13:42 +00:00
19 lines
387 B
C++
19 lines
387 B
C++
#pragma once
|
|
|
|
#include "Component.h"
|
|
#include "AssetManager.h"
|
|
|
|
class PowerupComponent : public Component
|
|
{
|
|
public:
|
|
PowerupComponent(PowerupType type);
|
|
~PowerupComponent() {};
|
|
|
|
void update() override;
|
|
void heartEffect(Entity* player);
|
|
void movementSpeedEffect(Entity* player);
|
|
void atkSpeedEffect(Entity* player);
|
|
|
|
private:
|
|
void (PowerupComponent::*pickupFunc)(Entity* player);
|
|
}; |