123456789101112131415161718192021222324 |
- #include "solid_ball_module.h"
- #include "log.h"
- double solid_ball_module::get_distance(const point& p, const std::string& sid)
- {
- //
- return 0;
- }
- // 实心球业务处理逻辑,判断空中状态和出手时刻
- void solid_ball_module::do_business(std::shared_ptr<sb_card> ptr_card)
- {
- // 检查卡是否存在,不存在则插入
- auto it_card = m_card_list.find(ptr_card->m_sid);
- if(it_card == m_card_list.end()){
- m_card_list.insert(std::make_pair(ptr_card->m_sid, ptr_card));
- it_card = m_card_list.find(ptr_card->m_sid);
- }
- //如果是落地状态,后面的业务不执行
- if(ptr_card->m_status == sb_status::sb_land){
- return;
- }
- }
|