OpenSim
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | Public Attributes | Protected Attributes | Properties | Events | List of all members
pCampBot.Bot Class Reference

Public Member Functions

delegate void AnEvent (Bot callbot, EventType someevent)
 
 Bot (BotManager bm, List< IBehaviour > behaviours, string firstName, string lastName, string password, string startLocation, string loginUri)
 Constructor More...
 
bool TryGetBehaviour (string abbreviatedName, out IBehaviour behaviour)
 
bool AddBehaviour (IBehaviour behaviour)
 
bool RemoveBehaviour (string abbreviatedName)
 
void Disconnect ()
 Tells LibSecondLife to logout and disconnect. Raises the disconnect events once it finishes. More...
 
void Connect ()
 
void SitOnGround ()
 Sit this bot on the ground. More...
 
void Stand ()
 Stand this bot More...
 
void SaveDefaultAppearance ()
 
void SaveAsset (AssetWearable asset)
 
WearableType GetWearableType (string path)
 
void MakeDefaultAppearance (string wear)
 
InventoryFolder FindClothingFolder ()
 
void Network_LoginProgress (object sender, LoginProgressEventArgs args)
 
void Network_SimConnected (object sender, SimConnectedEventArgs args)
 
void Network_SimDisconnected (object sender, SimDisconnectedEventArgs args)
 
void Network_OnDisconnected (object sender, DisconnectedEventArgs args)
 
void Objects_NewPrim (object sender, PrimEventArgs args)
 
void Asset_TextureCallback_Texture (TextureRequestState state, AssetTexture assetTexture)
 
void Asset_ReceivedCallback (AssetDownload transfer, Asset asset)
 

Public Attributes

string saveDir
 
string wear
 

Protected Attributes

List< uint > objectIDs = new List<uint>()
 

Properties

int PacketDebugLevel [get, set]
 
bool RequestObjectTextures [get, set]
 Controls whether bots request textures for the object information they receive More...
 
BotManager Manager [get, set]
 Bot manager. More...
 
Dictionary< string, IBehaviourBehaviours [get, set]
 Behaviours implemented by this bot. More...
 
Dictionary< UUID, Primitive > Objects [get]
 Objects that the bot has discovered. More...
 
ConnectionState ConnectionState [get, set]
 Is this bot connected to the grid? More...
 
List< Simulator > Simulators [get]
 
int SimulatorsCount [get]
 The number of connections that this bot has to different simulators. More...
 
string FirstName [get, set]
 
string LastName [get, set]
 
string Name [get, set]
 
string Password [get, set]
 
string LoginUri [get, set]
 
string StartLocation [get, set]
 
Random Random [get, set]
 Random number generator. More...
 
GridClient Client [get, set]
 New instance of a SecondLife client More...
 

Events

AnEvent OnConnected
 
AnEvent OnDisconnected
 

Detailed Description

Definition at line 56 of file Bot.cs.

Constructor & Destructor Documentation

pCampBot.Bot.Bot ( BotManager  bm,
List< IBehaviour behaviours,
string  firstName,
string  lastName,
string  password,
string  startLocation,
string  loginUri 
)
inline

Constructor

Parameters
bm
behavioursBehaviours for this bot to perform
firstName
lastName
password
loginUri
behaviours

Definition at line 185 of file Bot.cs.

Here is the call graph for this function:

Member Function Documentation

bool pCampBot.Bot.AddBehaviour ( IBehaviour  behaviour)
inline

Definition at line 215 of file Bot.cs.

Here is the caller graph for this function:

delegate void pCampBot.Bot.AnEvent ( Bot  callbot,
EventType  someevent 
)
void pCampBot.Bot.Asset_ReceivedCallback ( AssetDownload  transfer,
Asset  asset 
)
inline

Definition at line 726 of file Bot.cs.

Here is the caller graph for this function:

void pCampBot.Bot.Asset_TextureCallback_Texture ( TextureRequestState  state,
AssetTexture  assetTexture 
)
inline

Definition at line 711 of file Bot.cs.

void pCampBot.Bot.Connect ( )
inline

Definition at line 339 of file Bot.cs.

void pCampBot.Bot.Disconnect ( )
inline

Tells LibSecondLife to logout and disconnect. Raises the disconnect events once it finishes.

Definition at line 329 of file Bot.cs.

InventoryFolder pCampBot.Bot.FindClothingFolder ( )
inline

Definition at line 578 of file Bot.cs.

Here is the caller graph for this function:

WearableType pCampBot.Bot.GetWearableType ( string  path)
inline

Definition at line 471 of file Bot.cs.

Here is the caller graph for this function:

void pCampBot.Bot.MakeDefaultAppearance ( string  wear)
inline

Definition at line 493 of file Bot.cs.

Here is the call graph for this function:

void pCampBot.Bot.Network_LoginProgress ( object  sender,
LoginProgressEventArgs  args 
)
inline

Definition at line 594 of file Bot.cs.

void pCampBot.Bot.Network_OnDisconnected ( object  sender,
DisconnectedEventArgs  args 
)
inline

Definition at line 619 of file Bot.cs.

void pCampBot.Bot.Network_SimConnected ( object  sender,
SimConnectedEventArgs  args 
)
inline

Definition at line 607 of file Bot.cs.

void pCampBot.Bot.Network_SimDisconnected ( object  sender,
SimDisconnectedEventArgs  args 
)
inline

Definition at line 613 of file Bot.cs.

void pCampBot.Bot.Objects_NewPrim ( object  sender,
PrimEventArgs  args 
)
inline

Definition at line 646 of file Bot.cs.

bool pCampBot.Bot.RemoveBehaviour ( string  abbreviatedName)
inline

Definition at line 231 of file Bot.cs.

void pCampBot.Bot.SaveAsset ( AssetWearable  asset)
inline

Definition at line 447 of file Bot.cs.

void pCampBot.Bot.SaveDefaultAppearance ( )
inline

Definition at line 427 of file Bot.cs.

Here is the call graph for this function:

void pCampBot.Bot.SitOnGround ( )
inline

Sit this bot on the ground.

Definition at line 406 of file Bot.cs.

void pCampBot.Bot.Stand ( )
inline

Stand this bot

Definition at line 415 of file Bot.cs.

bool pCampBot.Bot.TryGetBehaviour ( string  abbreviatedName,
out IBehaviour  behaviour 
)
inline

Definition at line 209 of file Bot.cs.

Member Data Documentation

List<uint> pCampBot.Bot.objectIDs = new List<uint>()
protected

Definition at line 163 of file Bot.cs.

string pCampBot.Bot.saveDir

Definition at line 152 of file Bot.cs.

string pCampBot.Bot.wear

Definition at line 153 of file Bot.cs.

Property Documentation

Dictionary<string, IBehaviour> pCampBot.Bot.Behaviours
getset

Behaviours implemented by this bot.

Indexed by abbreviated name. There can only be one instance of a particular behaviour. Lock this structure before manipulating it.

Definition at line 100 of file Bot.cs.

GridClient pCampBot.Bot.Client
getset

New instance of a SecondLife client

Definition at line 173 of file Bot.cs.

ConnectionState pCampBot.Bot.ConnectionState
getset

Is this bot connected to the grid?

Definition at line 121 of file Bot.cs.

string pCampBot.Bot.FirstName
getset

Definition at line 145 of file Bot.cs.

string pCampBot.Bot.LastName
getset

Definition at line 146 of file Bot.cs.

string pCampBot.Bot.LoginUri
getset

Definition at line 149 of file Bot.cs.

BotManager pCampBot.Bot.Manager
getset

Bot manager.

Definition at line 91 of file Bot.cs.

string pCampBot.Bot.Name
getset

Definition at line 147 of file Bot.cs.

Dictionary<UUID, Primitive> pCampBot.Bot.Objects
get

Objects that the bot has discovered.

Returns a list copy. Inserting new objects manually will have no effect.

Definition at line 109 of file Bot.cs.

int pCampBot.Bot.PacketDebugLevel
getset

Definition at line 61 of file Bot.cs.

string pCampBot.Bot.Password
getset

Definition at line 148 of file Bot.cs.

Random pCampBot.Bot.Random
getset

Random number generator.

Definition at line 168 of file Bot.cs.

bool pCampBot.Bot.RequestObjectTextures
getset

Controls whether bots request textures for the object information they receive

Definition at line 86 of file Bot.cs.

List<Simulator> pCampBot.Bot.Simulators
get

Definition at line 124 of file Bot.cs.

int pCampBot.Bot.SimulatorsCount
get

The number of connections that this bot has to different simulators.

Includes both root and child connections.

Definition at line 137 of file Bot.cs.

string pCampBot.Bot.StartLocation
getset

Definition at line 150 of file Bot.cs.

Event Documentation

AnEvent pCampBot.Bot.OnConnected

Definition at line 155 of file Bot.cs.

AnEvent pCampBot.Bot.OnDisconnected

Definition at line 156 of file Bot.cs.


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