// // bullet.hpp // danmaku // // Created by Sam Jaffe on 5/26/19. // Copyright © 2019 Sam Jaffe. All rights reserved. // #pragma once #include "actor.hpp" namespace danmaku { class bullet { public: bullet(int damage, math::vec2 const & vel, graphics::object const & obj); void update(float delta); graphics::object const & render_info() const { return render_info_; } void set_position(math::vec2 const & ll, math::radian facing); void set_velocity(math::vec2 const & v) { velocity_ = v; } private: int damage_; math::vec2 velocity_; graphics::object render_info_; }; }