zombo-shooter/src/effects/Effect.hpp

22 lines
348 B
C++

#ifndef EFFECT_HPP
#define EFFECT_HPP
#include "../GameRenderer.hpp"
class Effect
{
public:
int ticks = 0;
int max_ticks;
virtual ~Effect() = default;
virtual void update() = 0;
virtual void draw(const GameRenderer *renderer, double player_x, double player_y) const = 0;
bool operator==(const Effect &other) const = default;
};
#endif