summaryrefslogtreecommitdiffhomepage
path: root/FallingAndOscillating.cpp
blob: 366b26bdd3450b726394295df8b0fb4e5fb95b10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include "FallingAndOscillating.h"

#include <memory>

#include <raylib.h>

#include "Falling.h"
#include "Generator.h"
#include "Oscillating.h"


FallingAndOscillating::FallingAndOscillating(std::shared_ptr<Vector2> position, std::shared_ptr<Generator> generator) :
    Falling {position, generator},
    Oscillating {position}
{
}


void
FallingAndOscillating::update(const float dt)
{
    Falling::update(dt);
    Oscillating::update(dt);
}