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

📄 visualsystem.h

📁 2002年
💻 H
字号:
#ifndef __VISUALSYSTEM_H__
#define __VISUALSYSTEM_H__


#include "types.h"
#include "command.h"
#include "strategy.h"
#include "mediator.h"


const int CP_max_bvalidcycles = 10;

class MobileObject;
class Player;

class VisualSystem{
public:	
private:
/*********  direction confidence   *******************/

	AngleDeg StrategyRequestAngle[3];
	float priorityfactor[3];
	
	PrioredCommand bestaction;
	Vector nextselfpos;

	inline bool Isballbyfeel();
	inline bool Isobjconfmax(MobileObject& obj);

	void Raiseplayer(Player& p, float priority);
	void Raise(VisualObjType otype, AngleDeg angle, float priority);
	void Raise(VisualObjType otype, AngleDeg angle, AngleDeg distribute, float priority);
	void Findforgetobj(VisualObjType otype, AngleDeg angle, AngleDeg distribute, float maxpriority);

	void DoViewModeDecision(bool forcenarrow = false);
	
	void GetActionInf();

	void DoSeek(float maxpriority, AngleDeg recommendedangle = 0);
	
public:
	VisualSystem();

	void DoVisualDecision();

	
	bool Vinfo_coming;
	float Vcominginfo_angle;
	float Vcominginfo_width;

	void PredictNextSightInf();
/******************************************************************************/
	float GetPromisingAngle(VisualObjType obj, UNum idx = 0);
	inline float Predictconf(float ang);
	inline bool Predictseen(float ang);
	bool FindBall();
};

#endif //__VISUALSYSTEM_H__

































⌨️ 快捷键说明

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