bullet_pattern.hpp 464 B

123456789101112131415161718192021
  1. //
  2. // bullet_pattern.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 <json/forwards.h>
  10. namespace danmaku {
  11. class actor;
  12. struct bullet_pattern {
  13. static std::shared_ptr<bullet_pattern> get_pattern(actor * owner,
  14. Json::Value const &);
  15. virtual ~bullet_pattern() = default;
  16. virtual void update() = 0;
  17. }
  18. }