⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 strategysystem.h

📁 机器人足球仿真11vs11源代码(精简版)
💻 H
字号:
// StrategySystem.h
#include "general.h"

#ifndef _INSIDE_VISUAL_CPP_STRATEGYSYSTEM
#define _INSIDE_VISUAL_CPP_STRATEGYSYSTEM
//////////////////////////////////////////////////NEW/////////////////////////////////////////////////////

class CStrategySystem : public CObject
{
    DECLARE_DYNAMIC(CStrategySystem)
public:
	void Action();
    ~CStrategySystem();
	CStrategySystem(int id);
    void ReceiveData(Robot1 bal,Robot2 *ho,Robot3 opp);
private:
	int WhichKick();
	void Kick(int which);
	void Position(int which, CPoint point);
	void Velocity(int which, int vL, int vR);
	void Angle(int which, double desired_angle);
	CRect	boundRect;     
	int	m_nGameArea;
	int	m_OurTeam;  

	Robot1 Ball;
	Robot2 Home[11];
	Robot3 opponent[11];
public:
	int command[35]; 
};
bool FrontRad(double &a);
double AbsRad(double a);
const double rad_speed=2.1837*0.02/11;
#endif // _INSIDE_VISUAL_CPP_STRATEGYSYSTEM

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -