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

#include <memory>

#include <raylib.h>

#include "Behaviour.h"


class Oscillating : virtual public Behaviour
{
public:
    friend class EnemyFactory;
    explicit Oscillating(std::shared_ptr<Vector2> position);
    void update(float dt) override;
private:
    float m_phase;
    float m_shift;
    std::shared_ptr<Vector2> m_position;
};