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

📄 goalie_neck_bmn.h

📁 这是bs球队的仿真2D比赛程序
💻 H
字号:
/*Brainstormers 2D (Soccer Simulation League 2D)PUBLIC SOURCE CODE RELEASE 2005Copyright (C) 1998-2005 Neuroinformatics Group,                        University of Osnabrueck, GermanyThis program is free software; you can redistribute it and/ormodify it under the terms of the GNU General Public Licenseas published by the Free Software Foundation; either version 2of the License, or (at your option) any later version.This program is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See theGNU General Public License for more details.You should have received a copy of the GNU General Public Licensealong with this program; if not, write to the Free SoftwareFoundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.*//** \file policy_dynamic_neck_goalie.h*/#ifndef _GOALIE_NECK_BMN_H_#define _GOALIE_NECK_BMN_H_#include "../base_bm.h"//#include "move_factory.h"#include "../policy/policy_tools.h"#include "neck_cmd_bms.h"//#include "globals.h"/** */class GoalieNeck : public NeckBehavior {  static bool initialized;    NeckCmd *neck_cmd; public: GoalieNeck(); virtual ~GoalieNeck();  /** get the unique id of the policy.      \return policy id.  */  bool get_cmd(Cmd &cmd); static bool init(char const * conf_file, int argc, char const* const* argv) {   if(initialized) return true;   initialized = true;   std::cout << "GoalieNeck behavior initialized.";   return ( NeckCmd::init(conf_file, argc, argv) );  } private:  Go2Ball_Steps* go2ball_list;  struct{    float me;    float my_goalie;    float teammate;    int teammate_number;    Vector teammate_pos;    Bool ball_kickable_for_teammate;    float opponent;    int opponent_number;    Vector opponent_pos;    Bool ball_kickable_for_opponent;  } steps2go;    int time_of_turn;  int time_attacker_seen;  int last_time_look_to_ball;  Value turnback2_scandir;  void compute_steps2go();  bool goalie_neck(Cmd &cmd);  bool neck_standard(Cmd &cmd);  bool neck_lock(Cmd &cmd);};#endif //_GOALIE_NECK_BMN_H_

⌨️ 快捷键说明

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