locwmchal.h
来自「该文件是包含了机器人足球比赛中的整个系统的代码」· C头文件 代码 · 共 40 行
H
40 行
#ifndef LOCWMChal_H
#define LOCWMChal_H
#include "Dude.h"
#include "../TOOLS/Utilities.h"
#include "../TOOLS/KickSelecta.h"
#define NUMPOINTS 1
class LOCWMChal : public Dude {
public:
LOCWMChal();
~LOCWMChal();
virtual void NewReadyModel();
virtual void NewPlayingModel();
void CalculateOptimalPath(int x, int y);
double GetDistance(int x, int y, int x2, int y2);
private:
bool IsBallVisible();
bool inPlaying;
Utilities utils;
KickSelecta ks;
bool debugOutput;
int posX[NUMPOINTS];
int posY[NUMPOINTS];
int currentIndex;
double errorDistance;
int numSpins;
int maxSpins;
};
#endif //LOCWMChal_H
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?