game/mario/blocks/fireball.hpp

20 lines
429 B
C++
Raw Permalink Normal View History

2022-11-12 20:32:18 +00:00
#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);
2022-11-19 22:10:33 +00:00
2022-11-12 20:32:18 +00:00
private:
double jump_movement;
bool jumping = false;
long ticks_till_death = 3100;
};
#endif