1、BOOL CStrategy:Strategy0(CFishAction m_action,CFishInfo m_FishInfo,CBallInfo /鱼的中心点坐标f_pt=m_FishInfo0.GetCenterPt();double f_dir; /鱼的方向,-PI,PIf_dir=m_FishInfo0.GetDirection();CPoint fhead_pt;fhead_pt = m_FishInfo0.GetHeadPoint();CPoint tempt,tempt0,tempt1,tempt2,tempt3,tempt4,tempt5,tempt6,tempt7,te
2、mpt8,tempt9,tempt10,tempt11,tempt12,tempt13;tempt0.x =61 ;tempt0.y =116 ;tempt1.x =125;tempt1.y = 50;tempt2.x = 190;tempt2.y =25;tempt3.x =227 ;tempt3.y =25 ;tempt4.x =418;tempt4.y =60;tempt5.x =542;tempt5.y =100;tempt6.x =558;tempt6.y =196;tempt7.x =555;tempt7.y =302;tempt8.x =408;tempt8.y =370;tem
3、pt9.x =267;tempt9.y =390;tempt10.x =196;tempt10.y =379;tempt11.x =147;tempt11.y =348;tempt12.x =55;tempt12.y =303;tempt13.x =30;tempt13.y =214;double disfishtoaim0;disfishtoaim0=this-Distance(f_pt,tempt0);double disfishtoaim2;disfishtoaim2=this-Distance(f_pt,tempt2);double disfishtoaim3;disfishtoaim
4、3=this-Distance(f_pt,tempt3);double disfishtoaim5;disfishtoaim5=this-Distance(f_pt,tempt5);double disfishtoaim7;disfishtoaim7=this-Distance(f_pt,tempt7);double disfishtoaim9;disfishtoaim9=this-Distance(f_pt,tempt9);double disfishtoaim10;disfishtoaim10=this-Distance(f_pt,tempt10);double disfishtoaim12;disfishtoaim12=this-Distance(f_pt,tempt12);if (fhead_pt.x 0 / 5 需要调试/ Roundp2p(tempt3,m_action0,0,m_FishInfo0);if( disfishtoaim3 tempt3.x / 5 需要调试if( disfishtoaim7 tempt8.x / 5 需要调试if( disfishtoaim10 tempt11.x / 5 需要调试/Roundp2p(tempt13,m_action0,0,m_FishInfo0);