goal_gotonode.h

来自「C人工智能游戏开发的一些实例源代码 C Game development in 」· C头文件 代码 · 共 28 行

H
28
字号


class PathNode;
class TAI;

class Goal_GotoNode : public Goal, public GoalQueue
{
public:
	Goal_GotoNode( AI* pAI, const PathNode *destination, 
				      bool bForceDirectPath = false );
	virtual ~Goal_GotoNode();

	// Update the goal
	virtual void Update( float secs_elapsed );

	virtual bool Success();

	virtual bool ReplanSubgoals(); 

	const PathNode* GetDestinationNode() { return node; }

protected:
	bool active;
	float stuckTimer;
	const PathNode *node;
	bool directPath;
};

⌨️ 快捷键说明

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