This repository has been archived on 2025-06-06. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
LotoStatek/headers/PowerUp.h

26 lines
393 B
C++

#ifndef POWERUP_H
#define POWERUP_H
#include "ObjectItem.hpp"
class PowerUp : public ObjectItem {
public:
enum Type {
movingSpeedUp,
firerateUp,
tripleShotUp
};
PowerUp(float x, float y, sf::Texture &texture, Type type);
void update() override;
Type getType() const {
return type_;
}
private:
Type type_;
};
#endif //POWERUP_H