| 1234567891011121314151617181920212223242526 |
- //
- // 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 engine::collidable {
- public:
- bullet(int damage, math::vec2 const & vel, graphics::object const & obj);
- void update(float delta);
- 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_;
- };
- }
|