enemy.hpp 502 B

12345678910111213141516171819202122232425262728293031
  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 bullet_patern;
  12. }
  13. namespace danmaku {
  14. struct points_map {
  15. int on_damage;
  16. int on_kill;
  17. };
  18. class enemy : public actor {
  19. public:
  20. enemy(Json::Value const & json, graphics::object const & obj);
  21. private:
  22. points_map points_;
  23. std::vector<std::shared_ptr<bullet_patern>> attack_;
  24. };
  25. }