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

Thread/Bot manager for the application More...

Collaboration diagram for pCampBot.BotManager:
Collaboration graph
[legend]

Public Member Functions

 BotManager ()
 Constructor Creates MainConsole.Instance to take commands and provide the place to write data More...
 
void CreateBots (int botcount, IConfig startupConfig)
 Startup number of bots specified in the starting arguments More...
 
void ConnectBots (int botcount)
 
void CreateBot (BotManager bm, List< IBehaviour > behaviours, string firstName, string lastName, string password, string loginUri, string startLocation, string wearSetting)
 This creates a bot but does not start it. More...
 

Public Attributes

const int DefaultLoginDelay = 5000
 

Protected Member Functions

CommandConsole CreateConsole ()
 Standard CreateConsole routine More...
 

Protected Attributes

CommandConsole m_console
 Command console More...
 
List< Botm_bots
 Created bots, whether active or inactive. More...
 

Properties

BotManagerBotConnectingState BotConnectingState [get, set]
 Is pCampbot ready to connect or currently in the process of connecting or disconnecting bots? More...
 
int LoginDelay [get, set]
 Delay between logins of multiple bots. More...
 
bool InitBotSendAgentUpdates [get, set]
 Controls whether bots start out sending agent updates on connection. More...
 
bool InitBotRequestObjectTextures [get, set]
 Controls whether bots request textures for the object information they receive More...
 
Random Rng [get, set]
 Random number generator. More...
 
Dictionary< UUID, bool > AssetsReceived [get, set]
 Track the assets we have and have not received so we don't endlessly repeat requests. More...
 
Dictionary< ulong, GridRegionRegionsKnown [get, set]
 The regions that we know about. More...
 

Detailed Description

Thread/Bot manager for the application

Definition at line 57 of file BotManager.cs.

Constructor & Destructor Documentation

pCampBot.BotManager.BotManager ( )
inline

Constructor Creates MainConsole.Instance to take commands and provide the place to write data

Definition at line 162 of file BotManager.cs.

Here is the call graph for this function:

Member Function Documentation

void pCampBot.BotManager.ConnectBots ( int  botcount)
inline

Definition at line 362 of file BotManager.cs.

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

This creates a bot but does not start it.

Parameters
bm
behavioursBehaviours for this bot to perform.
firstNameFirst name
lastNameLast name
passwordPassword
loginUriLogin URI
startLocationLocation to start the bot. Can be "last", "home" or a specific sim name.
wearSetting

Definition at line 485 of file BotManager.cs.

Here is the caller graph for this function:

void pCampBot.BotManager.CreateBots ( int  botcount,
IConfig  startupConfig 
)
inline

Startup number of bots specified in the starting arguments

Parameters
botcountHow many bots to start up
csThe configuration for the bots to use

Definition at line 287 of file BotManager.cs.

Here is the call graph for this function:

CommandConsole pCampBot.BotManager.CreateConsole ( )
inlineprotected

Standard CreateConsole routine

Returns

Definition at line 531 of file BotManager.cs.

Here is the caller graph for this function:

Member Data Documentation

const int pCampBot.BotManager.DefaultLoginDelay = 5000

Definition at line 61 of file BotManager.cs.

List<Bot> pCampBot.BotManager.m_bots
protected

Created bots, whether active or inactive.

Definition at line 97 of file BotManager.cs.

CommandConsole pCampBot.BotManager.m_console
protected

Command console

Definition at line 82 of file BotManager.cs.

Property Documentation

Dictionary<UUID, bool> pCampBot.BotManager.AssetsReceived
getset

Track the assets we have and have not received so we don't endlessly repeat requests.

Definition at line 107 of file BotManager.cs.

BotManagerBotConnectingState pCampBot.BotManager.BotConnectingState
getset

Is pCampbot ready to connect or currently in the process of connecting or disconnecting bots?

Definition at line 66 of file BotManager.cs.

bool pCampBot.BotManager.InitBotRequestObjectTextures
getset

Controls whether bots request textures for the object information they receive

Definition at line 92 of file BotManager.cs.

bool pCampBot.BotManager.InitBotSendAgentUpdates
getset

Controls whether bots start out sending agent updates on connection.

Definition at line 87 of file BotManager.cs.

int pCampBot.BotManager.LoginDelay
getset

Delay between logins of multiple bots.

TODO: This value needs to be configurable by a command line argument.

Definition at line 77 of file BotManager.cs.

Dictionary<ulong, GridRegion> pCampBot.BotManager.RegionsKnown
getset

The regions that we know about.

Definition at line 112 of file BotManager.cs.

Random pCampBot.BotManager.Rng
getset

Random number generator.

Definition at line 102 of file BotManager.cs.


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