area_business.h 792 B

123456789101112131415161718192021222324252627
  1. #ifndef _area_business_hpp_
  2. #define _area_business_hpp_
  3. #include <vector>
  4. #include <memory>
  5. struct business_data
  6. {
  7. virtual ~business_data(){}
  8. };
  9. struct area_hover;
  10. struct card_location_base;
  11. struct area_business
  12. {
  13. virtual int area_business_type();
  14. virtual void on_enter(const std::shared_ptr<area_hover>&a,const std::shared_ptr<card_location_base>&c,std::shared_ptr<business_data>&ptr){}
  15. virtual void on_hover(const std::shared_ptr<area_hover>&a,const std::shared_ptr<card_location_base>&c,std::shared_ptr<business_data> ptr){}
  16. virtual void on_leave(const std::shared_ptr<area_hover>&a,const std::shared_ptr<card_location_base>&c,std::shared_ptr<business_data> ptr){}
  17. virtual ~area_business(){}
  18. static std::vector<area_business*> get_instance_list(int business_type);
  19. };
  20. #endif