struct IAICommunicationHandler { enum ECommunicationHandlerEvent { SoundStarted = 0, SoundFinished, SoundCancelled, SoundFailed, VoiceStarted, VoiceFinished, VoiceCancelled, VoiceFailed, ActionStarted, ActionCancelled, ActionFailed, SignalStarted, SignalFinished, SignalCancelled, SignalFailed }; enum EAnimationMethod { AnimationMethodSignal = 0, AnimationMethodAction }; struct IEventListener { }; };
IAgent.h
enum EAnimationMethod { AnimationMethodSignal = 0, AnimationMethodAction };
IAgent.h
enum ECommunicationHandlerEvent { SoundStarted = 0, SoundFinished, SoundCancelled, SoundFailed, VoiceStarted, VoiceFinished, VoiceCancelled, VoiceFailed, ActionStarted, ActionCancelled, ActionFailed, SignalStarted, SignalFinished, SignalCancelled, SignalFailed };
IAgent.h
struct IEventListener { };
IAgent.h
virtual ~IEventListener();
virtual void OnCommunicationHandlerEvent(ECommunicationHandlerEvent type, CommPlayID playID, EntityId actorID) = 0;
virtual ~IAICommunicationHandler();
virtual bool IsInAGState(const char* name) = 0;
virtual bool IsPlayingAnimation() const = 0;
virtual bool IsPlayingSound() const = 0;
virtual void PlayAnimation(CommPlayID playID, const char* name, EAnimationMethod method, IEventListener* listener = 0) = 0;
virtual void ResetAnimationState() = 0;
virtual void SendDialogueRequest(CommPlayID playID, const char* name, IEventListener* listener = 0) = 0;
virtual tSoundID PlayVoice(CommPlayID playID, const char* name, IEventListener* listener = 0) = 0; virtual void StopVoice(tSoundID soundID) = 0;
virtual void StopAnimation(CommPlayID playID, const char* name, EAnimationMethod method) = 0;