Files
aixianling 5c9f1dae4a init
2025-01-09 17:45:40 +08:00

21 lines
637 B
C++
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#pragma once
//////////////////////////////////////////////////////////////////////////
// NPCAI NPC AI实现类
// 目前因为只有针对NPC发言相关的需求,通过NPCAI来实现。后面经讨论说可以借用现有
// 的NPC Idle实际上也是一个定时执行脚本来实现。以后有什么NPC相关的AI需求可
// 以在这里开发。
class CNpcAI : public CAnimalAI
{
public:
typedef CAnimalAI Inherid;
virtual void UpdateAI(TICKCOUNT nCurrentTick);
virtual void initialize(PAICONFIG pAiconfig);
protected:
void UpdateNPCTalk();
void UpdateNPCNonCombatTalkImpl();
void PostponeTalkTimer();
};