| 12345678910111213141516171819202122232425262728293031 |
- //
- // enemy.hpp
- // danmaku
- //
- // Created by Sam Jaffe on 5/26/19.
- // Copyright © 2019 Sam Jaffe. All rights reserved.
- //
- #pragma once
- #include "actor.hpp"
- namespace danmaku {
- struct bullet_patern;
- }
- namespace danmaku {
- struct points_map {
- int on_damage;
- int on_kill;
- };
- class enemy : public actor {
- public:
- enemy(Json::Value const & json, graphics::object const & obj);
- private:
- points_map points_;
- std::vector<std::shared_ptr<bullet_patern>> attack_;
- };
- }
|