enemy.hpp 493 B

12345678910111213141516171819202122232425262728
  1. //
  2. // enemy.hpp
  3. // danmaku
  4. //
  5. // Created by Sam Jaffe on 5/26/19.
  6. // Copyright © 2019 Sam Jaffe. All rights reserved.
  7. //
  8. #pragma once
  9. #include "actor.hpp"
  10. namespace danmaku {
  11. struct points_map {
  12. int on_damage;
  13. int on_kill;
  14. };
  15. class enemy : public actor {
  16. public:
  17. enemy(Json::Value const & json, graphics::object const & obj,
  18. attack_factory get_attack);
  19. private:
  20. points_map points_;
  21. std::vector<std::shared_ptr<bullet_pattern>> attack_;
  22. };
  23. }