card_path.h 487 B

1234567891011121314151617181920212223
  1. #ifndef _CARD_PATH_HPP_
  2. #define _CARD_PATH_HPP_
  3. #include "point.h"
  4. #include "line.h"
  5. NAMESPACE_POINT_BEGIN (NAMESPACE_POINT)
  6. struct sit_list;
  7. struct card_path
  8. {
  9. std::vector<line_v> find_possible_path(const point&from,double dist) const;
  10. std::vector<point> find_path(const point&from,const point&to) const;
  11. bool is_at_path(const point&pt) const;
  12. static card_path&inst();
  13. static void init(const sit_list&sites);
  14. };
  15. NAMESPACE_POINT_END(NAMESPACE_POINT)
  16. #endif