| 12345678910111213141516171819202122232425262728293031 |
- //
- // player.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;
- class player : public actor {
- public:
- player(Json::Value const & json, graphics::object const & obj,
- attack_factory get_attack);
- void hit(bullet const & b);
- void update(float delta) override {}
- void level(class level * l) override { level_ = l; }
- class level * level() const override {
- return level_;
- }
- private:
- class level * level_;
- std::vector<std::shared_ptr<bullet_pattern>> attack_;
- };
- }
|