Public Member Functions | Public Attributes | Protected Member Functions

VIAgents.Agent Class Reference

Basis class for autonomous agents in Second Life. More...

Inheritance diagram for VIAgents.Agent:
VIAgents.InstitutionalAgent VIAgents.ControlledChatterBot VIAgents.ControlledSLBot VIAgents.SLBot

List of all members.

Public Member Functions

 Agent (string inFirstName, string inLastName, string inPassword, string inRegion, bool inTeleport)
 Agent (string inFirstName, string inLastName, string inPassword)
void UsesPlan (Plan inPlan)
 Inform another agent of an event.
String GetFullName ()
String GetFirstName ()
override bool IsConnected ()

Public Attributes

const int kContinueWorkAfterIdleForMSec = 15000

Protected Member Functions

void OnIM (object sender, InstantMessageEventArgs ev)
 Tell the agent to pause its plan that handles an event of the given type.
override void OnReceiveAgentMessage (string inMessage, InstitutionalAgent inSender)

Detailed Description

Basis class for autonomous agents in Second Life.


Constructor & Destructor Documentation

VIAgents.Agent.Agent ( string  inFirstName,
string  inLastName,
string  inPassword,
string  inRegion,
bool  inTeleport 
)
VIAgents.Agent.Agent ( string  inFirstName,
string  inLastName,
string  inPassword 
)

Member Function Documentation

String VIAgents.Agent.GetFirstName (  ) 
String VIAgents.Agent.GetFullName (  ) 
override bool VIAgents.Agent.IsConnected (  )  [virtual]

Call this method to check if the agent is connected to the SecondLife server.

Reimplemented from VIAgents.SLBot.

void VIAgents.Agent.OnIM ( object  sender,
InstantMessageEventArgs  ev 
) [protected]

Tell the agent to pause its plan that handles an event of the given type.

override void VIAgents.Agent.OnReceiveAgentMessage ( string  inMessage,
InstitutionalAgent  inSender 
) [protected, virtual]

Allows sending direct messages between agents without using the IM facility

Reimplemented from VIAgents.InstitutionalAgent.

void VIAgents.Agent.UsesPlan ( Plan  inPlan  ) 

Inform another agent of an event.

Parameters:
inEvent The incomming event Event

Instruct the agent to use a certain plan

Parameters:
inPlan The Plan must define the event it handles.

Member Data Documentation


The documentation for this class was generated from the following file: