goal_rideelevator.h
来自「C人工智能游戏开发的一些实例源代码 C Game development in 」· C头文件 代码 · 共 31 行
H
31 行
#include "Goal.h"
class PathNode;
class PathLink;
class AI;
class Elevator;
class Goal_RideElevator : public Goal, public GoalQueue
{
public:
enum Stage { CallingElevator = 0, EnteringElevator, RidingElevator };
Goal_RideElevator( AI* pAI, const PathLink *entryLink_, const PathNode *endNode);
virtual ~Goal_RideElevator();
// Update the goal
virtual void Update( float secs_elapsed );
virtual bool ReplanSubgoals();
protected:
int stage;
const Elevator *elevator;
const PathLink *entryLink;
const PathNode *end;
bool active; //has this goal been active?
};
#endif // _TAIGoal_RideElevator_H_
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?