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

📄 skill.cpp

📁 robocuo相关资料robocuo相关资料
💻 CPP
字号:
#include "decision.h"#include "world.h"#include "body.h"#include "connection.h"#include "trainer_client.h"#include <iostream>#include <fstream>using namespace std;#define mindist .5skill::skill(world *w, body *b, connection *c)	:control(w,b,c){}void skill::act(){	wm->cycle++;	if(wm->cycle==1)		create_robot();	else if(wm->cycle==2)		init_robot();	else if(wm->ready)	{		decide();	}	else		cout<<"Not ready"<<endl;}bool skill::our_kick_off(){	return wm->play_mode == KICK_OFF_LEFT && wm->team_side == "left" ||	   wm->play_mode == KICK_OFF_RIGHT && wm->team_side== "right" ;}Vector2d skill::home(){	return Vector2d();}action *skill::action_name_to_object(string s){	return NULL;}void skill::select_action(action *act){}void skill::shoot(){}void skill::standup(){}bool skill::rotate(double angle){	return false;}bool skill::go_to_point(Vector2d v){	return false;}bool skill::go_to_point(Vector2d v, double ang){	return false;}bool skill::go_to_point_exact(Vector2d v){	return false;}bool skill::go_behind_ball(double ang){	return false;}

⌨️ 快捷键说明

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