#pragma once #include #include #include #include "Controller.h" struct Player { Player(); void update(float dt); void draw(); void hit(); template bool collide(const std::vector& bullets); float m_invulnerability; Vector2 m_position; Vector2 m_velocity; Rectangle m_playground; std::unique_ptr m_controller; }; #include "Player-inl.h"