summaryrefslogtreecommitdiffhomepage
path: root/Player.h
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2022-04-18 10:59:32 +0200
committerAki <please@ignore.pl>2022-04-18 10:59:32 +0200
commitf0891205710c2d5c9b78a9d275de88a77c2ccda3 (patch)
tree6e473a2a542fae6addc6f83912c3a4e91244e879 /Player.h
parent04a09e6a59200092e7e4ccde94535a921c01c4c4 (diff)
downloadbullethell2022-f0891205710c2d5c9b78a9d275de88a77c2ccda3.zip
bullethell2022-f0891205710c2d5c9b78a9d275de88a77c2ccda3.tar.gz
bullethell2022-f0891205710c2d5c9b78a9d275de88a77c2ccda3.tar.bz2
Moved collision checks to player class
Diffstat (limited to 'Player.h')
-rw-r--r--Player.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Player.h b/Player.h
index f0d4d10..b138edd 100644
--- a/Player.h
+++ b/Player.h
@@ -1,5 +1,7 @@
#pragma once
+#include <vector>
+
#include <raylib.h>
@@ -8,5 +10,8 @@ struct Player
Player();
void update(float dt);
void draw();
+ template<typename T> bool collide(const std::vector<T>& bullets) const;
Vector2 m_position;
};
+
+#include "Player-inl.h"