/* Simple MS Agent Class.
* For help with this code Csharp-home.com forums or nerdandy@gmail.com
* For more Agents go to
http://rainbow.arch.scriptmania.com/merlin/webpage_more_agents.html
* */
using System;
using System.Collections.Generic;
using System.Text;
using AgentObjects?;



namespace Agent
{
class NAgent
{
AgentClass? nAgent;
public NAgent()
{
nAgent = new AgentObjects?.AgentClass();
nAgent.Connected = true;
nAgent.Characters.Load("merlin", "merlin.acs");
nAgent.Characters.Character("merlin").LanguageID = 0x409;
nAgent.Characters.Character("merlin").Show(null);
//hide the Balloon
nAgent.Characters.Character("merlin").Balloon.Style = 0000;
nAgent.Characters.Character("merlin").Play("GestureRight");
nAgent.Characters.Character("merlin").Speak("C sharp home
dot com, where devolpers play ", null);
}

public void NAgentRead(string text)
{
nAgent.Characters.Character("merlin").Speak(text, null);
}

public void NAgentStop()
{
nAgent.Characters.Character("merlin").StopAll(null);
}

public void NAnimate(string action)
{
//GestureRight,GetAttention?,GetAttentionContinued?,Surprised,Blink

//DoMAgic2,DoMAgic2,Greet,Congratulate_2,Process,Search,Wave,Announce
//ReadReturn, hide,
nAgent.Characters.Character("merlin").Play("ReadReturn");
}



}
}