test.h

来自「FIRA 5V5比赛中一个机器人源代码 本科毕业设计做的」· C头文件 代码 · 共 41 行

H
41
字号
// Test.h: interface for the CTest class.
//
//////////////////////////////////////////////////////////////////////

#include "strategy.h" //include strategy header

#if !defined(AFX_TEST_H__37F5952B_B178_4FDF_9D6C_D495A955F5E4__INCLUDED_)
#define AFX_TEST_H__37F5952B_B178_4FDF_9D6C_D495A955F5E4__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000



class CTest  
{
public:
	CTest(Environment *envPointer, UserDefStruct *UserDataPointer);
	virtual ~CTest();
	//declare fuction phototype
	void Spin();
	
	void Test(int WhichRobot);
	bool Push(int WhichRobot);
	int Direction(Robot *robot);
	double Predict_Ball(int WhichRobot);
	double Gradient(Vector3D p1, Vector3D p2);

	void Trap_Ball(int WhichRobot, int WhichRobot2);
	void Penalty_Kick(int WhichRobot);
	void Goalie (int Which_Robot);
	
	//User Used Variable
	UserDefStruct *UserData;
	Environment *env;

};

#endif // !defined(AFX_TEST_H__37F5952B_B178_4FDF_9D6C_D495A955F5E4__INCLUDED_)

⌨️ 快捷键说明

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