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

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

?? worldmodel.c

?? 機器足球2D比賽程序 對trlen_base_2002的改進
?? C
?? 第 1 頁 / 共 5 頁
字號:
/*! This method returns the goal difference. When this value is below zero,  the team of agent is behind, 0 means that the score is currently the same  for both teams and a value higher than zero means that you're winning!.  \return goal difference */int WorldModel::getGoalDiff( ) const{	return iGoalDiff;}/*!This method adds one goal to the goal difference. Call this method when your  team has scored a goal  \return new goal difference */int WorldModel::addOneToGoalDiff( ){	return ++iGoalDiff;}/*!This method subtracts one from the goal difference. Call this method when  you're team has conceided a goal  \return new goal difference */int WorldModel::subtractOneFromGoalDiff(){	return --iGoalDiff;}/*! This method returns the amount of commands c performed by the agent.  This is supplied in the sense_body message.  \param c CommandT of which number of commands should be returned.  \return amount of commands c performed by the soccerserver. */int WorldModel::getNrOfCommands( CommandT c ) const{	return iCommandCounters[ (int) c ];}/*! This method sets the number of commands c that were performed by the agent.  This is supplied in the sense_body message and can be used to check  whether an action is actually performed by the soccer server, since the  corresponding counter should be one higher than the previous  sense_body message. When this is the case the corresponding index of  the PerformedCommands array is set to true.  \param c CommandT of which the number of commands should be set.  \param i number of commands that are performed of this command  \return bool indicating whether update was performed. */bool WorldModel::setNrOfCommands( CommandT c, int i ){	int iIndex = (int) c;	// if counter is the same as before, no command is performed, otherwise it is	performedCommands[iIndex] = ( iCommandCounters[iIndex] == i ) ? false : true;	iCommandCounters [iIndex] = i;	return true;}/*! This method returns the time the status of the ball was last checked  (coach only).  \return server cycle the status of the ball was last checked. */Time WorldModel::getTimeCheckBall( ) const{	return timeCheckBall;}/*! This method sets the time the ball was checked for the last time (coach  only).  \param time server time ball was checked.  \return bool indicating whether update was succesfull. */bool WorldModel::setTimeCheckBall( Time time ){	timeCheckBall = time;	return true;}/*! This method returns the status of the ball. This value is derived from  the check_ball command that can only be used by the coach. The status of  the ball corresponds to the server time returned by getTimeCheckBall.  \return BallStatus status of the ball. */BallStatusT WorldModel::getCheckBallStatus( ) const{	return bsCheckBall;}/*! This method sets the status of the ball. The status of the ball  corresponds to the server time returned by getTimeCheckBall.  This method  is only useful for the coach, since only he can sent a check_ball message.  \return BallStatus status of the ball.  */bool WorldModel::setCheckBallStatus( BallStatusT bs ){	bsCheckBall = bs;	return true;}/*!This method starts an iteration over an object set g. This method will  return the first ObjectT in an ObjectSetT that has a confidence higher than  dConf. After this call use the method iterateObjectNext with the same  argument to get the other objects that belong to this set.  \param iIndex index that should be used in consecutive cycles.  \param g ObjectSetT of which the ObjecT should be returned.  \param dConf minimum confidence needed for ObjectT to be returned.  \return ObjectT that is first in the set g. */ObjectT WorldModel::iterateObjectStart(int& iIndex,ObjectSetT g,double dConf){	iIndex = -1;	return iterateObjectNext( iIndex, g, dConf);}/*!This method gets the next object in the iteration over an object set g.  iterateObjectStart should have been called first. Only ObjectT with a  confidence higher than dConf will be returned. When no more objects are  available OBJECT_ILLEGAL is returned.  \param iIndex same argument as was supplied to iterateObjectStart.  \param g ObjectSetT of which the ObjecT should be returned.  \param dConf minimum confidence needed for ObjectT to be returned.  \return ObjectT that is next in the set g. */ObjectT WorldModel::iterateObjectNext(int& iIndex,ObjectSetT g, double dConf){	ObjectT o = OBJECT_ILLEGAL;;	if( iIndex < 0 ) 		iIndex = -1;	// when dConf is not specified it has the default value of -1.0, in this	// case set it to the confidence threshold defined in PlayerSetting, but	// only do this for dynamic objexts, not for flags, lines, etc. since all	// should be returend.	if( dConf == -1.0 && (g==OBJECT_SET_OPPONENTS || g==OBJECT_SET_PLAYERS ||				g==OBJECT_SET_TEAMMATES) )		dConf = PS->getPlayerConfThr();	for( int i = iIndex + 1 ; i < OBJECT_MAX_OBJECTS; i ++ )	{		o = (ObjectT) i;		if( SoccerTypes::isInSet( o, g ) )		{			if( getConfidence( o ) >= dConf )			{				iIndex = i;				return o;			}			else if( dConf == 1.0 && getTimeLastSeeMessage() == getTimeLastSeen( o ) )			{				iIndex = i; // confidence of 1.0 can only be in same cycle as see				return o;   // message. Therefore first test should succeed normally;			}             // in cases where this method is called after see message,			// but new sense has already arrived, confidence is lowered		}               // but we want to return object that was seen in last see	}                 // message; this compensates for those cases.	return OBJECT_ILLEGAL;}/*!This method finsished the iteration. It should be called after  iterateObjectNext has returned OBJECT_ILLEGAL indicating no more objects are  available that satisfy the constraints.  \param iIndex index of iteration */void WorldModel::iterateObjectDone( int &iIndex ){	iIndex = -1;}/*! This method returns the ObjectType of the agent. This  is an ObjectT between OBJECT_TEAMMATE_1 and OBJECT_TEAMMATE_11  \return ObjectT that represent the type of the agent  */ObjectT WorldModel::getAgentObjectType( ) const{	return agentObject.getType();}/*! This method sets the ObjectType of the agent. This  is an objectT between OBJECT_TEAMMATE_1 and OBJECT_TEAMMATE_11  \param ObjectT that represent the type of the agent  \return bool indicating whether the update was succesful */bool WorldModel::setAgentObjectType( ObjectT o ){	agentObject.setType( o );	return true;}/*! This method returns the body angle relative to the neck of the agent.  \return AngDeg representing the body angle relative to the neck */AngDeg WorldModel::getAgentBodyAngleRelToNeck( ) const{	return agentObject.getBodyAngleRelToNeck();}/*! This method returns the global neck angle of the agent in the world.  \return global neck angle agent */AngDeg WorldModel::getAgentGlobalNeckAngle(  ) const{	return agentObject.getGlobalNeckAngle(  );}/*! This method returns the global body angle of the agent in the world.  \return global body angle agent */AngDeg WorldModel::getAgentGlobalBodyAngle(  ){	return agentObject.getGlobalBodyAngle(  );}/*! This method returns the stamina information of the agent  \return Stamina stamina of the agent */Stamina WorldModel::getAgentStamina( ) const{	return agentObject.getStamina();}/*! This method returns a TiredNessT value that indicates how tired the agent  is.   \return TiredNessT value that indicates how tired the agent is. */TiredNessT WorldModel::getAgentTiredNess( ) const{	return getAgentStamina().getTiredNess( 			SS->getRecoverDecThr(), SS->getStaminaMax() );}/*! This method returns the effort information of the agent  \return double effort of the agent */double WorldModel::getAgentEffort( ) const{	return agentObject.getStamina().getEffort();}/*! This method returns the global velocity information of the agent  \return global velocity of the agent */VecPosition WorldModel::getAgentGlobalVelocity( ) const{	return agentObject.getGlobalVelocity();}/*! This method returns the speed of the agent  \return speed of the agent */double WorldModel::getAgentSpeed( ) const{	return agentObject.getSpeed();}/*! This method returns the global position of the agent  \return global position of the agent */VecPosition WorldModel::getAgentGlobalPosition( ) const{	return agentObject.getGlobalPosition();}/*! This method returns the view angle of the agent.  \return ViewAngleT view angle of the agent (VA_NARROW, VA_NORMAL, VA_WIDE)*/ViewAngleT WorldModel::getAgentViewAngle( ) const{	return agentObject.getViewAngle();}/*! This method returns the view quality of the agent  \return ViewQualityT of the agent (VA_LOW, VA_HIGH). */ViewQualityT WorldModel::getAgentViewQuality( ) const{	return agentObject.getViewQuality();}/*! This method returns the view frequency of see messages for the agent  relative to the time of the sense_body interval. So 0.5 means a see  message arrives twice in every simulation cycle.  \return double representing the view frequency */double WorldModel::getAgentViewFrequency( ViewAngleT va, ViewQualityT vq ) {	double dViewQualityFactor = 0.0;	double dViewWidthFactor   = 0.0;	if( va == VA_ILLEGAL )		va = getAgentViewAngle();  	if( vq == VQ_ILLEGAL )		vq = getAgentViewQuality();  	switch( va )	{		case VA_NARROW:  dViewWidthFactor   = 0.5; break;		case VA_NORMAL:  dViewWidthFactor   = 1.0; break;		case VA_WIDE:    dViewWidthFactor   = 2.0; break;		case VA_ILLEGAL:		default:         dViewWidthFactor   = 0.0; break;	}	switch( vq )	{		case VQ_LOW:     dViewQualityFactor = 0.5; break;		case VQ_HIGH:    dViewQualityFactor = 1.0; break;		case VQ_ILLEGAL:		default:         dViewQualityFactor = 0.0; break;	}	return dViewQualityFactor*dViewWidthFactor;}/*! This method returns the global position of the ball. The method  getConfidence with as argument OBJECT_BALL should be called to check the  confidence of this global position.  \return global position bal. */VecPosition  WorldModel::getBallPos(){	return getGlobalPosition( OBJECT_BALL );}/*! This method returns the current estimate of the speed of the ball.  \return speed of the ball (magnitude of the global velocity vector). */double WorldModel::getBallSpeed(){	return Ball.getGlobalVelocity().getMagnitude();}/*! This method returns the global direction of the ball velocity.  \return global direction of the ball velocity */AngDeg WorldModel::getBallDirection(){	return Ball.getGlobalVelocity().getDirection();}/*! This method returns the time of the global position  of the specified object.  \param ObjectT that represent the type of the object to check  \return time corresponding to the global position of 'o' */Time WorldModel::getTimeGlobalPosition( ObjectT o ){	PlayerObject *object = (PlayerObject*) getObjectPtrFromType( o );	if( object != NULL )		return object->getTimeGlobalPosition();	return UnknownTime;}/*! This method returns the global position of an objectType. This method is  normally used for the objects on the field (player, opponents and the ball).  When the global position cannot be determined, a VecPosition with both the  x and y coordinate are set to 'UnknownDoubleValue'.  \param ObjectT that represent the type of the object to check  \return VecPosition containing the global position. */VecPosition WorldModel::getGlobalPosition( ObjectT o ){	Object *object = getObjectPtrFromType( o );	if( object != NULL )	{		if( SoccerTypes::isFlag( o ) || SoccerTypes::isGoal( o ) )			return SoccerTypes::getGlobalPositionFlag(o,getSide(),SS->getGoalWidth());		else			return object->getGlobalPosition();	}	return VecPosition( UnknownDoubleValue, UnknownDoubleValue);}/*! This method returns the time of the global velocity  of the specified object.  \param ObjectT that represent the type of the object to check  \return time corresponding to the global velocity of 'o' */Time WorldModel::getTimeGlobalVelocity( ObjectT o ){	PlayerObject *object = (PlayerObject*) getObjectPtrFromType( o );	if( object != NULL )		return object->getTimeGlobalVelocity();	return UnknownTime;}/*! This method returns the global velocity of an objectType. When the  global position cannot be determined, a VecPosition is returned with  both the x and y coordinate set to 'UnknownDoubleValue'.

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产亚洲精品aa| 亚洲女人小视频在线观看| 色婷婷综合久色| 国产一区二区三区四区在线观看| 国产精品久久久久久久浪潮网站| 精品国产麻豆免费人成网站| 91久久精品网| 不卡的电影网站| 国产sm精品调教视频网站| 欧美a一区二区| 调教+趴+乳夹+国产+精品| 亚洲精品视频一区二区| 亚洲私人黄色宅男| 国产欧美精品一区二区色综合 | 国产精品久久久久久久久果冻传媒 | 蜜臀av在线播放一区二区三区| 中文字幕欧美日韩一区| 欧美日韩亚洲综合在线 欧美亚洲特黄一级| 久久国内精品自在自线400部| 亚洲免费av高清| 一区二区在线观看视频 | 久久精品久久综合| 国产成人午夜99999| 国产成人在线视频网址| 不卡视频一二三四| 欧美伊人久久久久久久久影院| 91免费国产视频网站| 色综合久久久久综合体桃花网| 在线精品视频免费播放| 中文字幕精品—区二区四季| 精品视频一区 二区 三区| 欧美精品一区二区不卡| 亚洲成a人v欧美综合天堂下载| 日韩中文字幕1| 成人午夜免费电影| 欧美一区二区三区免费大片| 久久先锋影音av鲁色资源| 亚洲视频香蕉人妖| 日本麻豆一区二区三区视频| 成人99免费视频| 欧美二区在线观看| 亚洲欧洲成人精品av97| 亚洲成人你懂的| 97久久精品人人做人人爽50路| 3d动漫精品啪啪1区2区免费| 国产欧美一区二区精品性色| 日韩理论片一区二区| 久久激五月天综合精品| 99精品桃花视频在线观看| 日韩视频一区二区| 一区二区三区精品久久久| 国产成人免费在线观看不卡| 欧美xxxxx裸体时装秀| 亚洲美女精品一区| 91一区二区三区在线观看| 日韩三级免费观看| 免费一级欧美片在线观看| 欧美写真视频网站| 亚洲一卡二卡三卡四卡五卡| 成人天堂资源www在线| www国产精品av| 国产真实精品久久二三区| 日韩欧美国产wwwww| 蜜臀av一级做a爰片久久| 日韩免费看网站| 国产精品一区二区免费不卡 | 日本久久一区二区三区| 中文字幕一区av| 在线观看三级视频欧美| 一级特黄大欧美久久久| 欧美日韩精品综合在线| 日韩成人伦理电影在线观看| 日韩一级大片在线| 久久国产精品99久久久久久老狼| 日韩欧美一区中文| 国产精品18久久久久久久久| 国产喷白浆一区二区三区| 成人av在线影院| 一区二区三区在线视频免费 | 精品视频在线视频| 久久99久久99精品免视看婷婷| 久久精品男人天堂av| 91在线视频免费观看| 视频一区中文字幕| 国产精品不卡在线观看| 91婷婷韩国欧美一区二区| 天天亚洲美女在线视频| 久久久久久一二三区| 欧美三级韩国三级日本一级| 久久精品999| 亚洲理论在线观看| 26uuu久久综合| 色94色欧美sute亚洲线路二| 极品瑜伽女神91| 亚洲午夜电影在线观看| 国产精品视频一二| 精品三级在线看| 欧美亚洲综合色| 成人h精品动漫一区二区三区| 爽好多水快深点欧美视频| 中文字幕一区不卡| 亚洲国产精品黑人久久久| 日韩视频在线你懂得| 精品视频全国免费看| 91丨九色丨国产丨porny| 国产一区二区三区高清播放| 蜜桃av噜噜一区二区三区小说| 夜夜夜精品看看| 一区二区视频在线| 亚洲欧美日韩在线不卡| 国产精品视频在线看| 国产蜜臀av在线一区二区三区| 久久先锋影音av鲁色资源| 欧美tickling网站挠脚心| 欧美日韩亚洲综合在线 欧美亚洲特黄一级| 国产成a人无v码亚洲福利| 国产不卡免费视频| 丁香六月久久综合狠狠色| 国产99精品国产| 成年人网站91| 色综合咪咪久久| 99精品欧美一区二区三区综合在线| eeuss国产一区二区三区| 91在线免费看| 欧美丝袜丝交足nylons图片| 5566中文字幕一区二区电影| 日韩欧美一级精品久久| 精品欧美久久久| 国产人成一区二区三区影院| 三级欧美在线一区| 午夜精品123| 国产精品久久久久精k8| 欧美一区二区三区影视| 在线观看av不卡| 久久美女艺术照精彩视频福利播放| 欧美mv日韩mv亚洲| 激情丁香综合五月| 亚洲同性同志一二三专区| 宅男在线国产精品| 国产成人99久久亚洲综合精品| 一级特黄大欧美久久久| 久久精品日产第一区二区三区高清版 | 国产精品996| 一区二区成人在线| 中文字幕高清不卡| 欧美xxxxx牲另类人与| 欧美伊人久久久久久久久影院| 国产成人精品亚洲午夜麻豆| 美女网站在线免费欧美精品| 亚洲自拍欧美精品| 1000精品久久久久久久久| 欧美绝品在线观看成人午夜影视| 久久精品999| 欧美va亚洲va国产综合| 尤物av一区二区| 国产成人精品影视| 日韩美女视频19| 国产一区福利在线| 在线成人av网站| 亚洲国产精品ⅴa在线观看| 三级欧美韩日大片在线看| 99热这里都是精品| 久久精品一区蜜桃臀影院| 美女一区二区久久| 欧美日韩黄色一区二区| 中文字幕视频一区二区三区久| 高清shemale亚洲人妖| 日韩精品在线一区二区| 日本高清免费不卡视频| av综合在线播放| 国产九色精品成人porny| 国产一区二区三区四| 日韩av在线发布| 亚洲丰满少妇videoshd| 综合中文字幕亚洲| 日本一区二区免费在线观看视频| 精品理论电影在线| 日韩欧美三级在线| 欧美成人福利视频| 日韩午夜电影av| 精品久久久久av影院| 精品粉嫩超白一线天av| 欧美成人三级电影在线| 日韩一级二级三级| 日韩西西人体444www| 日韩欧美一级精品久久| 日韩一区二区电影在线| 日韩精品中文字幕一区二区三区| 日韩精品专区在线| 日韩免费观看高清完整版| 欧美成人aa大片| 久久新电视剧免费观看| 久久天堂av综合合色蜜桃网| 久久久天堂av| 亚洲国产精品v| 亚洲欧美日韩国产另类专区| 亚洲黄色小视频| 亚洲成人免费观看| 免费高清在线视频一区·| 精品一区二区三区的国产在线播放|