card_path.h 371 B

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