summaryrefslogtreecommitdiffhomepage
path: root/Enemy.h
blob: 0a8c4296d9e1d3fb87aa02ba9a7248faf15eb4bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#pragma once

#include <memory>

#include <raylib.h>

#include "Generator.h"


class Enemy
{
public:
    explicit Enemy(std::unique_ptr<Generator> generator = {});
    void update(float dt);
    void draw();
    void set_position(float x, float y);
private:
    float m_hold;
    std::shared_ptr<Vector2> m_position;
    std::unique_ptr<Generator> m_generator;
};