visualsystem.h

来自「2002年」· C头文件 代码 · 共 93 行

H
93
字号
#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 + =
减小字号Ctrl + -
显示快捷键?