亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? main.c

?? 機器足球2D比賽程序 對trlen_base_2002的改進
?? C
字號:
/*Copyright (c) 2000-2002, Jelle Kok, University of AmsterdamAll rights reserved.Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the University of Amsterdam nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.*//*! \file main.C<pre><b>File:</b>          main.C<b>Project:</b>       Robocup Soccer Simulation Team: UvA Trilearn<b>Authors:</b>       Jelle Kok<b>Created:</b>       28/11/2000<b>Last Revision:</b> $ID$<b>Contents:</b>      This file contains the main of the program that is used               to start the agent. It creates all classes, starts the different                threads and calls the mainloop. Furthermore it parses the               specified arguments to adjust the variables.<hr size=2><h2><b>Changes</b></h2><b>Date</b>             <b>Author</b>          <b>Comment</b>28/11/2000       Jelle Kok       Initial version created</pre>*/#include "SenseHandler.h"#include "Player.h"#include "Parse.h"#include <string.h>   // needed for strcpy#include <pthread.h>  // needed for pthread_create#include <stdlib.h>   // needed for exitextern Logger Log; /*!< This is a reference to the Logger to write log info to*/void printOptions( );/*! This is the main function and creates and links all the different classes.    First it reads in all the parameters from the command prompt    (<program name> -help) and uses these values to create the classes. After     all the classes are linked, the mainLoop in the Player class is called. */int main( int argc, char * argv[] ){  pthread_t      listen, sense;  ServerSettings ss;  PlayerSettings cs;  // define variables for command options and initialize with default values  char     strTeamName[MAX_TEAM_NAME_LENGTH] = "UvA_Trilearn";  int      iPort                             = ss.getPort();  int      iMinLogLevel                      = 0;  int      iMaxLogLevel                      = 0;    char     strHost[128]                      = "localhost";  double   dVersion                          = 9.08;  int      iMode                             = 0;  char     strFormations[128]                = "formations.conf";  int      iNr                               = 2;  int      iReconnect                        = -1;  bool     bInfo                             = false;  bool     bSuppliedLogFile                  = false;  ofstream os;  //ofstream os ("./log/action.dat", std::ios::app);  // add by orit.  // read in all the command options and change the associated variables  // assume every two values supplied at prompt, form a duo  char * str;  for( int i = 1 ; i < argc ; i = i + 2  )  {    // help is only option that does not have to have an argument    if( i + 1 >= argc && strncmp( argv[i], "-help", 3 ) != 0 )    {      cout << "Need argument for option: " << argv[i] << endl;      exit( 0 );    }    // read a command option    if( argv[i][0] == '-' && strlen( argv[i] ) > 1)    {      switch( argv[i][1] )      {        case '?':                                   // print help          printOptions( );          exit(0);          break;        case 'c':                                   // clientconf file          if( cs.readValues( argv[i+1], ":" ) == false )            cerr << "Error in reading client file: " << argv[i+1] << endl;          break;        case 'f':                                   // formations file          strcpy( strFormations, argv[i+1] );          break;        case 'h':                                   // host server or help          if( strlen( argv [i]) > 2 && argv[i][2] == 'e' )          {            printOptions( );            exit(0);          }          else            strcpy( strHost, argv[i+1] );          break;        case 'i':                                   // info 1 0          str   = &argv[i+1][0];          bInfo = (Parse::parseFirstInt( &str ) == 1 ) ? true : false ;          break;        case 'l':                                   // loglevel int[..int]          str = &argv[i+1][0];          iMinLogLevel = Parse::parseFirstInt( &str );          while( iMinLogLevel != 0 )          {            if( *str == '.' || *str == '-') // '.' or '-' indicates range             {              *str++;              iMaxLogLevel = Parse::parseFirstInt( &str );                          if( iMaxLogLevel == 0 ) iMaxLogLevel = iMinLogLevel;              Log.addLogRange( iMinLogLevel, iMaxLogLevel );            }            else              Log.addLogLevel( iMinLogLevel );            iMinLogLevel = Parse::parseFirstInt( &str );                                    }          break;        case 'm':                                   // mode int          str = &argv[i+1][0];          iMode = Parse::parseFirstInt( &str );          break;        case 'n':                                   // number in formation int          str = &argv[i+1][0];          iNr = Parse::parseFirstInt( &str );          break;        case 'o':                                   // output file log info          os.open( argv[i+1] );          bSuppliedLogFile = true;          break;        case 'p':                                   // port          str = &argv[i+1][0];          iPort = Parse::parseFirstInt( &str );          break;        case 'r':                                   // reconnect 1 0          str = &argv[i+1][0];          iReconnect = Parse::parseFirstInt( &str );          break;        case 's':                                   // serverconf file          if( ss.readValues( argv[i+1], ":" ) == false )            cerr << "Error in reading server file: " << argv[i+1] << endl;          break;        case 't':                                   // teamname name          strcpy( strTeamName, argv[i+1] );          break;        case 'v':                                   // version version          str = &argv[i+1][0];          dVersion = Parse::parseFirstDouble( &str );          break;        default:          cerr << "(main) Unknown command option: " << argv[i] << endl;      }    }  }  if( bInfo == true )    cout << "team         : "  << strTeamName    << endl <<            "port         : "  << iPort          << endl <<            "host         : "  << strHost        << endl <<            "version      : "  << dVersion       << endl <<            "mode         : "  << iMode          << endl <<            "playernr     : "  << iNr            << endl <<            "reconnect    : "  << iReconnect     << endl ;   if( bSuppliedLogFile == true )    Log.setOutputStream( os );                   // initialize logger  else    Log.setOutputStream( cout );      //////////////////////////////////  /*  iMinLogLevel = 776;  iMaxLogLevel = 778;  Log.addLogRange( iMinLogLevel, iMaxLogLevel );  Log.setOutputStream( os );    */  /////////////////////////////////   	      Log.restartTimer( );  Formations fs( strFormations, FT_433_OFFENSIVE, iNr-1 );// read formations file  WorldModel wm( &ss, &cs, &fs );              // create worldmodel  Connection c( strHost, iPort, MAX_MSG );     // make connection with server  ActHandler a( &c, &wm, &ss );                // link actHandler and worldmodel  SenseHandler s( &c, &wm, &ss, &cs );         // link senseHandler with wm  Player bp( &a, &wm, &ss, &cs, &fs, strTeamName, dVersion, iReconnect );                                               // create player  pthread_create( &sense, NULL, sense_callback  , &s); // start listening  if( iMode > 0 ) // only listen to standard input when not playing    pthread_create( &listen, NULL, stdin_callback, &bp);   if( iMode == 0 )    bp.mainLoop();  else if( iMode == 1 )    bp.test_only_update();  c.disconnect();  os.close();}/*! This function prints the command prompt options that can be supplied to the    program. */void printOptions( ){  cout << "Command options:"                                         << endl <<   " c(lientconf) file     - use file as client conf file"           << endl <<   " f(ormations) file     - file with formation info"               << endl <<   " he(lp)                - print this information"                 << endl <<   " h(ost) hostname       - host to connect with"                   << endl <<   " i(nfo) 0/1            - print variables used to start"          << endl <<   " l(oglevel) int[..int] - level of debug info"                    << endl <<   " m(ode) int            - which mode to start up with"            << endl <<   " n(umber) int          - player number in formation"             << endl <<   " o(utput) file         - write log info to (screen is default)"  << endl <<   " p(ort)                - port number to connect with"            << endl <<   " r(econnect) int       - reconnect as player nr"                 << endl <<   " s(erverconf) file     - use file as server conf file"           << endl <<   " t(eamname) name       - name of your team"                      << endl;}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲人成网站在线| 亚洲图片激情小说| 美女视频黄频大全不卡视频在线播放| 欧美性大战久久久久久久| 亚洲已满18点击进入久久| 欧美日韩第一区日日骚| 免费高清成人在线| 国产欧美一区在线| 日本乱人伦aⅴ精品| 亚洲第一成年网| 日韩亚洲国产中文字幕欧美| 国内精品免费在线观看| 综合中文字幕亚洲| 777xxx欧美| 国产91丝袜在线18| 亚洲高清不卡在线| 精品第一国产综合精品aⅴ| 国产91在线|亚洲| 亚洲国产精品久久久久婷婷884 | 亚洲二区在线视频| 91精品国产综合久久精品图片| 蜜臀久久99精品久久久久久9 | 欧美日韩另类国产亚洲欧美一级| 日本视频免费一区| 国产精品美女久久久久久久网站| 欧美性猛片aaaaaaa做受| 久久国产精品无码网站| 亚洲人成网站色在线观看| 欧美福利视频一区| av激情综合网| 韩日精品视频一区| 亚洲综合免费观看高清完整版在线| 日韩视频免费观看高清在线视频| 成人免费观看视频| 久久精品久久99精品久久| 亚洲精品视频自拍| 国产午夜精品久久| 欧美一二三四在线| 色吊一区二区三区| 国产精品18久久久久久vr| 亚洲午夜影视影院在线观看| 久久午夜羞羞影院免费观看| 欧美三级日韩在线| 成人av手机在线观看| 奇米影视7777精品一区二区| 日韩毛片一二三区| 日韩久久精品一区| 欧美人伦禁忌dvd放荡欲情| av午夜一区麻豆| 国产麻豆视频一区二区| 日本不卡免费在线视频| 亚洲乱码国产乱码精品精的特点| 日韩免费电影一区| 欧美另类高清zo欧美| 久久中文字幕电影| 日韩欧美视频一区| 欧美精品xxxxbbbb| 欧美性色综合网| 91最新地址在线播放| 成人黄色小视频| 国产九九视频一区二区三区| 久久精品国产亚洲一区二区三区| 亚洲va韩国va欧美va精品| 亚洲伦理在线免费看| 亚洲图片激情小说| 中文字幕一区二区视频| 国产精品美女久久福利网站| 国产亚洲一区二区三区四区| 精品国产一区二区三区四区四| 欧美精品1区2区3区| 欧美探花视频资源| 欧美撒尿777hd撒尿| 在线观看日产精品| 欧美三区免费完整视频在线观看| 一本大道久久a久久精品综合| 成人av网站在线| 91视频在线看| 在线观看日韩电影| 欧美日韩高清不卡| 欧美一区二区在线看| 日韩一二三区不卡| 欧美成人一区二区三区片免费 | 一区二区免费视频| 最新高清无码专区| 一区二区三区四区亚洲| 亚洲国产精品一区二区尤物区| 午夜精品久久久久久不卡8050| 日韩中文字幕91| 久久99精品久久久久久动态图| 久久99在线观看| 国产美女娇喘av呻吟久久| 欧美精品免费视频| 日韩精品一区二区三区中文不卡| 欧美电影免费观看高清完整版在 | 国产一区二区三区四区五区美女 | 久热成人在线视频| 国产一区二区日韩精品| 大陆成人av片| 在线观看av一区二区| 欧美在线免费观看亚洲| 欧美久久久久免费| 久久久久久久久久看片| 中文字幕制服丝袜一区二区三区| 国产精品毛片无遮挡高清| 亚洲欧美日韩电影| 免费看日韩a级影片| 风间由美性色一区二区三区| 色诱视频网站一区| 欧美zozo另类异族| 国产精品狼人久久影院观看方式| 亚洲永久免费av| 韩国v欧美v日本v亚洲v| 91视频com| 日韩精品中午字幕| 亚洲精品视频观看| 美腿丝袜亚洲综合| 9久草视频在线视频精品| 欧美老肥妇做.爰bbww视频| 精品久久人人做人人爱| 亚洲伦理在线精品| 国产精品综合在线视频| 欧美三级韩国三级日本三斤| 久久精品日产第一区二区三区高清版 | 午夜不卡av在线| 国产精品99久久久久久宅男| 欧美色网一区二区| 中文字幕 久热精品 视频在线| 婷婷国产在线综合| 99久精品国产| 久久亚洲一区二区三区明星换脸 | a在线播放不卡| 日韩精品一区二区三区蜜臀| 一区二区三区在线视频免费 | 亚洲色图清纯唯美| 经典一区二区三区| 欧美影视一区在线| 国产精品美女久久福利网站| 久久国产视频网| 欧美老肥妇做.爰bbww视频| 亚洲欧洲日产国码二区| 国产综合色在线| 欧美一级久久久久久久大片| 亚洲欧美一区二区三区久本道91 | 91精品国产免费| 亚洲人成人一区二区在线观看| 欧美aⅴ一区二区三区视频| 一本色道亚洲精品aⅴ| 国产亚洲一区二区在线观看| 裸体歌舞表演一区二区| 欧美日韩国产综合一区二区三区 | 蜜臀av一级做a爰片久久| 欧美在线小视频| 亚洲欧美aⅴ...| 99视频在线精品| 中文字幕一区二区5566日韩| 国产99一区视频免费| 久久久午夜电影| 国产自产v一区二区三区c| 日韩精品专区在线影院观看| 日本不卡高清视频| 欧美一区二区三区四区久久| 亚洲成a人v欧美综合天堂| 在线观看91视频| 亚洲一区在线看| 欧美男男青年gay1069videost| 亚洲a一区二区| 欧美一区二区三区啪啪| 日本视频中文字幕一区二区三区| 91精品久久久久久蜜臀| 蜜桃视频在线一区| 日韩欧美国产午夜精品| 国产在线看一区| 国产日韩欧美一区二区三区综合| 国产sm精品调教视频网站| 欧美激情一区在线| 91欧美激情一区二区三区成人| 亚洲欧美日韩在线| 91福利社在线观看| 香蕉久久夜色精品国产使用方法| 欧美三级在线播放| 舔着乳尖日韩一区| 欧美电视剧在线看免费| 国产美女在线观看一区| 国产精品少妇自拍| 色美美综合视频| 五月天亚洲婷婷| 精品国产亚洲在线| 大胆亚洲人体视频| 亚洲国产日韩一级| 日韩精品一区二区三区老鸭窝| 国内精品自线一区二区三区视频| 欧美极品少妇xxxxⅹ高跟鞋| 91美女视频网站| 性久久久久久久久| 久久久亚洲午夜电影| 一本色道亚洲精品aⅴ| 日韩av一区二区三区| 久久精品在线观看| 色哟哟一区二区| 久久电影网站中文字幕 |