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

#include <memory>
#include <vector>

#include <raylib.h>

#include "Controller.h"


struct Player
{
    Player();
    void update(float dt);
    void draw();
    template<typename T> bool collide(const std::vector<T>& bullets) const;
    Vector2 m_position;
    Vector2 m_velocity;
    std::unique_ptr<Controller> m_controller;
};


#include "Player-inl.h"