26 lines
393 B
C++
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
|