zv0n
7bd652f4e9
Some checks reported errors
continuous-integration/drone/push Build encountered an error
19 lines
428 B
C++
19 lines
428 B
C++
#ifndef FIREBALL_HPP
|
|
#define FIREBALL_HPP
|
|
|
|
#include "../blocks.hpp"
|
|
|
|
class Fireball : public MarioBlock {
|
|
public:
|
|
Fireball(int x, int y, std::shared_ptr<SDLPP::Renderer> &renderer);
|
|
void custom_move(int ticks) override;
|
|
void handleVisitor(SDLPP::Visitor &visitor) override;
|
|
void setMovementDir(bool left);
|
|
private:
|
|
double jump_movement;
|
|
bool jumping = false;
|
|
long ticks_till_death = 3100;
|
|
};
|
|
|
|
#endif
|