summaryrefslogtreecommitdiffhomepage
path: root/Player.h
diff options
context:
space:
mode:
Diffstat (limited to 'Player.h')
-rw-r--r--Player.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/Player.h b/Player.h
index b138edd..59e8282 100644
--- a/Player.h
+++ b/Player.h
@@ -1,9 +1,12 @@
#pragma once
+#include <memory>
#include <vector>
#include <raylib.h>
+#include "Controller.h"
+
struct Player
{
@@ -12,6 +15,9 @@ struct Player
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"