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

📄 goal_followlink.h

📁 很好游戏代码
💻 H
字号:
#include "Goal.h"

class PathNode;
class AI;

class Goal_FollowLink : public Goal, public GoalQueue
{
public:

	enum LinkType { Normal, Jump, JumpOverGap, Shimmy, MaxLinkTypes };
	Goal_FollowLink( AI* pAI, const PathLink *pathlink);

	virtual ~Goal_FollowLink();

	virtual bool Success();

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

	void DoLedgeShimmy();
	void DoJumpOverGap();

	float ExpectedLinkSpeed() const;

protected:
	bool active;
	bool jumped;
	float stuckTimer;
	bool TooFarBelowLink(const CVector& curPos) const;
	const PathLink *link;

	LinkType linkType;
};

#endif // _Goal_FollowLink_H_

⌨️ 快捷键说明

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