card_car.h 998 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #ifndef _card_car_h_
  2. #define _card_car_h_
  3. #include <string>
  4. #include <memory>
  5. #include "point.h"
  6. #include "loc_point.h"
  7. #include "card_base.h"
  8. #include "card_area.h"
  9. struct area_hover;
  10. struct mine_tool;
  11. struct site_area_hover;
  12. struct car:card_location_base,card_area
  13. {
  14. int m_vehicle_category_id=0;
  15. int m_vehicle_type_id=0;
  16. double m_acc =0;
  17. public:
  18. car(std::string type,uint32_t cardid,uint16_t needdisplay,int16_t t,int32_t deptid,
  19. int32_t categoryid, int type_id,int32_t level_id,uint32_t cid);
  20. ~car();
  21. virtual void site_hover(int sid);
  22. virtual std::shared_ptr<area_hover> get_area_hover();
  23. virtual std::shared_ptr<mine_tool> get_mine_tool();
  24. virtual std::shared_ptr<site_area_hover> get_site_area();
  25. virtual void do_business(const point &pt,double acc);
  26. int get_vehicle_type_id();
  27. private:
  28. void handle_three_rates(const point &pt);
  29. void on_timer();
  30. int statbiz(int32_t special_id);
  31. void make_package();
  32. loc_point getSmoothPoint();
  33. };
  34. #endif