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

📄 pathfinder.h

📁 这是整套横扫千军3D版游戏的源码
💻 H
字号:
#ifndef PATHFINDER_H#define PATHFINDER_H#include "GlobalAI.h"using namespace NSMicroPather;class CPathFinder: public Graph {	public:		CPathFinder(AIClasses* ai);		~CPathFinder();		void Init();		void* XY2Node(int x, int y);		void Node2XY(void* node, int* x, int* y);		float3 Node2Pos(void* node);		void* Pos2Node(float3 pos);		void ClearPath();		unsigned Checksum();		float MakePath(vector<float3>* posPath, float3* startPos, float3* endPos, int radius);		float FindBestPath(vector<float3>* posPath, float3* startPos, float myMaxRange, vector<float3>* possibleTargets);		// added for convenience		float FindBestPathToRadius(vector<float3>* posPath, float3* startPos, float radiusAroundTarget, float3* target);		void CreateDefenseMatrix();	//	virtual void PrintStateInfo(void* state) {	//		state = state;	//	}		void PrintData(string s);		MicroPather* micropather;		bool* TestMoveArray;		vector<bool*> MoveArrays;		int NumOfMoveTypes;		float* SlopeMap;		float* HeightMap;		int PathMapXSize;		int PathMapYSize;		int totalcells;		double AverageHeight;	private:		std::vector<void*> path;		float totalcost;		float resmodifier;		AIClasses* ai;};#endif

⌨️ 快捷键说明

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