27 lines
544 B
C++
27 lines
544 B
C++
#ifndef GOLD_GAINED_HINT_HPP
|
|
#define GOLD_GAINED_HINT_HPP
|
|
|
|
#include "Effect.hpp"
|
|
#include "../Sprite.hpp"
|
|
#include "../GameRenderer.hpp"
|
|
|
|
class GoldGainedHint : public Effect
|
|
{
|
|
private:
|
|
double x, y;
|
|
int amount;
|
|
|
|
const Sprite *gold_sprite;
|
|
Font *font;
|
|
|
|
public:
|
|
GoldGainedHint(double x, double y, int amount, const Sprite *gold_sprite, Font *font);
|
|
|
|
void update() override;
|
|
|
|
void draw(const GameRenderer *renderer, double player_x, double player_y) const override;
|
|
|
|
bool operator==(const GoldGainedHint &other) const = default;
|
|
};
|
|
|
|
#endif |